Wednesday, November 20, 2013

Part 3: Using the Google+ API to get the current user display name




gapi.client.load('plus', 'v1');

var request = gapi.client.plus.people.get({
'userId': 'me'
});

request.execute(function(resp) {
console.log(resp.displayName);
});

No comments:

Post a Comment