Skip to content

GetAllAsync not available on CustomRequest #375

@hbcondo

Description

@hbcondo

Hi, I have a WordPress instance that uses a custom route for tags with the path /wp/v2/labels with over 100 records. I currently retrieve them as follows:

await client.CustomRequest.GetAsync<IEnumerable<Tag>>("wp/v2/labels?page=1&per_page=100&orderby=count&order=desc", useAuth: true);

But that only retrieves the first 100. How can I retrieve all of them since there is no CustomRequest.GetAllAsync method available? Tags.GetAllAsync does this just fine for /wp/v2/tags but I can't specify a path in that method.

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