nakajima-twitter_oauth 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/twitter_oauth/search.rb +1 -1
- metadata +1 -1
data/lib/twitter_oauth/search.rb
CHANGED
@@ -7,7 +7,7 @@ module TwitterOAuth
|
|
7
7
|
def search(q, options={})
|
8
8
|
options[:page] ||= 1
|
9
9
|
options[:per_page] ||= 20
|
10
|
-
response = open("http://search.twitter.com/search.json?q=#{URI.escape(q)}&page=#{options[:page]}&rpp=#{options[:per_page]}&since_id=#{options[:since_id]}")
|
10
|
+
response = open("http://search.twitter.com/search.json?q=#{URI.escape(q)}&page=#{options[:page]}&rpp=#{options[:per_page]}&since_id=#{options[:since_id]}", 'User-Agent' => 'socialtriage.com')
|
11
11
|
search_result = JSON.parse(response.read)
|
12
12
|
search_result = OpenStruct.new(search_result)
|
13
13
|
|