** Update: Looks like my question may be a duplicate. I've been working on this a little over a day and did some heavy searching prior but just stumbled across this (Google Drive API call to insert Public Share permissions on Fusiontables causes Internal Error) which seems to suggest that this is a bug with Drive Permissions for Fusion Tables. At the time being I would like to leave this open to wait on a response from @pinoyyid. Additionally, I'd appreciate knowing whether I should close this or mark it a duplicate, given my recent find.
I found this resource which documents a similar workflow but not in the JavaScript Client API: Set file sharing level to 'Anyone with the link' through Google Drive API
In attempting the same process with the JS Client API (see my code below), I continue to receive 500
's. The error, I believe, has to do with what value I give to the value
key. I've tried every variation I can imagine, but to no avail. Thanks much in advance.
var request = gapi.client.drive.permissions.insert({
'fileId' : tracker_id,
'resource' : {
'value' : '',
'type' : 'anyone',
'role' : 'reader',
'withLink' : true,
},
});
request.execute(function(executed) { console.log(executed) });
Update: I just found this posting: Google Drive API: How do you insert permissions to make a document publicly readable?
It appears this user may have been using the JS Client API as well... Unfortunately the method posted in that quesiton/answer continues to render 500
responses for me. If anyone happens to know why, I would appreciate the help.