Skip to content

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

@Ezwen

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?

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