<?php
$apiurl = "https://devicecheck.us/api/v2/checkimei";
$postdata = json_encode(array("token" => YOUR_API_KEY,"service" => SERVICE_NAME,"imei" => YOUR_IMEI));
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $apiurl);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $postdata);
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type:application/json'));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$result = curl_exec($ch);
curl_close($ch);
?>
Using the example code, you will be able to make a simple API call to our deviceCheck API with the help of CURL and PHP.
While this example shows you one method, your options are not strictly limited to using PHP. We have clients who use perl, python, and .NET just to name a few.
The only thing you need to send in your JSON encoded POST string is your API Token, the IMEI of a wireless device, as well as the service you want to check your IMEI against.
For example, if you wanted to check a device against the IMEI Blacklist, your POST data would look like such:
{"token":"[email protected]","service":"blacklist","imei":"352978091717190"}
Our API Service utilizes a tier based billing system. With that said, those who use our API have a monthly service fee of $500.00 USD, which covers the first 3,500 IMEIs processed each month for that account.
At the start of each new month we will issue an invoice for the prior month's usage, which is then due within 15 days. The invoice amount will include the $500.00 service fee, and then the tiered rate for the number of IMEIs checked beyond level Tier 1.
As an example, if your business processed 31,481 IMEI checks during the invoice period, the amount due would be calculated like so;
$500 + $2580 (21,500 @ 0.12/ea) + $648.10 (6,481 @ 0.10/ea) = $3,728.10 USD.