nokaut / restclient-shop-bundle
Rest client for shops - symfony2 bundle
This package's canonical repository appears to be gone and the package has been frozen as a result.
dev-master
2013-07-12 05:50 UTC
Requires
- php: >=5.3.0
- nokaut/restclient-shop: dev-master
- symfony/symfony: >=2.3
This package is not auto-updated.
Last update: 2022-03-27 23:39:50 UTC
README
Instalation
- Add line to require section in composer.json
"nokaut/restclient-shop-bundle": "dev-master"
- Update deps
composer update
- 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