* Retrieves and renders the authenticated user's Google+ profile. */ renderProfile: function() { var request = gapi.client.plus.people.get( {'userId' : 'me'} ); request.execute( function(profile) { $('#profile').empty(); if (profile.error) { $('#profile').append(profile.error); return; } helper.connectServer(profile.id); $('#profile').append( $('<p><img src=\"' + profile.image.url + '\"></p>')); $('#profile').append( $('<p>Hello ' + profile.displayName + '!<br />Email : '+ + '<br/>Tagline: ' + profile.tagline + '<br />About: ' + profile.aboutMe + '</p>')); if (profile.cover && profile.coverPhoto) { $('#profile').append( $('<p><img src=\"' + profile.cover.coverPhoto.url + '\"></p>')); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)