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/oauth/oauth-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": "Facebook",
"IDPclientId": "299762900097-st5kg9v0n9tf9dk9q5hgajipv0v8l22r.apps.googleusercontent.com",
"IDPclientSecret": "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"
}',
CURLOPT_HTTPHEADER => array(
'x-api-key: koO0Gm8xJrjXlBfdtpF7VgnIz',
'Content-Type: application/json'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;