从twitter提起提及使用php
问题描述:
我想从使用php的twitter中检索提及。目前的代码,我已经很好地检索user_timeline,但是当我尝试使用相同的代码的提到我得到一个身份验证错误。检索包含用户标识,图片,文本等的提及的最佳方式是什么?从twitter提起提及使用php
如果我将user_time更改为提及我遇到验证错误。
这是我现在用php检索user_timeline的代码。
<?php
$xmldata = "http://twitter.com/statuses/user_time/usernid.xml";
$open = fopen($xmldata,'r');
$content = stream_get_contents($open);
fclose($open);
$xml = new SimpleXMLElement($content);
$screenname = $xml->status[0]->user->screen_name;
?>
答
即时通讯银行,这是访问级别要求您有一个应用程序注册到Twitter开发,并使用oauth访问服务api的.. Twitter确实有一些公开可用的东西,比如time_lines,但是很多其他的东西都需要你注册一个应用。 – chris 2012-01-31 09:42:49