PHP code example of cristof-g / terrawind-api-wrapper
1. Go to this page and download the library: Download cristof-g/terrawind-api-wrapper 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/ */
cristof-g / terrawind-api-wrapper example snippets
$country = new Country($credentials);
$country->get();
$country = new Country($credentials);
$country->getByRegionId($regionId);
$currency = new Currency($credentials);
$currency->get();
$documentType = new DocumentType($credentials);
$docuentType->get();
$product = new Product($credentials);
$product->get();
$product = new Product($credentials);
$product->getWithComissions();
$region = new Region($credentials);
$region->get();
$tariff = new Tariff($credentials);
$tariff->getByProductId($productId);
$upgrade = new Upgrade($credentials);
$upgrade->get($productId, $passengerAge, $tripDays);
$voucher = new Voucher($credentials);
$voucher->add($voucherData);
$voucher = new Voucher($credentials);
$voucher->edit($voucherData);
$voucher = new Voucher($credentials);
$voucher->get();
$voucher = new Voucher($credentials);
$voucher->link($voucherNumber, $voucherKey);
$voucher = new Voucher($credentials);
$voucher->price($voucherData);
$voucher = new Voucher($credentials);
$voucher->status($voucherNumber);
$voucher = new Voucher($credentials);
$voucher->
$voucher = new Voucher($credentials);
$voucher->check($voucherData);
$voucher = new Voucher($credentials);
$voucher->getByVoucherNumber($voucherNumber);
$voucher = new Voucher($credentials);
$voucher->countVouchers($filter);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.