无法显示对话框gapi.drive.share.ShareClient

时间:2013-09-04 12:36:53

标签: google-drive-api

代码行:

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
消息框中的

0 个答案:

没有答案