Skip to content

Twitter App which shows user and home tweets,followers,search users and download tweets using ajax and autocomplete.

Notifications You must be signed in to change notification settings

shwetadanej/Twitter-App

Repository files navigation

Twitter-App

Twitter-App Logo

Introduction

This web application is made in the interest of,

  1. getting logged in
  2. user's home tweets
  3. show their 10 random followers
  4. search twitter users and
  5. displaying their tweets
  6. as well as downloading their tweets up to 3200 in 3 formats like CSV, JSON, PDF.

Documentation

Examples

  1. First Create a New App for twitter
  2. Import Twitter Api https://github.com/abraham/twitteroauth
  3. 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

Stackoverflow Profile

Twitter Profile

Facebook Profile

About

Twitter App which shows user and home tweets,followers,search users and download tweets using ajax and autocomplete.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages