# Fill in your credentials below
CLIENT_ID="REPLACE-ME"
CLIENT_SECRET="REPLACE-ME"
SCOPE="REPLACE-ME"
# Get access token and copy to clipboard (Mac)
ACCESS_TOKEN=$(curl -s -X POST https://id.talenom.com/api/b2b/oauth2/v1.0/token \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "grant_type=client_credentials&client_id=$CLIENT_ID&client_secret=$CLIENT_SECRET&scope=$SCOPE" \
| jq -r .access_token)
echo "$ACCESS_TOKEN" | pbcopy
echo "Access token copied to clipboard!"