andrewbiggart / latest-tweets-php-o-auth

Twitters API v1.0 has now been retired. Here's a way you can pull your tweets from Twitter using PHP and OAuth.
130 stars 43 forks source link

Tried to make the "get tweets" function more versatile #1

Open jsit opened 11 years ago

jsit commented 11 years ago

I wanted to be able to include the tweets.php file in any other php file and use the function inside of it to grab tweet data without displaying it, for use later.

I also wanted to be able to keep tweets.php up to date via GitHub without it overwriting any of my "settings", so I turned all the variables into an array of parameters.

This version requires that you do something like:

include('latest-tweets-php-o-auth/tweets.php');
echo get_latest_tweets(array('twitter_user_id'=>'twitter'));

I also added a handful of .gitignore rules, removed .DS_Store, etc.