chirp-rest
twitter rest apis in nodejs
Installation
npm i chirp-rest --save
Usage
var ChirpRest = ; var twitter = consumer: public: 'xxxxx' secret: 'xxxxx' token: public: 'xxxxx' secret: 'xxxxx' ; //get user timelinetwitter;
Example
- get user timeline
twitter;
- get user timeline limit 5
twitter;
- get user timeline
twitter;
- post new status
twitter;
https://dev.twitter.com/docs/api/1.1
API
.get(url, parameters, callback)
.post(url, parameters, callback)
Option
url
:String
Twitter api endpointparameters
:Object
Twitter api parametersoptional
callback