Skip to content

Instantly share code, notes, and snippets.

@DominikBucher12
Last active September 2, 2018 20:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DominikBucher12/825f2af94fced3b0126d9dc56ff37233 to your computer and use it in GitHub Desktop.
Save DominikBucher12/825f2af94fced3b0126d9dc56ff37233 to your computer and use it in GitHub Desktop.
Simple script for getting Json Web Token (JWT) for Sloneek API Auth.
#!/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