google-services icon indicating copy to clipboard operation
google-services copied to clipboard

python alternative to accessing user profile url?

Open Daniyaldehleh opened this issue 4 years ago • 0 comments

Hi there,

I'd like to know if there's a python alternative to the code on your website? for retrieving profile pic URL

// auth2 is initialized with gapi.auth2.init() and a user is signed in.

if (auth2.isSignedIn.get()) {
  var profile = auth2.currentUser.get().getBasicProfile();
  console.log('ID: ' + profile.getId());
  console.log('Full Name: ' + profile.getName());
  console.log('Given Name: ' + profile.getGivenName());
  console.log('Family Name: ' + profile.getFamilyName());
  console.log('Image URL: ' + profile.getImageUrl());
  console.log('Email: ' + profile.getEmail());
}

cause I did try that code on my app with google oauth2 python authentication but didn't get any data in the console.

Daniyaldehleh avatar Dec 28 '20 22:12 Daniyaldehleh