Skip to content

Instantly share code, notes, and snippets.

@michaelcarruthers
Created November 21, 2011 20:48
Show Gist options
  • Save michaelcarruthers/1383882 to your computer and use it in GitHub Desktop.
Save michaelcarruthers/1383882 to your computer and use it in GitHub Desktop.
client = OAuth::AccessToken.new(OAuth::Consumer.new('foo', 'bar', {:site => 'https://api.cloudkick.com'}))
ruby-1.9.2-p180 :052 > client.request(:post, "/2.0/checks", "{:monitor_id => 'qc00000000000', :type => 'HTTP'}").body
=> "Unauthorized Request"
ruby-1.9.2-p180 :053 >
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment