0

代码行:

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();

     });
});
}

它总是显示错误消息而不是共享对话框:

Sorry, sharing is unavailable at this time. Please try again later

在消息框中。

4

0 回答 0