I've been working with the drive SDK for the last few days and previously I was able to request 1000 items on a page using listrequest. Now I'm only getting 100 files no matter how high I set the parameter, but if I set it below 100 it will return whatever number. Did they decide to change the max results overnight or something?
标签:
google-drive-api
相关问题
- How can I force all files in a folder to be owned
- google-drive can't get push notifications
- File upload via REST v3 appears as “Untitled”
- PyDrive Upload and Remove
- Android: Google Drive onActivityResult() getting r
相关文章
- How can my Google Apps Script be run by others the
- Google Drive raw data?
- how to programmatically download a public Google D
- Is it possible to send HTTP request from inside Go
- Google Drive API is not working after Proguard obf
- How to style a Google Doc using Google Drive API?
- Google Drive Realtime API OAuth2 Refresh Errors (P
- keep getting kicked out my google login when using
I'm facing the same problem so I've been doing some tests and this is what I've found:
So it seems that depends on how many fields you request and also if one of the fields requested is parents field.
You've misunderstood what pagesize does. It is a maximum value, not an absolute value. You should always iterate list results until nextPageToken is null.
Ok never mind I figured this out. I was requesting all the metadata of each file, which seems to limit the request to 100. I was able to get 1000 per page by requesting only three fields.
EDIT by pinoyyid: This is not the answer. There is nothing that you can do to guarantee that the page will have exactly
pageSize
items.