Giter Club home page Giter Club logo

twitter-app's Introduction

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

twitter-app's People

Contributors

shwetadanej avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.