iOS アプリを使用して、Google ドライブの特定のフォルダにファイルをアップロードする必要があります。フォルダーの名前はわかっていますが、特定のフォルダーにアップロードするには、フォルダーの識別子も指定する必要があります。これは、宛先フォルダーの識別子をハードコーディングしたコードの一部です。だから、私の質問は、宛先フォルダーの識別子をプログラムで見つける方法です。
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];