var VERSION = '0.0.1',
	oauth = require('oauth');


var Twitter = function(options) {
	if (!(this instanceof Twitter))
		return new Twitter(options);

	this.consumerKey = options.consumerKey;
	this.consumerSecret = options.consumerSecret;
	this.callback = options.callback;

	this.oa = new oauth.OAuth("https://twitter.com/oauth/request_token", "https://twitter.com/oauth/access_token",
		this.consumerKey, this.consumerSecret, "1.0A", this.callback, "HMAC-SHA1");

	return this;
}
Twitter.VERSION = VERSION;

Twitter.prototype.getRequestToken = function(callback) {
	this.oa.getOAuthRequestToken(function(error, oauthToken, oauthTokenSecret, results){
		if (error) {
			callback(error);
		} else {  
			callback(null, oauthToken, oauthTokenSecret, results);
		}
	});
}

Twitter.prototype.getAccessToken = function(requestToken, requestTokenSecret, oauth_verifier, callback) {
	this.oa.getOAuthAccessToken(requestToken, requestTokenSecret, oauth_verifier, function(error, oauthAccessToken, oauthAccessTokenSecret, results) {
		if (error) {
			callback(error);
		} else {
			callback(null, oauthAccessToken, oauthAccessTokenSecret, results);
		}
	});
}

Twitter.prototype.verifyCredentials = function (accessToken, accessTokenSecret, callback) {
	this.oa.get("https://api.twitter.com/1.1/account/verify_credentials.json", accessToken, accessTokenSecret, function (error, data, response) {
		if (error) {
			callback(error);
		} else {
			callback(null, JSON.parse(data), null);
		}	
	});	
}

module.exports = Twitter;
@@ -16,10 +16,49 @@
 0.0.
-1'
+2',%0A%09querystring = require('querystring')
 ,%0A%09o
@@ -1231,17 +1231,16 @@
 function
- 
 (accessT
@@ -1503,14 +1503,993 @@
 ata)
-, null
+);%0A%09%09%7D%09%0A%09%7D);%09%0A%7D%0A%0A%0A// TIMELINES%0ATwitter.prototype.getTimeline = function(type, params, accessToken, accessTokenSecret, callback) %7B%0A%09type = type.toLowerCase();%0A%0A%09var url;%0A%09switch(type) %7B%0A%09%09case %22home_timeline%22:%0A%09%09case %22home%22:%0A%09%09%09url = %22home_timeline%22;%0A%09%09%09break;%0A%09%09case %22mentions_timeline%22:%0A%09%09case %22mentions%22:%0A%09%09%09url = %22mentions_timeline%22;%0A%09%09%09break;%0A%09%09case %22user_timeline%22:%0A%09%09case %22user%22:%0A%09%09%09if (params.user_id %7C%7C params.screen_name) %7B%0A%09%09%09%09callback(%22Always specify either an user_id or screen_name when requesting a user timeline.%22);%0A%09%09%09%09return false;%0A%09%09%09%7D%0A%09%09%09url = %22user_timeline%22;%0A%09%09%09break;%0A%09%09case %22retweets_of_me%22:%0A%09%09case %22retweets%22:%0A%09%09%09url = %22retweets_of_me%22;%0A%09%09%09break;%0A%09%09default:%0A%09%09%09callback(%22Please specify an existing type.%22);%0A%09%7D%0A%0A%09this.oa.get(%22https://api.twitter.com/1.1/statuses/%22 + url + %22.json?%22 + querystring.stringify(params), accessToken, accessTokenSecret, function (error, data, response) %7B%0A%09%09if (error) %7B%0A%09%09%09callback(error);%0A%09%09%7D else %7B%0A%09%09%09callback(null, JSON.parse(data)
 );%0A%09

Update twitter.js