Like this article? We recommend
Loading User Profile Data
Loading User Profile Data
After successfully signing in, you have a valid access token but know nothing about the user. To remedy that, we can submit a request against /plus/v1/people/me to retrieve the profile data of the active user. The profile data is returned to the user as a JSON object.
var request = gapi.client.request({ path: '/plus/v1/people/me', method: 'GET' }); request.execute(callback);
The following is another way to do the same task, but in this case it is uses the plus namespace directly. Both are equivalent, so just choose the one that suits your programming style.
var request = gapi.client.plus.people.get({ 'userId' : 'me' }); request.execute(callback);