Reputation: 89
I am trying to list all google shared drives using below api
GET https://www.googleapis.com/drive/v3/drives?pageSize=100&key=[YOUR_API_KEY] HTTP/1.1
Authorization: Bearer [YOUR_ACCESS_TOKEN]
Accept: application/json
But can i list all drives with out giving pagesize parameter? It also says page limit is 100. Is there anyway we can list all drives without any limit.
Upvotes: 1
Views: 173
Reputation: 116868
If you check the documentation for drives.list you will see that it states
pageSize integer Maximum number of shared drives to return. Acceptable values are 1 to 100, inclusive. (Default: 10)
There is no way to set the page size parameter over 100. No you cant get drives without any limits the limits are in place so that we can all use the API together without any one person making a huge call that takes a lot of processing power.
you will need to use the page token and paginate your request.
Upvotes: 1