1. Home
  2. Docs
  3. Dokumentasi API
  4. Create New Device

Create New Device

You can create new device


$curl = curl_init();
$token = "";
$data = [
    'package' => 'dsadads'
    'sender' => '081XXXXXXX',
    'periode' => 'monthly',
    'payment' => 'PAYPAL'

curl_setopt($curl, CURLOPT_HTTPHEADER,
        "Authorization: $token",
curl_setopt($curl, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_POSTFIELDS, http_build_query($data));
curl_setopt($curl, CURLOPT_URL, "http://app.absen.co.id/api/device");
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0);
$result = curl_exec($curl);

echo "<pre>";

Request parameters:
AuthorizationRequiredYour Token from http://app.absen.co.id, can be seen in the menu: Device – Setting
packageRequiredID serial of every packages. you can see on the http://app.absen.co.id/pricing
senderRequiredPhone number for sender. You can use the country code prefix or not. Example: 081223xxxx
periodeRequiredOnly monthly or quarterly peroid
paymentRequiredYour can using PAYPAL, BCA, MANDIRI, BNI and BRI
callbackOptionalURL will received incoming message
trackingOptionalURL will received incoming status of message