|
Project Information
Featured
Downloads
Links
|
目前此程序已经运行于twitter上,请follow @RTKcn Why RetweetRobot
*推荐在Linux服务器下使用Cron Jobs,另外服务器必须不屏蔽twitter 注意一下,否则无法正常运行↓必须使用oAuth方式来发推! 以下是过时的通知因为1.5开始使用in reply to来链接原始数据,因此如果你使用oAuth发推者完成更新twitter,请修改update_tweet.php文件的代码为 <?php
require_once('twitteroauth.php');
require_once('config.php');
if (ACCESS_TOKEN_SECRET === '' || ACCESS_TOKEN === '') {
header('Location: connect.php');
}
$connection = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET, ACCESS_TOKEN, ACCESS_TOKEN_SECRET);
function post($msg,$reply=0) {
global $connection;
$arg = array('status' => $msg);
if ($reply>0) $arg['in_reply_to_status_id']=$reply;
$connection->post('statuses/update', $arg);
}不知道update_tweet.php是怎么回事?看看 HowToEdit 页的“自定义via”部分先! 请参阅
Change Log
|
RetweetRobot是开源的twitter锐推机器人,它可以自动收集RT信息并且转发。