我想在Google API JavaScript中使用多个示波器。 我想要做的是让用户电子邮件&名称。Google API多个示波器
名,我可以从范围得到:https://www.googleapis.com/auth/plus.me
和电子邮件,我可以从范围得到:https://www.googleapis.com/auth/userinfo.email
但我怎么可以在同一应用程序中使用他们两个?
我的代码是:
scopes = 'https://www.googleapis.com/auth/plus.me https://www.googleapis.com/auth/userinfo.email';
gapi.signin.render('StartGoogleBtn', {
'callback': 'onSignInCallback',
'clientid': clientId,
'cookiepolicy': 'single_host_origin',
'scope': scopes
});
应该是什么范围?谢谢:)