Skip to content

Cannot query specific page (eg. in Queue) #41

Description

@Ezwen

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions