How to change to “Next page” on Google storage api?

 ̄綄美尐妖づ 提交于 2020-01-15 20:15:48

问题


I'm using this API(https://www.googleapis.com/storage/v1/b/$bucketId/o/) to fetch data from my bucket, but I found out that List is incomplete and a "nextPageToken" is returned to me too.

I googled it and it appear to be the key to next page, but I tried to put it into the Header or put it to the URL afterward(eg: https://www.googleapis.com/storage/v1/b/$bucketId/o/pageToken=Ci1yZXZxagenuio46432abt8IamwMi5jc3Y=), they didn't work.

Can anyone tell me how to do that? thanks!


回答1:


You're close. It's a URL parameter, so add a question mark:

https://www.googleapis.com/storage/v1/b/$bucketId/o?pageToken=Ci1yZXZxagenuio46432abt8IamwMi5jc3Y=


来源:https://stackoverflow.com/questions/36197294/how-to-change-to-next-page-on-google-storage-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!