Header
Body Params
LANGUAGAE
<?php
/* type1 type2 type3 and type4 are register type */
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://api.cripsa.com/v2/chatgpt/chatgpt-register-app',
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 =>'{
"domain": "example.com",
"RegisterType": "type1",
"ProviderName": "example-test-octa",
"MetadataURL": "https://dev-5exz9y0j.us.auth0.com/oauthp/metadata/EBGPQZr4LSBWHve8C1drHcCtfdacTl1X"
}',
CURLOPT_HTTPHEADER => array(
'x-api-key: WRWoPfuA1235uDBfjZdnVEpmgR5XbeM1sPlKkhn8',
'Content-Type: application/json'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;