我将如何使用 PHP 从多个 twitter 用户中提取推文,并将它们作为一个组合列表的一部分显示在我的页面上?
How would I go about pulling in tweets from multiple twitter users with PHP and displaying them as part of one combined list on my page?
使用搜索 API 和布尔 OR 运算符.例如,这里是 CNN Breaking News 和 NPR All Things Considered 的 URL:
Use the search API and boolean OR operator. For example here is the URL for CNN Breaking News and NPR All Things Considered:
http://search.twitter.com/search.json?q=from%3acnnbrk+OR+from%3anpratc
查询是 URLEncoded 所以使用 Fiddler 工具 -> 文本编码/解码或你最喜欢的工具来查看纯文本的正确格式是:
The query is URLEncoded so use Fiddler Tools -> Text Encode/Decode or your favorite tool to see that the correct format in plain text is:
q=from:cnnbrk+OR+from:npratc
希望有所帮助.
这篇关于PHP Twitter API - 如何拉入多个用户的推文?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!
PHP、MySQL PDOException 的死锁异常代码?Deadlock exception code for PHP, MySQL PDOException?(PHP、MySQL PDOException 的死锁异常代码?)
PHP PDO MySQL 可滚动游标不起作用PHP PDO MySQL scrollable cursor doesn#39;t work(PHP PDO MySQL 可滚动游标不起作用)
PHP PDO ODBC 连接PHP PDO ODBC connection(PHP PDO ODBC 连接)
使用 PDO::FETCH_CLASS 和魔术方法Using PDO::FETCH_CLASS with Magic Methods(使用 PDO::FETCH_CLASS 和魔术方法)
php pdo 只从 mysql 获取一个值;等于变量的值php pdo get only one value from mysql; value that equals to variable(php pdo 只从 mysql 获取一个值;等于变量的值)
MSSQL PDO 找不到驱动程序MSSQL PDO could not find driver(MSSQL PDO 找不到驱动程序)