From 4c7a897a6620f58cba65857ab865bfbd0ca1d326 Mon Sep 17 00:00:00 2001 From: Junho Kyung Date: Mon, 22 Jul 2013 17:27:45 +0900 Subject: [PATCH] Change search_base url for API v1.1 --- lib/keys.js | 4 ++-- lib/twitter.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/keys.js b/lib/keys.js index daa1651c..82601931 100644 --- a/lib/keys.js +++ b/lib/keys.js @@ -5,8 +5,8 @@ module.exports = { authenticate_url: 'https://api.twitter.com/oauth/authenticate', authorize_url: 'https://api.twitter.com/oauth/authorize', rest_base: 'https://api.twitter.com/1.1', - search_base: 'http://search.twitter.com', - stream_base: 'https://stream.twitter.com/1.1', + search_base: 'https://api.twitter.com/1.1/search', + stream_base: 'https://stream.twitter.com/1.1', user_stream_base: 'https://userstream.twitter.com/1.1', site_stream_base: 'https://sitestream.twitter.com/1.1' } diff --git a/lib/twitter.js b/lib/twitter.js index edc52464..e6ba8467 100644 --- a/lib/twitter.js +++ b/lib/twitter.js @@ -163,7 +163,7 @@ Twitter.prototype.search = function(q, params, callback) { return this; } - var url = this.options.search_base + '/search.json'; + var url = this.options.search_base + '/tweets.json'; params = utils.merge(params, {q:q}); this.get(url, params, callback); return this;