Google Drive SDK - JavaScript : How to list SHARED FILES (not shared with me) -


i'm looking way of finding list of user's shared files on google drive sdk using javascript.

important: not looking list of files 'shared me'.

what have @ moment lists files 'shared me' , i'm wonder if there way of changing 'sharedwithme' query string parameter, list files have shared??

// load api , make api call.  display results on screen. function makeapicall() {     // load drive     gapi.client.load('drive', 'v2', function() {         // request files (q query string, filter files)         var request = gapi.client.drive.files.list ( {'maxresults': 200,'q':"trashed=false , sharedwithme"} ); 

any great, thanks.

dave

the answer is:

list email address of user have shared files in 'readers' parameter in q query string. (note: 'readers' collection of users have permission view file)e.g.:

// check if recipient in list of readers var request = gapi.client.drive.files.list ( {'recipientuser@gmail.com' in readers"} ); 

thanks!

dave


Comments

Popular posts from this blog

ruby on rails - Is it the correct way to implement belongs_to relation with factory girl? -

geolocation - Windows Phone 8 - Keeping background location tracking active beyond four hours -

Uncaught TypeError: Cannot read property 'parentNode' of null javascript -