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
Post a Comment