Twitter-App
Introduction
This web application is made in the interest of,
- getting logged in
- user's home tweets
- show their 10 random followers
- search twitter users and
- displaying their tweets
- as well as downloading their tweets up to 3200 in 3 formats like CSV, JSON, PDF.
Documentation
Examples
- First Create a New App for twitter
- Import Twitter Api https://github.com/abraham/twitteroauth
- Authentication Example
Authenticate with your application credentials:
api = TwitterAPI(consumer_key, consumer_secret, access_token_key, access_token_secret)
Home Tweets: Check Here
$tweets = $connection->get('statuses/home_timeline', ['count' => 50, 'exclude_replies' => true, 'screen_name' => 'any name', 'include_rts' => false]);
print_r($tweets)
User Tweets: Check Here
$tweets = $connection->get('statuses/user_timeline', ['count' => 50, 'exclude_replies' => true, 'screen_name' => 'any name', 'include_rts' => false]);
print_r($tweets)
Followers : Check Here
$followers_list = $connection->get('followers/list', ['screen_name' => 'any name']);
print_r($followers_list)
Public Users : Check Here
$users = $connection->get('users/search', array('q' => 'any username or pagename'));
print_r($users)
Added PDF download for user tweets : Check Here
I have used FPDF library , check out above given link for more info.
Created By
Shweta Danej