node package manager
Don’t reinvent the wheel. Reuse code within your team. Create a free org »



twitter-node-sdk aims to provide a complete, asynchronous client library for the Twitter API 1.1.


var Twitter = require('twitter-node-sdk');

var config = {
    consumerKey: '{consumerKey}',
    consumerSecret: '{consumerSecret}',
    accessToken: '{accessToken}',
    accessTokenSecret: '{accessTokenSecret}',
    callBackUrl: '{callBackUrl}'

var twitter = new Twitter(config);

twitter.getUserTimeline({ screen_name: 'BoyCook', count: '10'}, error, success);
twitter.getMentionsTimeline({ count: '10'}, error, success);
twitter.getHomeTimeline({ count: '10'}, error, success);
twitter.getReTweetsOfMe({ count: '10'}, error, success);
twitter.getTweet({ id: '1111111111'}, error, success);