Jump to content

Zend Framework / get twitter status


ts2000abc

Recommended Posts

I tried to display my twitter status with this code, but it doesn't display anything (no errors, nothing).

 

require_once 'Zend/Service/Twitter.php';
$twitter = new Zend_Service_Twitter('_user_', '_pwd_');
$response = $twitter->status->userTimeline();
$twitterstatus = (string)$response->status[0]->text;
echo $twitterstatus;

 

I can get the status just fine by using the rss reader plugin (ZF library: Zend/Feed.php), but i would like to see if this twitter plugin works faster...

Link to comment
https://forums.phpfreaks.com/topic/173233-zend-framework-get-twitter-status/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.