Last active
December 15, 2015 02:59
-
-
Save beaugunderson/5191261 to your computer and use it in GitHub Desktop.
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/sh | |
| # Uses httpie: https://github.com/jkbr/httpie | |
| BASE_URL="https://api.singly.com/" | |
| CLIENT_ID="" | |
| CLIENT_SECRET="" | |
| USERNAME="" | |
| PASSWORD="" | |
| http POST "$BASE_URL/auth/password/register/$CLIENT_ID" user="$USERNAME" \ | |
| password="$PASSWORD" | |
| http POST "$BASE_URL/auth/password/login/$CLIENT_ID" user="$USERNAME" \ | |
| password="$PASSWORD" | |
| http POST "$BASE_URL/auth/password/set/$CLIENT_ID" user="$USERNAME" \ | |
| password="$PASSWORD" client_secret="$CLIENT_SECRET" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment