有没有办法在使用 OAuth 验证他/她的 Twitter 身份后获取用户的电子邮件 ID? [英] Is there a way to get an user's email ID after verifying his/her Twitter identity using OAuth?

查看:52
本文介绍了有没有办法在使用 OAuth 验证他/她的 Twitter 身份后获取用户的电子邮件 ID?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 OAuth 的新手,并且一直在使用 Twitter API.通过向 http://api.twitter.com/1/account/verify_credentials.xml 发出请求,我能够在身份验证后获取用户的凭据.响应包含用户 ID、屏幕名称等,但不包含电子邮件 ID.

I am new to OAuth and have been playing around with the Twitter API. I am able to fetch the credentials of an user after authentication by making a request to http://api.twitter.com/1/account/verify_credentials.xml. The response contains the user id, screen name etc. but not the email ID.

是否可以检索用户的电子邮件 ID?

Is it possible at all to retrieve the email ID of the user?

更新

如果您特别请求扩展权限,我相信 Facebook 会提供这些信息.Twitter 有类似的东西吗?

I believe Facebook provides this information if you specifically request for extended permissions. Is there something similar for Twitter?

推荐答案

无法通过 API 检索用户的电子邮件地址.这是 API 团队深思熟虑的设计决定.

The user's email address can not be retrieved via the API. This is a deliberate design decision by the API team.

更新 2015.08.18:

可以向用户请求电子邮件地址,但需要将您的应用列入白名单.请参阅 https://dev.twitter.com/rest/reference/get/account/verify_credentials 以获取 API 调用的详细信息,以及此表单 以请求将您的应用列入白名单.

It is possible to request an email address from users, but it requires your app to be whitelisted. See https://dev.twitter.com/rest/reference/get/account/verify_credentials for details of the API call and this form to request whitelisting of your app.

这篇关于有没有办法在使用 OAuth 验证他/她的 Twitter 身份后获取用户的电子邮件 ID?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆