2017 © Pedro Peláez
 

library ekomi-api

Client library for eKomi API

image

yproximite/ekomi-api

Client library for eKomi API

  • Friday, June 29, 2018
  • by sf_tristanb
  • Repository
  • 5 Watchers
  • 1 Stars
  • 5,711 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 11 Versions
  • 37 % Grown

The README.md

ekomi-api

CI (master) , (*1)

PHP Library to get v3 API, (*2)

Usage

use Yproximite\Ekomi\Api\Client\Client;
use Yproximite\Ekomi\Api\Service\ServiceAggregator;
use Yproximite\Ekomi\Api\Message\Order\OrderListMessage;

$client = new Client(
    HttpClient $httpClient,
    string $clientId = '999999',
    string $secretKey = 'xxxxxxxxxxxxxx',
    string $baseUrl = Client::BASE_URL,
    MessageFactory $messageFactory = null,
    CacheItemPoolInterface $cache = null
    string $cacheKey = null
);

$api = new ServiceAggregator($client);

$message = new OrderListMessage();
$message->setOffset(5);
$message->setLimit(10);
$message->setOrderBy(OrderListMessage::ORDER_BY_CREATED);
$message->setOrderDirection(OrderListMessage::ORDER_DIRECTION_DESC);
$message->setWithFeedbackOnly(true);
$message->setCreatedFrom(new \DateTime('2016-10-06 00:00:10'));
$message->setCreatedTill(new \DateTime('2016-11-06 00:14:29'));
$message->setShopId(11);
$message->setCustomDataFilter(['vendor_id' => 123]);

// Yproximite\Ekomi\Api\Model\Order\Order[]
$response = $api->order()->getOrders($message);

Test

./bin/phpspec run

The Versions

30/01 2017

v1.0.1

1.0.1.0

Client library for eKomi API

  Sources   Download

MIT

The Requires

 

26/12 2016

v1.0.0

1.0.0.0

Client library for eKomi API

  Sources   Download

MIT

The Requires

 

26/12 2016

v0.1.0

0.1.0.0

Client library for eKomi API

  Sources   Download

MIT

The Requires