我们可以从Twitter oauth API获取电子邮件ID吗? [英] Can we get email ID from Twitter oauth API?

查看:140
本文介绍了我们可以从Twitter oauth API获取电子邮件ID吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何获取接受我的Twitter应用程序的用户的电子邮件ID?

How to get email id of the user who accepted my Twitter application?

我已经浏览了很多论坛.但是他们已经提到,这是不可能的.这些职位还超过一年.我能否知道是否可以使用PHP通过twitter API获得用户电子邮件ID?

I have gone through lot of forums. But they have mentioned, it is not possible. Also those posts are older than a year. May I know whether it is possible to get the user email id through twitter API using PHP?

我正在使用以下URL获取Twitter用户详细信息:

I am getting Twitter user details using the following URL:

https://api.twitter.com/1.1/account/verify_credentials.json

推荐答案

现在可以通过填写表格来请求

This is now possible by filling out a form to request elevated permissions:

  1. 转到 https://support.twitter.com/forms/platform
  2. 选择我需要访问特殊权限"
  3. 输入应用程序名称和ID.可以通过 https://apps.twitter.com/获得-应用程序ID是浏览器地址栏中的数字部分单击您的应用后.
  4. 权限请求:电子邮件地址"
  5. 提交&等待回应
  6. 在批准您的请求之后,将在您的Twitter应用程序的权限"部分中添加一个附加权限设置.转到其他权限",然后选中向用户请求电子邮件地址"复选框.
  1. Go to https://support.twitter.com/forms/platform
  2. Select "I need access to special permissions"
  3. Enter Application Name and ID. These can be obtained via https://apps.twitter.com/ -- the application ID is the numeric part in the browser's address bar after you click your app.
  4. Permissions Request: "Email address"
  5. Submit & wait for response
  6. After your request is granted, an addition permission setting is added in your twitter app's "Permission" section. Go to "Additional Permissions" and just tick the checkbox for "Request email addresses from users".

请注意,必须验证用户电子邮件地址,否则Twitter拒绝提供该电子邮件地址. (请参阅高级权限文档页面中的 include_email 参数说明.)

Note that user e-mail address has to be verified, otherwise Twitter refuses to provide it. (See include_email parameter description in elevated permissions doc page.)

这篇关于我们可以从Twitter oauth API获取电子邮件ID吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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