-
Notifications
You must be signed in to change notification settings - Fork 1
jmcopeland/factual-gem
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Factual Gem =========== Factual Gem is a Ruby wrapper for the Factual API v3. It is based on the HTTParty gem by John Nunemaker. Factual API v3 Docs =================== http://developer.factual.com/display/docs/Factual+Developer+APIs+Version+3 You will need to request a beta API key at http://www.factual.com/devtools/beta INSTALLATION ============ gem install factual CROSSWALK USAGE =============== client = Factual::Client.new("YOUR_API_KEY") crosswalk = Factual::Crosswalk.new(client) # parameters: factual_id of the place results = crosswalk.search_by_factual_id('1234567890') # parameters: namespace, namespace_id results = crosswalk.search_by_namespace('foursquare', '54634563473') CROSSREF USAGE =============== client = Factual::Client.new("YOUR_API_KEY") crossref = Factual::Crossref.new(client) # parameters: factual_id of the place results = crossref.search_by_factual_id('1234567890') # parameters: url results = crossref.search_by_url('http://www.yelp.com/some-business') RESOLVE USAGE =============== client = Factual::Client.new("YOUR_API_KEY") resolve = Factual::Resolve.new(client) # parameters: hash of values results = resolve.search_by_values({:name => 'name', :latitude => 37.63326, :longitude => -127.35625}) TODO ==== 1. integrate OAuth 2. fix regular places calls (currently broken) 3. more robust error handling
About
Ruby Factual gem for API v3: includes crosswallk, crossref, and resolve
Resources
Stars
Watchers
Forks
Packages 0
No packages published