Skip to content

Instantly share code, notes, and snippets.

@danieljohnmorris
Created March 28, 2014 17:08
Show Gist options
  • Save danieljohnmorris/9837740 to your computer and use it in GitHub Desktop.
Save danieljohnmorris/9837740 to your computer and use it in GitHub Desktop.
android rails token auth testing
curl -v -H 'Content-Type: application/json' -H 'Accept: application/json' -X POST http://beta.sofarsounds.com/api/v1/sessions -d "{\"user\":{\"email\":\"[email protected]\",\"password\":\"secret\"}}"
curl -v -H 'Content-Type: application/json' -H 'Accept: application/json' -X DELETE http://beta.sofarsounds.com/api/v1/sessions/\?auth_token\=JRYodzXgrLsk157ioYHf
curl -v -H 'Content-Type: application/json' -H 'Accept: application/json' -X POST http://beta.sofarsounds.com/api/v1/registrations -d "{\"user\":{\"email\":\"[email protected]\",\"password\":\"secret\",\"password_confirmation\":\"secret\"}}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment