I am trying to replicate the JavaScript client library example shown onhttps://developers.google.com/drive/v2/reference/permissions/update#examples. There is a reference to permissionId. How do I get this, I've looked everywhere, and my assumption is I am missing something dead obvious.
Thanks in advance.
Looks like I found the same SO as you!
--
You received this message because you are subscribed to a topic in the Google Groups "Google API JavaScript Client" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-api-javascript-client/sx4nRRo7cE8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-api-javascrip...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Thanks.. I as well.
--
var setAccess = function setAccessF() {
gapi.client.request({
path : '/drive/v2/files/1gwmueWpy3M-GcgNOtP2JSFiUWkC1_gtVr83KRVOJ/permissions',
method : 'post',
body : {
'value' : 'anyone',
'type' : 'anyone',
'role' : 'reader'
}
}).then(opt_onFulfilled, opt_onRejected);
}
function opt_onRejected(e) {
console.log(e)
}
function opt_onFulfilled(e) {
console.log(e)
}Awesome I will check it out today!
--