CODE EXAMPLES
curl -X POST \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
--data '{"imei":"352099001761481"}' \
https://cekbeacukai.my.id/api/imei.php
$ch = curl_init("https://cekbeacukai.my.id/api/imei.php");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true,
CURLOPT_HTTPHEADER => [
"Authorization: Bearer YOUR_API_TOKEN",
"Content-Type: application/json"
],
CURLOPT_POSTFIELDS => json_encode([
"imei" => "352099001761481"
])
]);
$response = curl_exec($ch);
echo $response;
fetch("https://cekbeacukai.my.id/api/imei.php",{
method:"POST",
headers:{
"Authorization":"Bearer YOUR_API_TOKEN",
"Content-Type":"application/json"
},
body:JSON.stringify({imei:"352099001761481"})
})
.then(res=>res.json())
.then(console.log);