Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #7 from pinguxx/master

add search base url
  • Loading branch information...
commit e9cabdce18e10bf4d632f37a57cd7c902f96183d 2 parents 3171aea + c839e4c
@masylum authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/twitter_client.js
View
6 lib/twitter_client.js
@@ -57,8 +57,12 @@ module.exports = function (key, secret) {
}
if (method.toUpperCase() === 'GET') {
+ var base = _rest_base;
+ if (path.search("/search") > -1){
+ base = "http://search.twitter.com";
+ }
return CLIENT.oauth.get(
- _rest_base + path + '?' + querystring.stringify(params)
+ base + path + '?' + querystring.stringify(params)
, token.oauth_token
, token.oauth_token_secret
, requestCallback(callback)
Please sign in to comment.
Something went wrong with that request. Please try again.