Skip to content

Instantly share code, notes, and snippets.

@markburns
Created November 13, 2011 21:14
Show Gist options
  • Save markburns/1362727 to your computer and use it in GitHub Desktop.
Save markburns/1362727 to your computer and use it in GitHub Desktop.
twitter = Hateoas.site "api.twitter.com"
twitter.actions
# => [sign_in: {method: :get}]
twitter.sign_in user: "[email protected]", password: "password"
twitter.actions
# => [read_messages: {method: :get}, tweet: {method: :post}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment