Header
Body Params
LANGUAGE
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.cripsa.com/v2/apisecurity/get-access-token",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST"',
CURLOPT_POSTFIELDS =>"{
"clientId": "16v35qoo1e6inm5fcvb5p9mreu",
"clientSecret": "19tafmevtqp4ai7v7bje2pfkga9fjadqkk2ugrq05577dgmd83i",
"userPoolDomain": "m2msecurity-example.auth.us-east-1.amazoncognito.com",
"scope": "https://example.com/api.update"
}",
CURLOPT_HTTPHEADER => array(
"x-api-key: RpQZYeKRds89pzqAFP4dz13CbR4JqJUV9ie6WxQJ",
"Content-Type: application/json"
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;