All Projects → abraham → twitteroauth-com

abraham / twitteroauth-com

Licence: MIT license
Documentation site and example code for using the TwitterOAuth library.

Programming Languages

HTML
75241 projects
PHP
23972 projects - #3 most used programming language
CSS
56736 projects

TwitterOAuth

Documentation and demo site for the TwitterOAuth PHP library.

Development

  1. Register a Twitter app.
  2. Set http://localhost:8000/callback.php as a "Callback URL" in the newly registered application.
  3. Create .env file.
    cp example.env .env
  4. Set CONSUMER_KEY and CONSUMER_SECRET in .env.
  5. Install dependencies.
    npm install
  6. Start dev server.
    npm start
  7. Visit http://localhost:8000/.

Deploy

  1. Create a Heroku app.
  2. Register a Twitter app.
  3. Set Heroku config vars for CONSUMER_KEY, CONSUMER_SECRET, and OAUTH_CALLBACK. Optionally GOOGLE_ANALYTICS_ID and TEMPLATE_CACHE_ENABLED.
  4. Push code to Heroku.

Update tweet data

  1. Install twurl
    gem install twurl
  2. Update tweet data
    twurl "/1.1/users/show.json?screen_name=jack&include_entities=true&tweet_mode=extended" > jack.json
    twurl "/1.1/statuses/show.json?id=20&include_entities=true&tweet_mode=extended" > 20.json
  3. Format the data
    npm run fix
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].