Skip to content

jbulava/twitter-api-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Twitter REST and Streaming Examples

This Node.js application demonstrates how to use:

  • REST API - search (search.js)
  • Streaming API - 1% sample (sample.js)
  • Streaming API - filter (filter.js)
  • Streaming API - user stream (userstream.js)

Documentation for these endpoints

Additional documentation

Before running

  1. Copy the config.sample.js to a file named config.js in the same directory
  2. Create an app at t.co/apps to get consumer keys and generate access keys.
  3. Add these keys to your newly created config.js file.

Note: For your safety, the config.js file will NOT be added to your repository. This is handled by the .gitignore file and the purpose is to not publically expose your applications keys.

Install twit

npm install twit

To run

node filter.js
node sample.js
node search.js
node userstream.js

By @jbulava

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published