問(wèn)題描述
如何獲取接受我的 Twitter 申請(qǐng)的用戶的電子郵件 ID?
How to get email id of the user who accepted my Twitter application?
我瀏覽了很多論壇.但他們已經(jīng)提到,這是不可能的.這些帖子也超過(guò)一年.我可以知道是否可以使用 PHP 通過(guò) 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 用戶詳細(xì)信息:
I am getting Twitter user details using the following URL:
https://api.twitter.com/1.1/account/verify_credentials.json>
推薦答案
現(xiàn)在可以通過(guò)填寫(xiě)表單來(lái)請(qǐng)求 提升權(quán)限:
This is now possible by filling out a form to request elevated permissions:
- 轉(zhuǎn)到https://support.twitter.com/forms/platform
- 選擇我需要訪問(wèn)特殊權(quán)限"
- 輸入應(yīng)用程序名稱和 ID.這些可以通過(guò) https://apps.twitter.com/ 獲得——應(yīng)用程序 ID 是瀏覽器地址欄中的數(shù)字部分點(diǎn)擊您的應(yīng)用后.
- 權(quán)限請(qǐng)求:電子郵件地址"
- 提交&等待回復(fù)
- 在您的請(qǐng)求獲得批準(zhǔn)后,會(huì)在您的 twitter 應(yīng)用的權(quán)限"部分中添加一個(gè)附加權(quán)限設(shè)置.轉(zhuǎn)到其他權(quán)限",然后選中從用戶處請(qǐng)求電子郵件地址"復(fù)選框.
- 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".
請(qǐng)注意,用戶電子郵件地址必須經(jīng)過(guò)驗(yàn)證,否則 Twitter 拒絕提供.(請(qǐng)參閱提升權(quán)限文檔頁(yè)面中的include_email參數(shù)說(shuō)明.)
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.)
這篇關(guān)于我們可以從 Twitter oauth API 獲取電子郵件 ID 嗎?的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!