picker - Is it possible to get access to a single google drive file without access to whole drive or using an drive app? -


in past used old google docs api , google picker have access 1 single private file google docs. i've got access token access file.

with google drive i've use google drive app accomplish seems workflow in opinion (install app first use picker) access single private google drive docs file.

is there no easier way access single private google drive docs file installing app or without asking permissions read whole google drive of user?

update: @izak working me on issue. allow me add details. real issue when use drive.file scope, urls in exportlinks don't work anymore. our use case, want fetch html representation of document, use exportlinks feature that. when using drive.file, , attempting download text/html version, response 404 status. if use drive.readonly, exportlinks work properly. guess drive.file not sufficient use export facility. perhaps can confirm?

you can use relatively restricted auth scope allows per-file access:

https://www.googleapis.com/auth/drive.file 

and if know file id, can retrieve metadata , contents. more details scopes on https://developers.google.com/drive/scopes

exportlinks being returned docs files. if convert files during insertion , updating, available. take @ convert parameter during insertion: https://developers.google.com/drive/v2/reference/files/insert


Comments

Popular posts from this blog

node.js - Bad Request - node js ajax post -

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -