Twitter API:通过电子邮件搜索人 [英] Twitter API: search people by email

查看:827
本文介绍了Twitter API:通过电子邮件搜索人的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想通过Twitter API找人。
我使用这样的网址: https:/ /api.twitter.com/1/users/search.json?q=some@email.com
但是有一个问题。例如,当我通过电子邮件blablabla@gmail.com进行搜索时,twitter在电子邮件中以gmail.com的形式回复了我所有的帐户。所以我甚至找不到自己。



如何告诉twitter API我只想找到具有指定电子邮件的人?

解决方案

Twitter API 用户/搜索文档清楚地表明搜索功能类似于Twitter上提供的查找人物搜索。我使用我的电子邮件地址查找人物搜索,并搜索所有拥有 @ ispprovider.com (示例)的人。


$ b $这样做的原因是电子邮件地址是私人和机密的用户凭据,Twitter不能在API下发布(用户使用他们的电子邮件地址登录,如果需要)。他们只能在公开搜索,用户共享的可用数据)。如果您想通过电子邮件搜索,您可以写信给Twitter并请求通过电子邮件选项激活搜索。对我来说,如果允许通过电子邮件搜索,这是一个危险的安全隐患。






按电子邮件查找选项仅在查找好友选项中可用,基本上允许Twitter通过您的电子邮件帐户(GMail,Yahoo,AOL,LinkedIn),检索您的电子邮件联系人列表,并将其发送到其数据库,以查看是否有电子邮件地址匹配。



Twitter从未发布让别人通过我的电子邮件地址在Twitter API上找到我(正如我之前提到的,它将构成危险的安全风险)。


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?

解决方案

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).

这篇关于Twitter API:通过电子邮件搜索人的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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