Created
March 28, 2014 17:08
-
-
Save danieljohnmorris/9837740 to your computer and use it in GitHub Desktop.
android rails token auth testing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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