問題描述
如何獲取接受我的 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:
- 轉到https://support.twitter.com/forms/platform
- 選擇我需要訪問特殊權限"
- 輸入應用程序名稱和 ID.這些可以通過 https://apps.twitter.com/ 獲得——應用程序 ID 是瀏覽器地址欄中的數字部分點擊您的應用后.
- 權限請求:電子郵件地址"
- 提交&等待回復
- 在您的請求獲得批準后,會在您的 twitter 應用的權限"部分中添加一個附加權限設置.轉到其他權限",然后選中從用戶處請求電子郵件地址"復選框.
- Go to https://support.twitter.com/forms/platform
- Select "I need access to special permissions"
- 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.
- Permissions Request: "Email address"
- Submit & wait for response
- 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 嗎?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!