Hopefully collect retweets from Twitter. Untested functionality.

This commit is contained in:
Andrew Tomaka 2011-10-17 09:06:35 -04:00
parent 61f87baebc
commit 109be86bad

View file

@ -73,7 +73,7 @@ file_put_contents(DATA,json_encode($sourceData));
// Data sources // Data sources
//***************************************************************************// //***************************************************************************//
function twitter() { function twitter() {
$url = 'http://www.twitter.com/statuses/user_timeline/atomaka.json?count=1'; $url = 'http://www.twitter.com/statuses/user_timeline/atomaka.json?count=1&include_rts=true';
$tweetInfo = json_decode(file_get_contents($url)); $tweetInfo = json_decode(file_get_contents($url));
// An empty result set currently (always?) means that the last post was // An empty result set currently (always?) means that the last post was