如何获得最后10条tweets的某些用户使用PHP? [英] How get last 10 tweets of certain user using php?

查看:107
本文介绍了如何获得最后10条tweets的某些用户使用PHP?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在我的首页上收到我最后一些tweet的简短时间表。告诉我最简单的方法来做到这一点。

PS我使用Codeigniter,它会很好得到一个解决方案^ _ ^

I need to receive just few my last tweets for short timeline on my homepage. Tell me the easiest way to do this.
PS I use Codeigniter and it would be nice to get a solution for it ^_^

非常感谢您的早期

推荐答案

Zend_Service_Twitter 示例:

$twitter = new Zend_Service_Twitter(array(
    'username' => 'johndoe',
    'accessToken' => $token,
    'count' => 10,
));
$response   = $twitter->status->userTimeline();

您可以使用它与codeignitor很好。

You can use it just fine with codeignitor.

这篇关于如何获得最后10条tweets的某些用户使用PHP?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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