Skip to content

Instantly share code, notes, and snippets.

@mchung
Created December 18, 2009 23:58
Show Gist options
  • Save mchung/259874 to your computer and use it in GitHub Desktop.
Save mchung/259874 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'restclient'
require 'pp'
require 'json'
res = RestClient::Resource.new("https://app.liquidplanner.com/api", "[email protected]", "foo")
# res["workspaces/5551212"].get(:accept => 'application/json')
pp JSON.load res["account"].get(:accept => 'application/json')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment