Skip to content

Commit

Permalink
Common aliases for Saved searches resources
Browse files Browse the repository at this point in the history
  • Loading branch information
jdub committed May 8, 2011
1 parent 83d25fb commit f85b468
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/twitter.js
Expand Up @@ -1024,12 +1024,16 @@ Twitter.prototype.createSavedSearch = function(query, callback) {
this.post(url, {query: query}, null, callback);
return this;
}
Twitter.prototype.newSavedSearch =
Twitter.prototype.createSavedSearch;

Twitter.prototype.destroySavedSearch = function(id, callback) {
var url = '/saved_searches/destroy/' + escape(id) + '.json?_method=DELETE';
this.post(url, null, null, callback);
return this;
}
Twitter.prototype.deleteSavedSearch =
Twitter.prototype.destroySavedSearch;

// OAuth resources

Expand Down

0 comments on commit f85b468

Please sign in to comment.