超出未经身份验证的使用的每日限制。继续使用需要注册。 iOS版

时间:2016-12-17 06:36:43

标签: ios google-drive-api google-oauth

我正在尝试访问GoogleDrive的所有文件夹,在启动身份验证流程顺利但是当我点击“允许”时,我得到的所有文件夹和流程都很好,但是现在从我去的几天后通过相同的过程,fetch files方法得到调用,但我得到了超出每日限制的跟随错误

- (void)fetchFiles {
    GTLQueryDrive *query =
    [GTLQueryDrive queryForFilesList];
    query.mimeType = @"application/vnd.google-apps.folder";
    query.q = [NSString stringWithFormat:@"'%@' IN parents AND trashed=false", @"root"];
    [self.service executeQuery:query
                      delegate:self
             didFinishSelector:@selector(displayResultWithTicket:finishedWithObject:error:)];
}

- (void)displayResultWithTicket:(GTLServiceTicket *)ticket
         finishedWithObject:(GTLDriveFileList *)response
                      error:(NSError *)error { //got error here }

错误:

Error Domain=com.google.GTLJSONRPCErrorDomain Code=403 "(Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup.)" 
UserInfo={error=Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup., NSLocalizedFailureReason=(Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup.), GTLStructuredError=GTLErrorObject 0x60000044e8e0: {message:"Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup." data:[1] code:403}}

我已经经历过这种类型的错误,但似乎没有什么是正确的,任何有帮助的人都会很棒

0 个答案:

没有答案