Header

Body Params

LANGUAGE


<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.cripsa.com/v2/sessionmgt/refreshaccesstoken',
  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 =>'{
  "access_token": "eyJraWQiOiJlOVwvbHZcL1RGRkx1bElhdFErTVRSbmFjZ3NCTVF4cldlT29OZjRIZTVISHM9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiIyOTRiNGUyOS0yNmQyLTRmNGUtOWYwMC02YWFjMDAyNDdiMmIiLCJjb2duaXRvOmdyb3VwcyI6WyJ1c2VyIl0sImlzcyI6Imh0dHBzOlwvXC9jb2duaXRvLWlkcC51cy1lYXN0LTEuYW1hem9uYXdzLmNvbVwvdXMtZWFzdC0xX1l4aWJkY1U4TyIsInZlcnNpb24iOjIsImNsaWVudF9pZCI6IjZlNTByNGFtbmxxNHBhMnQ0bTE2bXIwajdvIiwib3JpZ2luX2p0aSI6ImZkYzg1YWYzLTliNmEtNGZiOS05MjUxLWRkYzc0Mjg3NGFhOCIsImV2ZW50X2lkIjoiM2NlZjIwMTktYjhjNC00M2E3LTg3MDgtOThjOTI4ZmNmOGM0IiwidG9rZW5fdXNlIjoiYWNjZXNzIiwic2NvcGUiOiJhd3MuY29nbml0by5zaWduaW4udXNlci5hZG1pbiBwaG9uZSBvcGVuaWQgcHJvZmlsZSBlbWFpbCIsImF1dGhfdGltZSI6MTY5MTgzNjA2NSwiZXhwIjoxNjkxOTIyNDY1LCJpYXQiOjE2OTE4MzYwNjUsImp0aSI6ImM2OTZiZjNlLThjNWUtNDJjNC1iM2I5LTQxMmUxZWZjNTZhMyIsInVzZXJuYW1lIjoiMjk0Yj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N-hlDQYLcwpLTnhAysiGuXMLjj-F-tYXs6SMUBeWhansBosbFdDUol0P6meVA2MJBwShlOZVJyMqU77qx5-0bBcCLCmVExVCRTZ9.g-Hpm46eDCNOEOfHVQZs7w",
  "clientId": "6e50r4amnlq4pa2t4m16mr0j7o",
  "clientSecret": "18hm3bjs8pnhf7uv15svnd7glmf18vqch201phmgis2d9efe16lf",
  "email": "example@cripsa.com",
  "userPoolId": "us-east-1_YxibdcU8O",
  "region": "us-east-1"
}',
  CURLOPT_HTTPHEADER => array(
    'x-api-key: BGRaldKNhtqqzRWB76imaVZFTEVsfPKF1OF4pSa0',
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;