I want to use multiple scopes in the Google API JavaScript. What I'm trying to do is to get the user Email & Name.
The Name i can get from the scope: https://www.googleapis.com/auth/plus.me
And the Email i can get from the scope: https://www.googleapis.com/auth/userinfo.email
But how I can use them both in the same application?
My code is:
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
});
What scopes should be? Thanks :)