Created
November 24, 2015 15:00
-
-
Save kharandziuk/3678887ccdc3e4e2f126 to your computer and use it in GitHub Desktop.
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
.phony: check | |
check1: | |
curl -v http://develop.cricketduel.inprogress.rocks/ | |
check2: | |
curl -i http://develop.cricketduel.inprogress.rocks/ | |
t: | |
tree ~/Documents | |
obtain-token: | |
curl -i -H "Content-Type: application/json" -X POST -d '{"email":"valerii.babaiev@gmail.com","password":"````````"}' http://develop.cricketduel.inprogress.rocks/api/v1/account/token-auth/ | |
show-user: | |
curl -i -H "Authorization: JWT ${TOKEN}" http://develop.cricketduel.inprogress.rocks/api/v1/account/profile/ | |
delete-photo: | |
curl -i -H "Authorization: JWT ${TOKEN}" -X DELETE http://develop.cricketduel.inprogress.rocks/api/v1/account/change-avatar/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
export TOKEN=сюда пишешь токер без скобочек!!!!!