-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
In many cases, the Sonarr API expects a page
parameter when getting data that spans over multiple pages.
For example, this curl command is valid:
$ curl -H "X-Api-Key: XXXXX" -X GET "http://my.local.sonarr:8989/api/v3/queue?page=2"
and successfully returns the second page of the queue.
However I have tried with sonarr-py:
import sonarr
configuration = sonarr.Configuration(
host = "http://my.local.sonarr:8989"
)
configuration.api_key['X-Api-Key'] = "XXXXX"
with sonarr.ApiClient(configuration) as api_client:
sonarr.QueueApi(api_client).get_queue(page=2)
but this returns
sonarr.exceptions.ApiTypeError: Got an unexpected keyword argument 'page' to method get_queue
Maybe there is a way I did not understand?
Metadata
Metadata
Assignees
Labels
No labels