Permalink
Browse files

Common aliases for Saved searches resources

  • Loading branch information...
1 parent 83d25fb commit f85b4689f4af657a4bd4a7d4e74ad551047a32ff @jdub committed May 8, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/twitter.js
View
@@ -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

0 comments on commit f85b468

Please sign in to comment.