<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://hiddenapi.in/serviceapi/aadhar/ekyc_otp?apikey=value&aadhar=value&hit=value',
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',
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
?>
API Hit Success Example Response
{
"status": "success",
"message": "OTP sent to your aadhar link mobile.",
"txn": "1744506537665:901629"
}
API Hit Failure Example Response
{
"status": false,
"message": "Please enter valid Aadhaar Number"
}