unisolutions / silverstripe-latesttweets
此包的最新版本(dev-master)没有提供许可证信息。
SilverStripe 的最新推文模块。
dev-master
2016-01-10 22:17 UTC
Requires
- silverstripe/cms: 3.*
This package is not auto-updated.
Last update: 2024-09-23 15:11:04 UTC
README
SilverStripe 的最新推文模块。
维护者联系方式
Elvinas Liutkevičius
<elvinas (at) unisolutions (dot) eu>
要求
SilverStripe 3
文档
简单安装模块,使用标准方法。
此模块使用 SS_Cache 减少Twitter REST API请求数量。默认缓存寿命为30分钟。您可以通过在 _config.php 中添加此行来更改此值(1800为秒数)。
SS_Cache::set_cache_lifetime('LatestTweets_cache', 1800, 10);
用法
简单。只需在模板的任何位置放置 $LatestTweets。
如果您对默认的推文列表模板不满意,可以覆盖默认的 LatestTweets.ss 模板。
第三方
使用由Matt Harris编写的PHP库 tmhOAuth
,特地为Twitter API使用(http://themattharris.com)。