Skip to content

Instantly share code, notes, and snippets.

@pdarche
Created February 26, 2013 00:51
Show Gist options
  • Save pdarche/5034801 to your computer and use it in GitHub Desktop.
Save pdarche/5034801 to your computer and use it in GitHub Desktop.
Open Paths in Ruby with the Crazylegs gem
require 'crazylegs'
consumer_key = "your consumer key"
consumer_secret = "your consumer secret"
base_url = "https://openpaths.cc/api/1"
credentials = Credentials.new(consumer_key,consumer_secret)
url = SignedURL.new(credentials, base_url,'GET')
signed_url = url.full_url
res = HTTParty.get(signed_url)
parsed = JSON.parse(res.parsed_response)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment