Header

Body Params

LANGUAGE


<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.cripsa.com/v2/rbac/userinfo',
  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": "eyJraWQiOiI5MUFwbzFiSGZmN3A1MFN0OForbGI3VU5wczd6T09wSkQyXC9SQk8zK3U5ND0iLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOiI2NGI4MzQ0OC0xMGQxLTcwMjQtOGQ0Yi0zOWU4NGI2ZWI0OGIiLCJjb2duaXRvOmdyb3VwcyI6WyJ1c2VyIl0sImlzcyI6Imh0dHBzOlwvXC9jb2duaXRvLWlkcC51cy1lYXN0LTEuYW1hem9uYXdzLmNvbVwvdXMtZWFzdC0xX1RocUlLS2ZuViIsInZlcnNpb24iOjIsImNsaWVudF9pZCI6IjdkN3M2YmNza2xnMWcxMnVuZGJjZzNuNnZuIiwiZXZlbnRfaWQiOiIzZjZiODA1Zi02YTg2LTRjN2UtOWQ3ZS04ZjhlYWEzNjdiNmIiLCJ0b2tlbl91c2UiOiJhY2Nlc3MiLCJzY29wZSI6ImF3cy5jb2duaXRvLnNpZ25pbi51c2VyLmFkbWluIHBob25lIG9wZW5pZCBwcm9maWxlIGVtYWlsIiwiYXV0aF90aW1lIjoxNjg4NzE3MTE3LCJleHAiOjE2ODg4MDM1MTcsImlhdCI6MTY4ODcxNzExNywianRpIjoiODNkODAzZjYtYTdmZS00ODg5LThiNWMtY2E5MWNkMGNhM2NmIiwidXNlcm5hbWUiOiI2NGI4MzQ0OC0xMGQxLTcwMjQtOGQ0Yi0zOWU4NGI2ZWI0OGIifQ.hcbPnm6x_HkI_EoYigfavZWqZPirKBGjqHqE8rPme_4wuVN9pC6jh8l1VmaD3E9bbviQBdBeYA8XsPsfX0PmTUvGpzaRClJPzpSi7DoowpY1xek-CLBJty9NsuUpGsLcKBB5OrvuGcLBFqvmV3WY0n4lr6Jk4UQ6vW6OIndA8cpKKbAWINWFTQli_i8sc0BficoyXCm_3Tdfm27gmQ3MRqCgs3HHDIBIbs99LxdcScK5MwlnspBf_0EvhzylTrJ00iq7PWXlm89mB5SoCd3rmzGjwBPoJzqFHJ46ghOynG11T_J3mrsF6QLN2Ra25zUhq4u96U8CFdrrFpjy2Rp9ZA",
  "userPoolId": "us-east-1_iKUDKTB7l",
  "region": "us-east-1"
}',
  CURLOPT_HTTPHEADER => array(
    'x-api-key: BGRaldKNhtqqzRWB76imaVZFTEVsfPKF1OF4pSa0',
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;