ios - Google Drive 不允许我访问 iOS 中的所有文档和文件

标签 ios google-drive-realtime-api

我正在制作一个 iPhone 应用程序,我需要在其中集成 Google Drive API。当我将它集成到应用程序中时,它只显示我从“应用程序”创建的文件,但我只需要从谷歌驱动器到我的系统的所有文档和文件。请告诉我。谢谢

最佳答案

i find my answer

GTLQueryDrive *query;

if ([self isRoot])  
{  
    query = [GTLQueryDrive queryForChildrenListWithFolderId:@"root"];  
    query.q = @"'root' in parents and trashed=false";  
}
else
{
    query = [GTLQueryDrive queryForChildrenListWithFolderId:self.metadata.identifier];
    query.q = @"trashed=false";
}

关于ios - Google Drive 不允许我访问 iOS 中的所有文档和文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22349758/

相关文章:

ios - 如何从另一个函数更新单元格图像?

ios - 为什么 if(cell == nil) 不起作用?

google-drive-api - 尽管根为空,但仍超出 Drive Realtime API 模型大小限制

google-drive-api - 无法在 Google API 的 Drive UI 集成中保存任何内容

javascript - Google Drive Realtime API - 添加协作 map

php - 如何将大型 powerpoint 文件上传到谷歌驱动器?

ios - 将滑动手势识别器添加到 DetailViewContoller

objective-c - Sprite 效应ipad

iphone - 更改父 View Controller 的背景颜色

javascript - 谷歌应用程序脚本中的 ReferenceError : "Drive" is not defined.(第 16 行,文件 "Code")