Search code examples
iosobjective-cdownloadgoogle-drive-apifilelist

Download files from google drive with the latest SDK?


I prefer iOS (Objective-C) code but the question is linked with google drive API. So a solution in any other programming language may belong here.

My previous code:

GTLQueryDrive *query = [GTLQueryDrive queryForFilesList];
query.q = ...;
... //send query and get links to files

But it was correct in Google Drive API v2 only - query returned a list of GTLDriveFile objects and GTLDriveFile contained field downloadUrl.

But Google Drive API v3 doesn't have such field and according to this document I should perform additional request with queryForFilesGetWithFileId: and link 2 results between themselves, shouldn't I? How to solve this issue?


Solution

  • downloadUrl has been removed. If you want download file, i have tried successfully! How to download pdf from google drive V3 API in IOS?