Skip to content
This repository was archived by the owner on Mar 7, 2024. It is now read-only.

Storewire/bolcom-openapi-php-client

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bol.com Open API PHP client

API client for the bol.com Open API

The library contains the following requests:

  • Ping request
  • Product request
  • Recommendation request
  • RelatedProducts request
  • Offer request
  • Lists request
  • Search request
  • Sessions request
  • Basket requests
  • Wishlist requests
  • setReferrer request (You need to ask extended permission from Developer Center team for this request)
  • Auth requests through bol.com Bearer token (You need to ask extended permission from Developer Center team for this request)
  • Legacy Auth requests (You need to ask extended permission from Developer Center team for this request)

Install using Composer

Please include the following vcs config to your composer.json

"repositories": [
    {
        "type": "vcs",
        "url":  "https://github.com/Storewire/bolcom-openapi-php-client.git"
    }
]

After that, run the following command

composer require "storewire/bol-openapi-php-client" "dev-main"

Minimum requirements:

  • PHP 8.0 (or higher)
  • JSON PHP extension

Developer Documentation

https://affiliate.bol.com/nl/api-documentatie

Basic example

require 'vendor/autoload.php'

$apiClient = new BolCom\Client('YOUR_BEARER_TOKEN');
$response = $apiClient->getProduct('1002004010708531');
var_dump($response);

Running tests

BOLCOM_OPEN_API_KEY=YOUR_LEGACY_OPEN_API_KEY composer test

About

PHP library for bol.com Open API

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%