diff --git a/lib/Twitter.js b/lib/Twitter.js index 93c891f..b1f23f8 100644 --- a/lib/Twitter.js +++ b/lib/Twitter.js @@ -122,6 +122,18 @@ Twitter.prototype.getUser = function (params, error, success) { this.doRequest(url, error, success); }; +Twitter.prototype.getUsers = function (params, error, success) { + var path = '/users/lookup.json'; + var url = this.baseUrl + path; + this.doPost(url, params, error, success); +}; + +Twitter.prototype.getFriendsIds = function (params, error, success) { + var path = '/friends/ids.json' + this.buildQS(params); + var url = this.baseUrl + path; + this.doRequest(url, error, success); +}; + Twitter.prototype.getFollowersList = function (params, error, success) { var path = '/followers/list.json' + this.buildQS(params); var url = this.baseUrl + path; @@ -173,7 +185,7 @@ Twitter.prototype.doPost = function (url, post_body, error, success) { .replace(/\(/g, "%28") .replace(/\)/g, "%29") .replace(/\*/g, "%2A"); - //(url, oauth_token, oauth_token_secret, post_body, post_content_type, callback + //(url, oauth_token, oauth_token_secret, post_body, post_content_type, callback this.oauth.post(url, this.accessToken, this.accessTokenSecret, post_body, "application/x-www-form-urlencoded", function (err, body, response) { console.log('URL [%s]', url); if (!err && response.statusCode == 200) {