files /.../ children返回坏页面标记

时间:2013-08-17 17:06:34

标签: google-drive-api

调用... / files / root / children似乎在几天前返回了错误的nextPageToken值。我在两个帐户上看到了这一点,两者都可以用api-explorer重现:
- 请注意,selfLink和nextLink在响应中是相同的 - 对于不同的文件夹,在两个不同的帐户上为每个请求返回相同的nextPageToken。
- 如果我将pageToken传递给查询,则子项总是相同的 - 也忽略了maxResults参数。

所以看起来pageToken完全没有效果。因为我看到为各种不同的查询返回相同的nextPageToken,我猜测nextPageToken是坏的。

我用...替换了部分令牌,并从URL中删除了https前缀。

请求:

GET www.googleapis.com/drive/v2/files/root/children?maxResults=10&pageToken=!!%7C~EAI...CAG&key={YOUR_API_KEY}

{
 "kind": "drive#childList",
 "etag": ...,
 "selfLink": "www.googleapis.com/drive/v2/files/root/children?maxResults=10&pageToken=!!%7C~EAI...CAG",
 "nextPageToken": "!!|~EAI...CAG",
 "nextLink": "www.googleapis.com/drive/v2/files/root/children?maxResults=10&pageToken=!!%7C~EAI...CAG",

1 个答案:

答案 0 :(得分:0)

我可以确认这是一个影响儿童反应分页的错误。我们不尊重maxResults参数,而是列出整个目录。它应该在本周修复。