Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only first page of results in available when using any api #33

Closed
arunpassi opened this issue Nov 30, 2021 · 4 comments · Fixed by #35
Closed

Only first page of results in available when using any api #33

arunpassi opened this issue Nov 30, 2021 · 4 comments · Fixed by #35
Assignees
Labels
question Further information is requested

Comments

@arunpassi
Copy link
Contributor

arunpassi commented Nov 30, 2021

When using client.Users().Get(), it only gives the first 100 results. GetNextLink() returns the url for retrieving the next set of results but there doesn't seems to be any way of passing that url back into the client.Users().Get() or any other api.

Alternatively, when trying to pass Top or Skip options to the client.Users().Get(options), the request fails with error 400. "The query specified in the URI is not valid. The requested resource is not a collection. Query options $filter, $orderby, $count, $skip, and $top can be applied only on collections."

@baywet baywet self-assigned this Nov 30, 2021
@baywet
Copy link
Member

baywet commented Nov 30, 2021

Hi again @arunpassi,
Thanks for reaching out and for trying the SDK.

We had a similar conversion in another issue recently, this comment should help you out

Please go upvote this feature if you think it could help

@baywet baywet added Needs author feedback question Further information is requested labels Nov 30, 2021
@baywet
Copy link
Member

baywet commented Nov 30, 2021

additionally, since we received that question multiple times, I think it should be an example on the readme until we have the page iterator. Would you be willing to submit a pull request to add that to the readme?

@arunpassi
Copy link
Contributor Author

Thanks for providing the solution.
I tried to create a branch but failed to commit with authentication denied (tried creating personal access token but I don't know how to use it either)

@baywet
Copy link
Member

baywet commented Nov 30, 2021

Thanks for trying to put a PR together. You should fork the repo, make the changes on your fork and then open the pull request from your fork to this repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants