Nsstring *mimeType = @"image/png"; NSData *imageData = UIImagePNGRepresentation(imageVIEw.image);GTLUploadParameters *uploadParameters = [GTLUploadParameters uploadParametersWithData:imageData MIMEType:mimeType];GTLDrivefile *fileObj = [GTLDrivefile object];fileObj.Title = @"this_is_a_test.png";GTLDriveParentReference *parentRef = [GTLDriveParentReference object];parentRef.IDentifIEr = @"0B1Em3SqS0WHrQi15SHB4OHRGd2c";fileObj.parents = [NSArray arrayWithObject:parentRef];解决方法 可以使用查询字符串参数将驱动器列表查询限制为获取文件夹:
GTLqueryDrive *query = [GTLqueryDrive queryForfilesList];query.q = [Nsstring stringWithFormat: @"mimeType='application/vnd.Google-apps.folder' and Title='%@' and trashed=false",Title];
但文件和文件夹标题在Google云端硬盘中并不是唯一的,因此用户帐户中可能有许多文件夹或文件具有相同的名称.
总结以上是内存溢出为你收集整理的如何获取iOS中Google云端硬盘中文件夹的标识符?全部内容,希望文章能够帮你解决如何获取iOS中Google云端硬盘中文件夹的标识符?所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)