Description
The /phone/users v2 API used to return over 30 days worth of data when I was originally writing a reporting tool; now it only returns a max of 30 day. For example when I use Postman I run:
it will only return data from 2020-04-01 to 2020-05-01
Error
There is no error, it’s just not retuning a result-set larger than 30 days, and it used to.
Which App Type (OAuth / Chatbot / JWT / Webhook)?
JWT
Which Endpoint/s?
/phone/users/
How To Reproduce (If applicable)
Steps to reproduce the behavior:
Use Postman (also seeing the same behavior using PHP)
Querying the date range: https://api.zoom.us/v2/phone/users/ @plixer.com /call_logs?from=2020-02-01&to=2020-05-01
Only returns data from 2020-04-01 to 2020-05-01
Screenshots (If applicable)
samly
(Sam)
May 8, 2020, 11:11pm
2
Being limited to 30 days or a month thing is pretty consistent with most Zoom APIs, I wouldn’t be surprised if it was intentional.
1 Like
I could’ve sworn that it worked for over 30 days last month ago. I wonder if there was a code change. Do you work for Zoom?
tommy
(Tommy Gaessler)
May 15, 2020, 8:41pm
4
Hey @mark.mayer ,
You can get more than 30 days worth of data, you just have to do it in one month increments.
?from=2020-02-01&to=2020-03-01
?from=2020-03-01&to=2020-04-01
?from=2020-04-01&to=2020-05-01
Thanks,
Tommy
Sure, just not looking to change my code that was working just fine. Also, what about months with 31 days? 30 then add a single day on a separate call?
I really do appreciate you replying to the thread though, thank you
1 Like
tommy
(Tommy Gaessler)
May 20, 2020, 7:55pm
7
Hey @mark.mayer ,
Apologies for the confusion, since months with 31 days are still the same month it will work in one call.
?from=2020-03-01&to=2020-03-31
or ?from=2020-03-01&to=2020-04-1
should work.
Thanks,
Tommy
1 Like
Thanks, I’ll give it a shot.
1 Like