diff --git a/README.md b/README.md index 2905e11..1b60a5c 100644 --- a/README.md +++ b/README.md @@ -55,7 +55,17 @@ Tweetable also supports [timeago](https://github.com/rmm5t/jquery-timeago). for cacheInMilliseconds {Integer} // Time to keep the most recent tweets in cache before requesting new ones onComplete: {Object} // Function callback after event triggered +To get CONSUMER KEY, CONSUMER SECRET, and access Tokens, you must create an app in your twitter account + +https://apps.twitter.com/ + +Requeriments: Abraham's TwitterOauth, you can download in: +https://twitteroauth.com/ + + ### Changelog +#### 2.2 +* Added API for remote twitter #### 2.1 * Added caching for improved performance diff --git a/index.php b/index.php new file mode 100644 index 0000000..2304569 --- /dev/null +++ b/index.php @@ -0,0 +1,32 @@ +get( + 'statuses/home_timeline', + array( + 'screen_name' => $id, + 'count' => $limit + ) + ); +$tweets=array(); +$i=0; + if(!empty($twitterData)){ + foreach($twitterData as $tweet){ + if (!empty($tweet->id)) + { + $tweets[$i]['tweet_date']=date("YM d H:i:sTZY",strtotime($tweet->created_at)); + $tweets[$i]['response']=$tweet->text; + $i++; + } + } + } +$result['tweets']=$tweets; +echo json_encode($result); +?> diff --git a/tweetable.jquery.js b/tweetable.jquery.js index 1844999..be287ec 100755 --- a/tweetable.jquery.js +++ b/tweetable.jquery.js @@ -21,7 +21,7 @@ var tweetList = jQuery('