Email of Twitter User in Twitter4j

梦想与她 提交于 2019-12-19 22:00:36

问题


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.


回答1:


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



来源:https://stackoverflow.com/questions/11083145/email-of-twitter-user-in-twitter4j

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!