1. Go to this page and download the library: Download grena/oxatis-api-php-client 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/ */
grena / oxatis-api-php-client example snippets
use Heavymind\Oxatis\ApiClient\OxatisClientBuilder;
// Build the Oxatis client with your AppID and Token
$clientBuilder = new OxatisClientBuilder();
$oxatisClient = $clientBuilder->buildAuthenticatedByToken(
"OXATIS_APP_ID",
"OXATIS_TOKEN"
);
use Heavymind\Oxatis\ApiClient\Type\TaxRateGetList;
use Heavymind\Oxatis\ApiClient\Type\TaxRateEntity;
$response = $oxatisClient->getTaxRateServices()->taxRateGetList(
new TaxRateGetList($oxatisClient->getWSIdentitySoap())
);
foreach ($response->getDataResultService()->getData()->getTaxRateList()->getTaxRateIDs() as $taxRateID)
{
/** @var TaxRateEntity $taxRateID */
var_dump($taxRateID->getCountryName());
}
bash
docker-compose run php_74 php generate-soap-api.php
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.