According to the documents published here, I can download and upload with GTMSessionFetcher. And little bit further in the Documentation form the link I have a code for authorized download form google Drive:
GTLRQuery *query = [GTLRDriveQuery_FilesGet queryForMediaWithFileId:fileID];
NSURLRequest *downloadRequest = [service requestForQuery:query];
GTMSessionFetcher *fetcher =
[service.fetcherService fetcherWithRequest:downloadRequest];
[fetcher beginFetchWithCompletionHandler:^(NSData *data, NSError *fetchError) {
if (fetchError == nil) {
// Download succeeded.
}
}];
It works fine!
My question is: how do I upload with GTMSessionFetcher to Google Drive in iOS?