Google Drive List API - 未列出所有文档? [英] Google Drive List API - not listed all the documents?

查看:193
本文介绍了Google Drive List API - 未列出所有文档?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图使用Google Drive List API列出所有文件。但它没有列出所有文件,某些文件细节未在响应中显示。



这个问题发生在我们某些客户的云端硬盘帐户中。在OAuth2操场中尝试时,它会导致与这些用户缺少文档列表相同的响应。



注意:我使用的范围 https://www.googleapis.com/auth/drive



文件mimetype是application / vnd.google-apps.spreadsheet



任何人都可以帮我找出原因吗?

解决方案

可能结果列表仅限于100个项目。你可能想检查一下!
有一个选项可以增加这个限制:

$ p $ DocumentsListQuery dlq = new DocumentsListQuery(DocumentsListQuery.documentsBaseUri)
{
NumberToRetrieve = 100000,
ShowFolders = true,
Trashed = false
};


I am trying to list all the documents using Google Drive List API. But it doesn't list all the documents some documents details are not presented in the response.

This issue occurred in some of our customer's Drive account. When tried in OAuth2 playground, it results in the same response with missing documents list for these users.

Note : scope I used https://www.googleapis.com/auth/drive

File mimetype is "application/vnd.google-apps.spreadsheet"

Can anyone please help me to find out the reason for this ?

解决方案

Probably the resultlist is limited to 100 items. You might want to check that! There's an option to increase this limit:

            DocumentsListQuery dlq = new DocumentsListQuery(DocumentsListQuery.documentsBaseUri) 
            { 
                NumberToRetrieve = 100000,
                ShowFolders = true,
                Trashed = false
            };

这篇关于Google Drive List API - 未列出所有文档?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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