tcheung
(Thomas)
February 6, 2020, 5:01pm
1
I am working on an OAuth application that collects data from our instance.
I am starting with the users object.
I have logic that generates the paginated URL.
https://api.zoom.us//v2/users?page_number=1&page_size=200
https://api.zoom.us//v2/users?page_number=2&page_size=200
…ect…
However, no matter what the parameters are generated for page_number and page_size, it always returns the same set of records, with page_number =1
Should the API return an empty set when I exceed the page count for the request, or is that supposed to be tracked within the application?
tommy
(Tommy Gaessler)
February 6, 2020, 7:43pm
2
Hey @tcheung , thanks for posting and using Zoom!
Do you have over 200 users? If not, try testing with a "page_size"
of 1:
https://api.zoom.us/v2/users?page_size=1&page_number=1
The "page_count"
property lets you know how many pages of "page_size"
there are.
An empty "users"
array will also be returned once you reach the end of the list.
Also try removing the second slash /
after us
.
Have you tested this in postman?
Thanks,
Tommy
tcheung
(Thomas)
February 6, 2020, 7:45pm
3
I have tested with page size = 1. Paging works fine until the page number goes past the number of users, and then it just continues to return the last user, regardless of the page number entered.
tommy
(Tommy Gaessler)
February 6, 2020, 7:49pm
4
Hey @tcheung , I see.
That is strange, it should be an empty users array.
For the last instance, does the “page_count” match with the “page_number”? Also are you specifying the status
query param ?
Thanks,
Tommy
tcheung
(Thomas)
February 6, 2020, 8:00pm
5
I’ve tried it with and without a status parameter set.
The page_count does match the page_number on the final record in the result set, and continues to do so as the page_number in the parameter increases.
tommy
(Tommy Gaessler)
February 6, 2020, 8:09pm
6
Hey @tcheung ,
I cannot reproduce this issue.
Can you possibly send me a video of this in postman, and send me your App Name? So I can look at the logs?
Thanks,
Tommy
tcheung
(Thomas)
February 6, 2020, 8:19pm
7
The app is the CozyRoc integration app: https://marketplace.zoom.us/apps/QjsWWznaQ3uurbzj43F-Og which I’m using to build a SQL Server Integration Services integration.
I’m not sure what Postman is, I can get you a Fiddler log of the request and replies, if you have somewhere I can send it to.
tommy
(Tommy Gaessler)
February 6, 2020, 8:33pm
8
Hey @tcheung ,
Thanks, we will look into this and get back to you! Don’t worry about postman.
Thanks,
Tommy