Skip to content

parameters needed for MyBooks.Get<Status> #19

@bradyguyc

Description

@bradyguyc

The MyBooks set of api's appear to only return the first 100 entries with no apparent way of retrieving the subsequent items or increasing the limit.

In my branch, I added parameters to these api calls so I could increase the limit. At some point I will look into the ability to retrieve the 2nd page etc... of results, ie see if the openlibrary.org api supports that.

I can now call the api's like below by adding in support for parameters on those api's.

await pipeline.ExecuteAsync(async token => { currentlyReading = await OLClient.MyBooks.GetCurrentlyReadingAsync(OLClient.Username, new KeyValuePair<string, string>("limit", "500")); }, ct);

await pipeline.ExecuteAsync(async token => { alreadyRead = await OLClient.MyBooks.GetAlreadyReadAsync(OLClient.Username, new KeyValuePair<string, string>("limit", "500")); }, ct);
await pipeline.ExecuteAsync(async token => { wantToRead = await OLClient.MyBooks.GetWantToReadAsync(OLClient.Username, new KeyValuePair<string, string>("limit", "500")); }, ct);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions