PHP code example of jupitern / ctt
1. Go to this page and download the library: Download jupitern/ctt 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/ */
jupitern / ctt example snippets
{
" "jupitern/ctt": "1.*"
}
}
$ctt = new \Jupitern\Ctt\CttTracking();
$res = $ctt->trackObjects(['ED123456789PT', 'LX123456789PT']);
var_dump($res);
/*
output:
Array
(
[ED123456789PT] => Array
(
[status] => 6
[statusText] => Objeto não encontrado
)
[LX123456789PT] => Array
(
[status] => 4
[statusText] => Objeto entregue
)
)
*/