To work with google Drive, google developer portals says that
https://developers.google.com/drive/ios/devguide/files#reading_files
1
NSString *url = [NSString stringWithFormat:@"https://www.googleapis.com/drive/v3/files/%@?alt=media",file.identifier];
This is my url for normal document/text file and
2
NSString *url = [NSString stringWithFormat:@"https://www.googleapis.com/drive/v3/files/%@/export?alt=media&mimeType=application/pdf", file.identifier];
This is my url for pdf files.. however none of url works for me
I come to now for #1 that if I replace my url with kClientID as
NSString *url = [NSStringstringWithFormat:@"https://www.googleapis.com/drive/v3/files/%@?key=%@", file.identifier,kClientID];
Its working fine for normal text/document files…. But not sure how to access PDF file url.