Forum Discussion
API_User
2 years agoEquinix Employee
Fabric API generate token using client_credentials
I am trying to generate token using this method but in Postman:
Access Token using grant_type = client_credentials (Recommended).
POST 'https://api.equinix.com/oauth2/v1/token' -H "content-type:...
- 2 years ago
Got it, used wrong credentials
access_token=`curl -s --request POST \
--url https://${endpoint_url}/oauth2/v1/token \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{"client_id":"'${client_id}'","client_secret":"'${client_secret}'","grant_type":"client_credentials"}' \
| jq -r '.access_token'`
API_User
2 years agoEquinix Employee
Nice, glad you got this one. Should have replied when I was able to get it working in Postman, few hours later posting this message 🙂 .
Used raw rather than json as it is normally in a cli.
Used raw rather than json as it is normally in a cli.
Related Content
- 6 years ago
- 2 years ago