giftuals / bol-com-marketing-catalogue-api
PHP library that allows you to communicate with the bol.com marketing catalogue API.
v1.0.0
2024-11-07 12:41 UTC
Requires
- php: ^8.3.7
Requires (Dev)
- kint-php/kint: ^5.1
- phpunit/phpunit: ^11.3
This package is not auto-updated.
Last update: 2025-07-04 15:02:36 UTC
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);