2010-04-27 156 views

回答

0

根据API文档,你可以通过一个电子邮件地址,用户/ 表演方法,我会假设,如果用户不存在,那你将获得 404 ,这应该允许您确定用户是否存在 。

如:http://twitter.com/users/[email protected]

的结果,如果不存在:

<?xml version="1.0" encoding="UTF-8"?> 
<hash> 
    <request>/users/[email protected]</request> 
    <error>Not found</error> 
</hash 
3

在新的Twitter的API email参数已被弃用。

下面是一些可以使用来代替:http://api.twitter.com/1/users/show/username.xml

更换用户名与实际的用户名。如果用户不在场,您将收到一条错误消息:

<?xml version="1.0" encoding="UTF-8"?> 
<hash> 
    <error>Not found</error> 
    <request>/1/users/show/asdfsadfasdfasdf.xml</request> 
</hash> 
相关问题