PHP Classes

File: examples/simple.php

Recommend this page to a friend!
  Classes of Mihajlo Siljanoski   PHP Device Info Details   examples/simple.php   Download  
File: examples/simple.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Device Info Details
Get the details of device using the php.mk API
Author: By
Last change:
Date: 3 years ago
Size: 309 bytes
 

Contents

Class file image Download
<?php

   
require_once '../config/config.php';
    require_once
'../src/DeviceDetails.php';
   
   
$device = new DeviceDetails($config['token']);

   
$deviceData = $device->getDevice();

    if (
$device->errors()) {
       
print_r($device->errors());
    } else {
       
print_r($deviceData);
    }

?>