Created
February 26, 2013 00:51
-
-
Save pdarche/5034801 to your computer and use it in GitHub Desktop.
Open Paths in Ruby with the Crazylegs gem
This file contains 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 '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