Skip to content

Instantly share code, notes, and snippets.

@BFTrick
Created October 15, 2024 18:12
Show Gist options
  • Save BFTrick/eaceb8a6bfbdb79d911b81486626dfa9 to your computer and use it in GitHub Desktop.
Save BFTrick/eaceb8a6bfbdb79d911b81486626dfa9 to your computer and use it in GitHub Desktop.
Get an access token for Ship Hero's API
#!/usr/bin/env bash
curl -X POST -H "Content-Type: application/json" -d \
'{ "username": "EMAILHERE",
"password": "PWHERE"
}' \
"https://public-api.shiphero.com/auth/token"
@BFTrick
Copy link
Author

BFTrick commented Oct 18, 2024

How to use this script:

cd /path/to/your/script
chmod +x ship-hero-access-token.bash
./ship-hero-access-token.bash

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