nokaut/restclient-shop-bundle

Rest client for shops - symfony2 bundle

dev-master 2013-07-12 05:50 UTC

This package is not auto-updated.

Last update: 2022-03-27 23:39:50 UTC


README

Instalation

  1. Add line to require section in composer.json
"nokaut/restclient-shop-bundle": "dev-master"
  1. Update deps composer update
  2. Add ApiClientBundle to AppKernel
    $bundles = array(
        ...
        new Nokaut\Bundle\ApiClientBundle\ApiClientBundle()
    );

Configuration

#app/config/config.yml:

api_client:
    key_public: "yourPublicKey"
    key_private: "yourPrivateKey"

Usage

All what do you have to do, is get service from container:

$nokautClient = $this->get('nokaut.client');

Some example of usage client, you can get from here: https://github.com/GrupaNokaut/orderAPI/blob/master/example/simple.php