Click here to Skip to main content
15,900,378 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have functionality like login with "google+" in my web application. I had followed all steps for this and it is working fine for me but how can i retrive aditional information like email id, dob, gender, country, state, contact no etc. using below code in my web application :

JavaScript
* 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>'));
}


I am needful for your kind help...
Thanks
Posted
v3
Comments
Sergey Alexandrovich Kryukov 2-May-13 1:23am    
Let me tell you that your title is very misleading. "like login with "google+" explains it all, but some would not visit this page after reading this misleading title. I suggest you improve it.
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900