Twitter API: search people by email

故事扮演 提交于 2019-12-19 04:08:18

问题


I'm trying to find people via Twitter API. I use urls like this: https://api.twitter.com/1/users/search.json?q=some@email.com But there's a problem. For example, when I search by email "blablabla@gmail.com", twitter responds to me with all account than have "gmail.com" in their email. So I can't find even myself.

How can I tell twitter API that I want to find only person with specified email?


回答1:


The Twitter API users/search documentation clearly states that the search function is similar to the Find People search that's available on Twitter. I did a Find People search with my email address and it searched for everyone that has a @ispprovider.com (example).

The reason for this is that email addresses are private and confidential user credentials that twitter cannot release under the API (Users log in with their email address if they need to). They can only do search on public, available data that the user shares). If you want to search by email, you can write to Twitter and request to activate the search by email option. That, to me is a dangerous security risk if they do allow search by email.


The Find By Email option is only available in the Find Friends option which basically allows Twitter to go through your email account (GMail, Yahoo, AOL, LinkedIn) , retrieve your email contact lists and bash it to their database to see if there are email address matches.

Twitter never released the "Let others find me by my email address" on Twitter API (as I mentioned earlier, it will pose a dangerous security risk).



来源:https://stackoverflow.com/questions/3931657/twitter-api-search-people-by-email

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!