PHP code example of jeffrey-kroonen / bol-retailer-api-php
1. Go to this page and download the library: Download jeffrey-kroonen/bol-retailer-api-php 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/ */
jeffrey-kroonen / bol-retailer-api-php example snippets
$client = new Client(
bolClientId: '<client-id>',
bolClientSecret: '<client-secret>'
);
$ordersEndpoint->orders(); // Retrieve a Paginate class instance containing orders
$ordersEndpoint->orderById(id: '<order-id>'); // Retrieve an order by id
$client->getAuth(); // Returns an instance of Auth
$client->getAuth()->getExpiresIn(); // 1661613446
$client->isAuthenticated();
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.