PHP code example of sengentobv / chronopost-sdk

1. Go to this page and download the library: Download sengentobv/chronopost-sdk 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/ */

    

sengentobv / chronopost-sdk example snippets





onfigure the authentication
$authentication = new \SengentoBV\ChronopostSdk\ChronoAuthentication($ACCOUNT_NUMBER, $PASSWORD, $OPTIONAL_SUBACCOUNT);

// Create an instance of the client
$apiClient = new \SengentoBV\ChronopostSdk\ChronoApiClient($authentication);

try {
    // Get an instance of the QuickSlot service
    $quickCostService = $apiClient->getQuickCostService();
    
    // Perform a call that does not ngentoBV\ChronopostSdk\Soap\QuickCostService\Structs\ChronoApiCalculateProducts(...))
    print_r($result);
    
} catch (\Exception $e) {
    echo $e->getMessage();
}