Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get users nickname in GAE

I'm using Google App Engine with a Google Account authentication. I have a list of Google e-mails, which have been used for authentication on my page. How can I get the user nickname/name for each of the e-mails? I can get it for current logged user by using User object, but I didn't find this option in Java for regular Google e-mail.

Python implementation has this functionality: users.User(email)

like image 616
Le_Coeur Avatar asked Aug 25 '26 04:08

Le_Coeur


1 Answers

Take a look at the documentation. There's a constructor for making a User object from an email address and authorization domain, from which you can get the nickname.

Take a look at @Andrei's answer bellow for an example (I actually don't code Java :) ).

like image 189
Linuxios Avatar answered Aug 26 '26 21:08

Linuxios



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!