Skip to content

wienkit/beslist-order-api-php-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Beslist.nl Order API PHP Client

This is an open source PHP client for the Beslist.nl Order API.

Installation

Get it with composer

Run the command:

composer require wienkit/beslist-order-api-php-client

Example: get orders

<?php

require __DIR__ . '/vendor/autoload.php';

$personalKey = '-- ENTER YOUR PUBLIC KEY --';
$shopId = '-- ENTER YOUR SHOP ID --';
$clientId = '-- ENTER YOUR CLIENT ID --';

$this->client = new Wienkit\BeslistOrdersClient\BeslistOrdersClient($personalKey, $shopId, $clientId);
$this->client->setTestMode(true);

// Retrieve all data
$cart = $this->client->getShoppingCartData('2016-01-01', '2016-01-02');
var_dump($cart);

// Get the orders
$orders = $cart->shopOrders;
var_dump($orders);

See the tests folder for more information

About

PHP Library to connect with the Beslist.nl Order API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages