PHP code example of wienkit / beslist-order-api-php-client

1. Go to this page and download the library: Download wienkit/beslist-order-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/ */

    

wienkit / beslist-order-api-php-client example snippets




onalKey = '-- ENTER YOUR PUBLIC KEY --';
$shopId = '-- ENTER YOUR SHOP ID --';
$clientId = '-- ENTER YOUR CLIENT ID --';

$this->client = new Wienkit\BeslistOrdersClient\BeslistOrdersClient($personalKey, $shopId, $clientId);
$this->client->setTestMode(true);

// Retrieve all data
$cart = $this->client->getShoppingCartData('2016-01-01', '2016-01-02');
var_dump($cart);

// Get the orders
$orders = $cart->shopOrders;
var_dump($orders);