PHP code example of lamoda / crpt-oms-api-client
1. Go to this page and download the library: Download lamoda/crpt-oms-api-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/ */
lamoda / crpt-oms-api-client example snippets
use GuzzleHttp\Client;
use Lamoda\OmsClient\Impl\Serializer\SymfonySerializerAdapterFactory;
use Lamoda\OmsClient\V2\OmsApi;
$client = new Client([
// Uri to your OMS
'base_uri' => 'http://oms_uri',
'timeout' => 2.0,
]);
$serializer = SymfonySerializerAdapterFactory::create();
$omsApi = new OmsApi($client, $serializer);
/*
* Call all