Closed saurabh-p closed 9 years ago
+1
I wondered the same thing. Got it done like this.
$scope.$on('event:google-plus-signin-success', function(event, authResult) {
gapi.client.load('plus', 'v1', apiClientLoaded)
});
function apiClientLoaded() {
gapi.client.plus.people.get({userId: 'me'}).execute(handleResponse);
}
function handleResponse(resp) {
console.log(resp);
}
How to get the email-id, username etc for the user. Since the auth token presently doesn't have any field to "identify" the user.