diff --git a/lib/twitter.js b/lib/twitter.js index edc52464..7187ccf3 100644 --- a/lib/twitter.js +++ b/lib/twitter.js @@ -656,6 +656,19 @@ Twitter.prototype.getTrends = function(callback) { return this; } +/** + * Returns all the available sources for trends. + * @param params + * @param callback + * @see https://dev.twitter.com/docs/api/1.1/get/trends/available + * @returns {Twitter} + */ +Twitter.prototype.getAvailableTrends = function(params,callback) { + var url = '/trends/available.json'; + this.get(url, params, callback); + return this; +} + Twitter.prototype.getCurrentTrends = function(params, callback) { this.getTrendsWithId('1', params, callback); return this;