2017 © Pedro Peláez
 

symfony-bundle ekomi-api-bundle

Integration of eKomi API into Symfony

image

yproximite/ekomi-api-bundle

Integration of eKomi API into Symfony

  • Wednesday, May 16, 2018
  • by sf_tristanb
  • Repository
  • 5 Watchers
  • 0 Stars
  • 5,537 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 9 Versions
  • 35 % Grown

The README.md

YproximiteEkomiApiBundle

Integration of the eKomi API client library into Symfony3., (*1)

Installation

Require yproximite/ekomi-api-bundle to your composer.json file:, (*2)

$ composer require yproximite/ekomi-api-bundle

Register the bundle in app/AppKernel.php:, (*3)

// app/AppKernel.php
public function registerBundles()
{
    return array(
        // ...
        new Yproximite\Bundle\EkomiApiBundle\YproximiteEkomiApiBundle(),
    );
}

Enable the bundle's configuration in app/config/config.yml:, (*4)

# app/config/config.yml
yproximite_ekomi_api:

    # Identifier of the service that represents "Http\Client\HttpClient"
    http_client: httplug.client.guzzle6

    # Credentials
    client_id: 999999
    secret_key: xxxxxxxxxxxxxx

    # Base url for the API, optional, by default is "https://csv.ekomi.com/api/3.0"
    base_url: https://csv.ekomi.com/api/3.0

    # cache
    cache: cache.app
    cache_key: xxxxx

Usage

use Yproximite\Ekomi\Api\Message\Order\OrderListMessage;

$api = $this->get('yproximite.ekomi_api.service_aggregator');

$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[]
$orders = $api->order()->getOrders($message);

The Versions

16/05 2018

dev-master

9999999-dev

Integration of eKomi API into Symfony

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nikita Sviridenko

21/11 2017

v3.0.0

3.0.0.0

Integration of eKomi API into Symfony

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nikita Sviridenko

13/09 2017

v2.1.0

2.1.0.0

Integration of eKomi API into Symfony

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nikita Sviridenko

13/09 2017

dev-feature/cache

dev-feature/cache

Integration of eKomi API into Symfony

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nikita Sviridenko

02/03 2017

v2.0.2

2.0.2.0

Integration of eKomi API into Symfony

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nikita Sviridenko

01/03 2017

v2.0.1

2.0.1.0

Integration of eKomi API into Symfony

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nikita Sviridenko

01/03 2017

v2.0.0

2.0.0.0

Integration of eKomi API into Symfony

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nikita Sviridenko

26/12 2016

v1.0.0

1.0.0.0

Integration of eKomi API into Symfony

  Sources   Download

MIT

The Requires

 

The Development Requires

  • php >=5.4

26/12 2016

v0.1.0

0.1.0.0

Integration of eKomi API into Symfony

  Sources   Download

MIT

The Requires

 

The Development Requires

  • php >=5.4