fix: add getList with records wrapper + correct options format from browser capture
This commit is contained in:
@@ -29,7 +29,7 @@ type rainyunServer struct {
|
||||
|
||||
func (s *ServerService) List(ctx context.Context) ([]provider.Server, error) {
|
||||
var raw []rainyunServer
|
||||
if err := s.client.getWithQuery(ctx, "/product/rcs/", map[string]string{"options": "1"}, &raw); err != nil {
|
||||
if err := s.client.getList(ctx, "/product/rcs/", &raw); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
servers := make([]provider.Server, len(raw))
|
||||
|
||||
Reference in New Issue
Block a user