Created
December 6, 2012 14:53
-
-
Save cmilfont/4224990 to your computer and use it in GitHub Desktop.
Curl para logar e pegar token
This file contains 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 -H 'Content-Type: application/json' \ | |
-H 'Accept: application/json' \ | |
-X POST http://localhost:3000/users/sign_in \ | |
-d "{\"user\" : { \"email\" : \"cmilfont@gmail.com\", \"password\" : \"testes\"}}" \ | |
-c cookie |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
curl -H 'Content-Type: application/json' -H 'Accept: application/json' -X POST http://localhost:3000/users/sign_in -d "{"user" : { "email" : "admin@grupofortes.com.br", "password" : "testes"}}" -c cookie -v
curl -H 'Content-Type: application/json' -H 'Accept: application/json' -X POST http://localhost:3000/ag/autenticador/login -d "{"user" : { "email" : "admin@grupofortes.com.br", "password" : "testes"}}" -c cookie -v
curl -H 'Content-Type: application/json' -H 'Accept: application/json' -X GET http://localhost:3000/sistemas.json -d "{"auth_token":"Gh1UhcSZHf3VDHphSXPp"}" -c cookie