PHP code example of christian71-stack / miraklseller

1. Go to this page and download the library: Download christian71-stack/miraklseller 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/ */

    

christian71-stack / miraklseller example snippets





apiInstance = new cbdesk\Mirakl\Api\IncidentsApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client()
);
$order_id = 'order_id_example'; // string | Order identifier
$line = 'line_example'; // string | Order line identifier
$shop_id = 56; // int | Use this parameter when your user has access to several shops. If not specified, the shop_id from your default shop will be used.
$or64_request = new \cbdesk\Mirakl\Model\OR64Request(); // \cbdesk\Mirakl\Model\OR64Request

try {
    $apiInstance->oR64($order_id, $line, $shop_id, $or64_request);
} catch (Exception $e) {
    echo 'Exception when calling IncidentsApi->oR64: ', $e->getMessage(), PHP_EOL;
}