diff --git a/lib/twitter.js b/lib/twitter.js index 1dbf3e27..c2351720 100644 --- a/lib/twitter.js +++ b/lib/twitter.js @@ -128,7 +128,7 @@ Twitter.prototype.__request = function(method, path, params, callback) { }; // Pass url parameters if get - if (method === 'get') { + if (method === 'get' || method === 'delete') { options.qs = params; } @@ -243,6 +243,13 @@ Twitter.prototype.post = function(url, params, callback) { return this.__request('post', url, params, callback); }; +/** + * DELETE + */ +Twitter.prototype.delete = function(url, params, callback) { + return this.__request('delete', url, params, callback); +}; + /** * STREAM */