代码行:
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
消息框中的。