-1

无法获取在 Google Drive 目录中指定数据后创建的所有文件名的列表:

query = [GTLQueryDrive queryForFilesList];
//query.q = @"mimeType = 'text/plain'";
//query.q = @"mimeType = 'image/png'";
query.q = @"modifiedDate > '20011-06-04T12:00:00'";
authController = [[GTMOAuth2ViewControllerTouch alloc] in itWithScope:kGTLAuthScopeDrive clientID:kClientID  clientSecret:kClientSecret keychainItemName:kKeychainItemName delegate:self 
4

2 回答 2

2

更改 DrEditFilesListViewController.m 方法 authButtonClicked 的范围

将此范围 kGTLAuthScopeDriveFile 替换为 kGTLAuthScopeDrive 如下

GTMOAuth2ViewControllerTouch *authViewController = [[GTMOAuth2ViewControllerTouch alloc] initWithScope:kGTLAuthScopeDriveFile
                                         clientID:kClientId
                                     clientSecret:kClientSecret
                                 keychainItemName:kKeychainItemName
                                         delegate:self
                                 finishedSelector:finishedSelector];

GTMOAuth2ViewControllerTouch *authViewController = [[GTMOAuth2ViewControllerTouch alloc] initWithScope:kGTLAuthScopeDrive
                                         clientID:kClientId
                                     clientSecret:kClientSecret
                                 keychainItemName:kKeychainItemName
                                         delegate:self
                                 finishedSelector:finishedSelector];
于 2013-04-09T10:36:15.983 回答
0

检查您的日期:

query.q = @"modifiedDate > '20011-06-04T12:00:00'";

你想用2011-06-04吗?如果是这样,那么:

query.q = @"modifiedDate > '2011-06-04T12:00:00'";
于 2013-01-28T04:37:11.807 回答