giftuals / bol-com-marketing-catalogue-api
PHP library that allows you to communicate with the bol.com marketing catalogue API.
v1.1.0
2025-07-28 19:49 UTC
Requires
- php: ^8.3.7
Requires (Dev)
- kint-php/kint: ^5.1
- phpunit/phpunit: ^11.3
README
PHP library that allows you to communicate with the bol.com marketing catalogue API.
Usage
<?php
use Giftuals\BolComMarketingCatalogue\Client\Client;
use Giftuals\BolComMarketingCatalogue\Token\AccessTokenFactory;
include 'vendor/autoload.php';
$factory = new AccessTokenFactory();
$token = $factory->getAccessToken('<your-client-id>', '<your-secret>');
$client = new Client($token);
$ean = $client->getEanFromBolProductId('9300000134654318');
$product = $client->getProductByEan($ean);
$search_term = 'dixit expansion';
$results = $client->searchProductsBySearchTerm($search_term);