// Obtain these keys from the Telstra Developer Portal
CONSUMER_KEY="your consumer key"
CONSUMER_SECRET="your consumer secret"
AUTH=`echo "$CONSUMER_KEY:$CONSUMER_SECRET" | base64`
END_USER="the TDI GUID used to identify which tokens to flush"
curl -X POST \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Authorization: Basic $AUTH" \
-d "end_user=$END_USER" \
"https://api.telstra.com/v1/sso/globalflush"