Skip to content

Latest commit

 

History

31 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages