Tag: 谷歌驱动实时 API

如何在C#中列出来自Google Drive API V3的1000多条记录

这是此链接中原始问题的延续。 通过下面的代码,我可以获取1000条记录,但我的驱动器总共有6500条++记录。 搜索谷歌但无法找到正确的解决方案。 根据参考,参数“pageSize”的描述值是“每页返回的最大文件数。可接受的值是1到1000,包括1。(默认值:100)”。 所以这意味着,我们只能获得1000条记录,如果可能的话,那么方式是什么。 另外,我不了解参数“pageToken”,实时使用’nextPageToken’值是什么。 代码:( https://developers.google.com/drive/v3/web/quickstart/dotnet ) namespace gDrive { class Program { static string[] Scopes = { DriveService.Scope.DriveReadonly }; static string ApplicationName = “Drive API .NET Quickstart”; static void Main(string[] args) { UserCredential credential; gDriveTableAdapter gDrive = new gDriveTableAdapter(); using (var stream = new FileStream(“client_secret.json”, FileMode.Open, FileAccess.Read)) { string credPath = System.Environment.GetFolderPath( […]