简体   繁体   中英

Email of Twitter User in Twitter4j

Can twitter4j get the email of twitter users authorizing an application/web site.

I was able to get the screen name as below:

User user = twitter.showUser(id);
String screenName = user.getScreenName();

How about the email? Is it possible?

Thanks.

You can get the user details using the below API: http://api.twitter.com/1/users/lookup.xml?user_id=YOUR_USER_ID

Twitter says it doesn't provide any API for email retrieval. https://dev.twitter.com/docs/faq#6718

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM