Created
December 7, 2011 16:22
-
-
Save timhodson/1443433 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'kasabi' | |
require 'json' | |
#change to your API key | |
APIKEY = "YOUR_API_KEY" | |
dataset = Kasabi::Dataset.new("http://kasabi.com/dataset/nasa", :apikey => APIKEY ) | |
#Search for "Apollo", limiting to 5 results | |
results = dataset.search_api_client.search("apollo", { :max => 5 }) | |
#Dump the JSON response to the console | |
puts JSON.pretty_generate(results) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment