如何更改为“下一页"在Google存储API上? [英] How to change to "Next page" on Google storage api?

查看:112
本文介绍了如何更改为“下一页"在Google存储API上?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用此API( https://www.googleapis.com/storage/v1/b/ $ bucketId/o/)从存储桶中获取数据,但我发现List不完整,并且还向我返回了" nextPageToken ".

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.

谷歌搜索,它似乎是关键到下一页,但我尝试将其放入页眉或之后放入URL(例如: https://www.googleapis.com/storage/v1/b/ $ bucketId/o/pageToken = Ci1yZXZxagenuio46432abt8IamwMi5jc3Y =),则它们无效.

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!

推荐答案

您已经关闭.这是一个URL参数,因此添加一个问号:

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

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

这篇关于如何更改为“下一页"在Google存储API上?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆