File "awb_errors.php"
Full path: /home/kosmetik/public_html/api/fan_courier/src/Examples/awb_errors.php
File
size: 501 B
MIME-type: text/x-php
Charset: utf-8
Download Open Edit Advanced Editor Back
<?php
include_once __DIR__ . '/example_autoload.php';
use FanCourier\fanCourier;
try {
$params = ['username' => 'clienttest', 'user_pass' => 'testare', 'client_id' => '7032158'];
$fc = new fanCourier();
$endpoint = $fc->getEndpoint('awbErrors');
$endpoint->setParams($params);
$endpoint->noHeader();
$result = $endpoint->getResult();
foreach ($result as $key => $value) {
print_r(str_getcsv($value));
}
} catch (Exception $exc) {
echo $exc->getMessage();
}