Skip to content
Browse files

patched api_key in url

  • Loading branch information...
1 parent f0e1c43 commit 6d4c55dae861b8550d0d361ab832adb229707736 @twoism twoism committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/google_ajax.rb
View
2 lib/google_ajax.rb
@@ -32,7 +32,7 @@ def self.get(api, method, query, args = nil)
url = "#{API_BASE}#{api}/"
url += "#{method}?"
url += "&q=#{CGI::escape(query)}"
- url += "&key=#{@@api_key}" if @@api_key
+ url += "&key=#{api_key}" if @@api_key
url += "&" + args.collect {|key, value| "#{key}=#{value}"}.join('&') if args && !args.empty?
data = open(url, "Referer" => @@referer).read
Parser.parse(api, method, data)

0 comments on commit 6d4c55d

Please sign in to comment.
Something went wrong with that request. Please try again.