Skip to content

Instantly share code, notes, and snippets.

@kellydunn
Created February 12, 2014 23:39
Show Gist options
  • Save kellydunn/8966855 to your computer and use it in GitHub Desktop.
Save kellydunn/8966855 to your computer and use it in GitHub Desktop.
client.register({
:url => "/users/:id",
:accept => :json,
:success => Proc.new { |res|
puts res
},
:error => Proc.new{ |res|
puts "ERROR: #{res.body}"
}
})
client.perform({
:url => "/users/abc123",
:accept => :json,
})
@aschzero
Copy link

YEAH SON

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment