Google Drive share dialog from Chrome web app
I want to download the Google Drive sharing dialog from the Chrome app (described at https://developers.google.com/drive/web/manage-sharing ).
However, since the standard javascript javascript library cannot be loaded from the chrome app, it looks like I need to use the Google API javascript client library loader for Chrome Packaged Apps .
This chrome-app-app library is currently not available to implement gapi.auth and gapi.client.request. The disk sharing dialog requires using gapi.load to access the ShareClient.
init = function() {
s = new gapi.drive.share.ShareClient('<YOUR_APP_ID>');
s.setItemIds(["<FILE_ID>"]);
}
window.onload = function() {
gapi.load('drive-share', init);
}
Is it possible to display the disk sharing dialog from a chrome application?
+3
source to share
No one has answered this question yet
Check out similar questions: