PHP code example of zembrowski / itraq-php
1. Go to this page and download the library: Download zembrowski/itraq-php library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
zembrowski / itraq-php example snippets
bash
$ composer
php
mail = '[email protected]';
$password = 'pa$$word';
$apiKey = '{apiKey given by iTraq}';
try {
$itraq = new iTraq\User($apiKey);
$token = $itraq->login($email, $password);
$itraq = new iTraq\Devices($token);
$devices = $itraq->devices();
echo $devices;
} catch (Exception $e) {
echo '[ERROR] ' . $e->getMessage();
}