Depcreation warning
There is now an official php package to access the API:, (*1)
https://bitbucket.org/shopwedo/shopwedo-api-php/src/master/, (*2)
ShopWeDo PHP Api
ShopWeDo PHP Api wrapper for use with the ShopWeDo REST api., (*3)
Installation
The library can be installed with Composer. Run this command:, (*4)
composer require josbeir/shopwedo-php-api
Usage example
```php
require_once DIR . '/vendor/autoload.php'; // change path as needed, (*5)
$client = new \Shopwedo\Shopwedo([ 'shop_id' => 'myid', 'api_key' => 'mykey' ]);, (*6)
try {
$stock = $client->getStock();
// ....
}
catch (\Shopwedo\Exceptions\ShopwedoResponseException $e) {
echo 'Error while making request '. $e->getMessage();
}, (*7)