Description
When making an API call to chat/users/{userID}/messages?to_channel={channelID} the next_page_token is sometimes not returned.
Error
next_page_token is blank despite there being a next page
Which App Type (OAuth / Chatbot / JWT / Webhook)?
OAuth
Which Endpoint/s?
chat/users/{userID}/messages
How To Reproduce (If applicable)
I’m making a call to a channel with a total of 8 messages from various users. The following correctly returns all 8 messages:
https://api.zoom.us/v2/chat/users/E0TXvj6DRNiP6L4LXbOz7g/messages?to_channel=4f52741121a646d2b6e297b9cf06350b&page_size=10&date=2021-10-29
If I set page_size=3
I get 3 messages back but "next_page_token": ""
, so the remaining five messages cannot be acquired.
Confusingly if I set page_size=2
I do get a functioning next_page_token, but the second page (out of an expected four pages) has no next_page_token so the remaining two pages again cannot be called.
Screenshots (If applicable)
N/A
Additional context
I believe this is also an issue with getting user’s direct chat messages (i.e. with to_contact={userEmail}
set). However I’ve not been able to reproduce this consistently.