我想在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
});
應該是什麼範圍?謝謝:)