Twitter REST & Streaming API client for Node.js
Still very much a work-in-progress.
npm install twitter-starling
Include the twitter library:
var Twitter = ;
[ optional ] Create an authentication credential :
var credential = 'CONSUMER_KEY''CONSUMER_SECRET''ACCESS_TOKEN''ACCESS_TOKEN_SECRET' ;
Create the Twitter client:
var authorisedTwitter = credential;
Query the Twitter REST API:
// get the public timelineauthorisedTwittertimeline;
Query the Twitter Streaming API:
// sample the public timelineauthorisedTwitterstreamstatuses;
From root source folder you can try out some examples in the test directory:
this will execute some basic REST and Streaming functionality and is a good starting point if the above examples aren't detailed enough.
Most of the functionality is there, but some testing is lacking (there are no unit tests, oh dear!) so you can continue to use it but it would not be advisable to do so on production systems. not yet at least.
Check the GitHub repo here: https://github.com/seannicholls/twitter-starling
Contact me (Sean Nicholls) on GitHub
The biggest need right now is full documentation of the library. So if you're documentally inclined, get in touch!
MIT License - fork, modify and use however you want.