Create an access token
You need to create a Basic credential, by concatenating the Client Key and Client Secret into a string (separated with an “:”) and then convert the result into Base64, as per RFC7617.
The token request is:
curl -X POST https://api.iris.co.uk/oauth2/v1/token \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "authorization: Basic <access_key>" \
-d "grant_type=client_credentials"
The response from IRIS will be a JSON message containing the following:
{
"access_token": "4gYpTokCeSHyIdMJFv84jY5yrzKO",
"expires_in": "3599",
"scope": "",
"token_type": "Bearer"
}