简体   繁体   English

Twitter4j中Twitter用户的电子邮件

[英]Email of Twitter User in Twitter4j

Can twitter4j get the email of twitter users authorizing an application/web site. twitter4j可以获取授权应用程序/网站的twitter用户的电子邮件。

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 您可以使用以下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. Twitter说,它不提供任何用于电子邮件检索的API。 https://dev.twitter.com/docs/faq#6718 https://dev.twitter.com/docs/faq#6718

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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