문제

I am making an iphone app and there i need to integrate Google drive api. When i have integrated that into the app then it is only showing the files which i have created from "APP" but i just need all docuemnts and files from google drive to my system. Please let me know. Thanks

도움이 되었습니까?

해결책

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";
}

다른 팁

You need to use this scope kGTLAuthScopeDrive instead of kGTLAuthScopeDriveFile as in Google's sample.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top