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