Skip to content

Peac36/WHCC-PHP-API-Integration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WHCC PHP API Integration

Implementation of WHCC API.

The package also provides two Request classes for more complex requests - CreateEditorRequest and CreateOrderRequest.

Basic Examples:

<?php

use GuzzleHttp\Client;
use Peac36\Whcc\Decorators\AuthHttpClientDecorator;
use Peac36\Whcc\Service\EditorService;

$client = new Client([
    'base_uri' => <%whcc_base_url%>,
]);

$authClient = new AuthHttpClientDecorator($client, <%whcc_access_key%>, <%whcc_access_secret%>);
$service = new EditorService($authClient);
$service->getProducts();
<?php

use GuzzleHttp\Client;
use Peac36\Whcc\Decorators\OrderAuthHttpClientDecorator;
use Peac36\Whcc\Service\OrderService;

$client = new Client([
    'base_uri' => "<%whcc_api_url%>/api",
]);

$authClient = new  OrderAuthHttpClientDecorator($client, <%whcc_access_key%>, <%whcc_access_secret%>);
$service = new OrderService($authClient);
$service->getCatalog();

UML Diagrams

Editor Service

editor

Order Service

order

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages