Skip to content

Instantly share code, notes, and snippets.

@guilhermesilveira
Created June 9, 2010 00:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save guilhermesilveira/430863 to your computer and use it in GitHub Desktop.
Save guilhermesilveira/430863 to your computer and use it in GitHub Desktop.
resource = Restfulie.at('http://localhost:3000/items').get
resource.items[0].name
resource.response.code
resource.response.body
resource = Restfulie.at('http://localhost:3000/items').accepts('application/xml').get
resource.items[0].name
resource.response.code
resource.response.body
resource = Restfulie.at('http://localhost:3000/items').accepts('application/json').get
resource.items[0].name
resource.response.code
resource.response.body
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment