1. Go to this page and download the library: Download listonoska/api 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/ */
listonoska / api example snippets
$token = new \Listonoska\API\Token('client_id', 'secret');
$token->getToken(); // vrátí token
$listOfValues = new Listonoska\API\ListsOfValues($token);
$listOfValues->getDeliveryTypes(); // číselník typů dodání
$listOfValues->getPrintTypes(); // číselník typů tisku
$listOfValues->getIsoCodes(); // číselník iso kódů
$letter = new Listonoska\API\Letter($token);
$response = $letter->getPostalReceipt($letterId); // id dopisu získáme z odpovědi po odeslání dopisu
$letter = new Listonoska\API\ListsOfValues($token);
$response = $letter->cancelLetter($letterId);
$response->status; // error
$response->errors[0]->code; // 1, 2 , 3
// 1 = Letter is already canceled
// 2 = Letter cannot be canceled because is already sent
// 3 = Letter has multiple addresses therefore, can not be canceled
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.