Skip to content

Instantly share code, notes, and snippets.

View tonyheupel's full-sized avatar

Tony C. Heupel tonyheupel

View GitHub Profile
@tonyheupel
tonyheupel / search.rb
Created August 4, 2011 00:49
Consuming/using the JSON API from Ruby
require 'net/http'
class Search
URL = 'http://api.ischyrus.com/JsonSearchApiService.svc/json/'
def initialize(api_key)
@api_key = api_key
end
def search(category, term, client_ip, user_agent)