Skip to content

kdsanman/twitter-api-examples

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 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

Before running

  • Create an app at t.co/apps to get consumer keys and generate access tokens.
  • Add these tokens to the block intializing the Twit object (typically starts around line 23).

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

Languages

  • JavaScript 100.0%