Skip to content

Instantly share code, notes, and snippets.

@kharandziuk
Created November 24, 2015 15:00
Show Gist options
  • Save kharandziuk/3678887ccdc3e4e2f126 to your computer and use it in GitHub Desktop.
Save kharandziuk/3678887ccdc3e4e2f126 to your computer and use it in GitHub Desktop.
.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/
@kharandziuk
Copy link
Author

export TOKEN=сюда пишешь токер без скобочек!!!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment