cant show a dialog gapi.drive.share.ShareClient -
code lines:
gapi.auth.authorize({ client_id: clientid, scope: scopes, immediate: false}, function (authresult) { gapi.client.load('drive', 'v2', function () { gapi.load('drive-share', function () { var client = new gapi.drive.share.shareclient(key); client.setitemids([pathid]); client.showsettingsdialog(); }); }); }
it shows error message instead of sharing dialog:
sorry, sharing unavailable @ time. please try again later
in message box.
Comments
Post a Comment