Last active
September 2, 2018 20:14
-
-
Save DominikBucher12/825f2af94fced3b0126d9dc56ff37233 to your computer and use it in GitHub Desktop.
Simple script for getting Json Web Token (JWT) for Sloneek API Auth.
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
#!/bin/bash | |
JSON_HEADER="Content-Type:application/json" | |
echo -n "Please enter your Working email:" | |
echo | |
read email | |
echo -n "Please enter your password:" | |
read -s password | |
curl \ | |
-d '{"email":"'$email'", "password":"'$password'"}' \ | |
-H $JSON_HEADER\ | |
-X POST https://api.sloneek.com/api/v1/login |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment