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
google-chrome-app google-drive-sdk


source to share


No one has answered this question yet

Check out similar questions:

five
Google Drive API, cannot open standard JS sharing dialog (x-frame-options error)
4
Installing the Google Drive app as a local "unpacked" Chrome extension
2
Google Drive Share dialog not working on Windows 10
2
Using node.js with Google Drive API I / O
1
Google Drive SDK File Sharing Dialog Box gives "Refused to display document because display is prohibited by X-Frame-Options"
1
Google Drive Dialogue in Google Apps Script
0
How do I open a drive dialog in the application engine?
0
Publishing an SDK app to Google Drive for trusted testers
0
Is there a Google Drive sharing callback, for example to select files
0
Sign in to the Google Drive Android app



All Articles
Loading...
X
Show
Funny
Dev
Pics