问题
Calling Users.threads.list on a label with 162 threads with maxResults=50 so there should be 4 pages. Third page doesn't have a nextPageToken (even when specifically requested in fields) so I can't get the last page. Also, the third page only returns 46 threads. Tried includeSpamTrash=true didn't fix it. Verified results through the in-page API tester at https://developers.google.com/gmail/api/v1/reference/users/threads/list.
来源:https://stackoverflow.com/questions/26460654/users-threads-list-not-returning-all-pages-threads