列表请求页面大小被忽略 [英] List request page size being ignored

查看:169
本文介绍了列表请求页面大小被忽略的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

过去几天我一直在使用驱动器SDK,之前我可以使用listrequest在页面上请求1000个项目。现在我只能获得100个文件,无论设置参数有多高,但如果将其设置为100以下,它将返回任何数字。他们是否决定在一夜之间改变最大结果?

解决方案

我面临同样的问题,所以我一直在做一些测试,这是我发现的:




  • 如果我尝试使用字段files,nextPageToken的files.list,我只能获得100个文件。

  • 如果我尝试使用字段files(name,id, etc 父母),nextPageToken的files.list,我可以获得460个文件。

  • 如果我尝试使用字段的files.list:files(name,id, etc ),nextPageToken without parents field
  • 如果我尝试使用字段files(parents),nextPageToken的files.list,我会得到460个文件。


    因此,这看起来取决于您请求的字段数量,以及所请求的字段之一是父母字段。


    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?

    解决方案

    I'm facing the same problem so I've been doing some tests and this is what I've found:

    • If I try files.list with fields: "files, nextPageToken", I get 100 files only.
    • If I try files.list with fields: "files(name, id, etc, parents), nextPageToken", I get 460 files.
    • If I try files.list with fields: "files(name, id, etc), nextPageToken" without parents field, I get 1000 files.
    • If I try files.list with fields: "files(parents), nextPageToken", I get 460 files.

    So it seems that depends on how many fields you request and also if one of the fields requested is parents field.

    这篇关于列表请求页面大小被忽略的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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