Skip to content

Instantly share code, notes, and snippets.

@nerdyworm
Created August 30, 2012 17:17
Show Gist options
  • Save nerdyworm/3533960 to your computer and use it in GitHub Desktop.
Save nerdyworm/3533960 to your computer and use it in GitHub Desktop.
require 'json'
require 'restclient'
api_key = "<insert apikey>"
start_date = "2011-01-01" # YYYY-MM-DD
end_date = "2013-01-01"
url = "http://www.pipelinedeals.com/api/v3/deals?api_key=#{api_key}&conditions[deal_created][from_date]=#{start_date}&conditions[deal_created][to_date]=#{end_date}"
response = RestClient.get(url)
json = JSON.parse(response)
puts json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment