giftuals / bol-com-marketing-catalogue-api
PHP library that allows you to communicate with the bol.com marketing catalogue API.
Installs: 5
Dependents: 0
Suggesters: 0
Security: 0
pkg:composer/giftuals/bol-com-marketing-catalogue-api
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);