2017 © Pedro Peláez
 

library bol-plaza-sdk

A PHP client SDK for the Bol.com Plaza API

image

vleks/bol-plaza-sdk

A PHP client SDK for the Bol.com Plaza API

  • Friday, March 2, 2018
  • by Vleks
  • Repository
  • 4 Watchers
  • 3 Stars
  • 90 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 14 % Grown

The README.md

Bol.com Plaza SDK for PHP

Latest Stable Version Total Downloads Latest Unstable Version License composer.lock, (*1)

Installation

It's recommended that you use Composer to install the SDK., (*2)

composer require vleks/bol-plaza-sdk

This will install the Bol.com Plaza SDK.
PHP 5.6 or newer is required., (*3)

Usage

Create an index.php file with the following contents:, (*4)

<?php
use Vleks\BolPlazaSDK\Client;
use Vleks\BolPlazaSDK\ClientException;

require 'vendor/autoload.php';

$publicKey  = '-- YOUR PUBLIC KEY --';
$privateKey = '-- YOUR PRIVATE KEY --';

$bolPlazaClient = new Client($publicKey, $privateKey);
$bolPlazaClient->setTestMode(true);

try {
    $orders = $bolPlazaClient->getOrders();

    var_dump($orders);
} catch (ClientException $clientException) {
    echo 'An error occurred: ' . $clientException->getMessage();
}

See the contents of the examples directory for more information., (*5)

Coverage

Not every Bol.com Plaza API endpoint is covered, check out the table for more details, (*6)

API Endpoint Covered Client method
PUT /offers/v2/
GET /offers/v2/_parameters_
GET /offers/v2/export/
GET /offers/v2/export/_generated-file.csv_
DELETE /offers/v2/
GET /commission/v2/_parameters_
GET /reductions Yes getReductions
GET /reductions/latest Yes getLatestReductionsFilename
GET /services/rest/orders/v2 Yes getOrders
GET /services/rest/orders/v2/_order-id_
GET /services/rest/shipments/v2
GET /services/rest/shipments/v2/_shipment-id_
PUT /services/rest/transports/v2/_:id_
GET /services/rest/process-status/v2/_:id_
GET /services/rest/purchasable-shipping-labels/v2?orderItemId=_:id_
GET /services/rest/transports/v2/_:transportId_/shipping-label/_:shippingLabelId_
GET /services/rest/return-items/v2/unhandled
PUT /services/rest/return-items/v2/_:id_/handle
GET /services/rest/invoices Yes getInvoices
GET /services/rest/invoices/:invoice-id Yes getInvoice
GET /services/rest/invoices/_invoice-id_/specification Yes getInvoiceSpecification
GET /services/rest/inbounds Yes getInbounds
POST /services/rest/inbounds Yes createInbound
GET /services/rest/inbounds/fbb-transporters Yes getFbbTransporters
GET /services/rest/inbounds/delivery-windows Yes getDeliveryWindow
GET /services/rest/inbounds/_inbounds-id_ Yes getInbound
POST /services/rest/inbounds/productlabels Yes getProductlabels
GET /services/rest/inbounds/_inbound-id_/shippinglabel Yes getShippingLabel
GET /services/rest/inbounds/inbound-id/packinglistdetails Yes getPackingListDetails
GET /services/rest/inventory/parameters Yes getInventory

Tests

To execute the test suite, you'll need PHPUnit., (*7)

$ phpunit

License

The Bol.com Plaza SDK for PHP is licensed under the MIT licence.
See the license file for more information., (*8)

The Versions

02/03 2018

dev-master

9999999-dev https://www.vleks.com

A PHP client SDK for the Bol.com Plaza API

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

api sdk client bol plaza bol.com vleks

02/03 2018

dev-develop

dev-develop https://www.vleks.com

A PHP client SDK for the Bol.com Plaza API

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

api sdk client bol plaza bol.com vleks

02/03 2018

1.1.1

1.1.1.0 https://www.vleks.com

A PHP client SDK for the Bol.com Plaza API

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

api sdk client bol plaza bol.com vleks

03/10 2017

1.1.0

1.1.0.0 https://www.vleks.com

A PHP client SDK for the Bol.com Plaza API

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

api sdk client bol plaza bol.com vleks

02/10 2017

1.0.0

1.0.0.0 https://www.vleks.com

A PHP client SDK for the Bol.com Plaza API

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

api sdk client bol plaza bol.com vleks

02/10 2017

1.0.1

1.0.1.0 https://www.vleks.com

A PHP client SDK for the Bol.com Plaza API

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

api sdk client bol plaza bol.com vleks

29/09 2017

1.0.0-beta

1.0.0.0-beta

A PHP client SDK for the Bol.com Plaza API

  Sources   Download

The Requires

  • php >=5.6

 

The Development Requires

api sdk client bol plaza bol.com vleks