ShopWeDo API wrapper for PHP
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src/Shopwedo
tests
.editorconfig
.gitignore
LICENSE.txt
README.md
composer.json
phpunit.xml.dist

README.md

ShopWeDo PHP Api

ShopWeDo PHP Api wrapper for use with the ShopWeDo REST api.

Installation

The library can be installed with Composer. Run this command:

composer require josbeir/shopwedo-php-api

Usage example

require_once __DIR__ . '/vendor/autoload.php'; // change path as needed

$client = new \Shopwedo\Shopwedo([ 'shop_id' => '_myid_', 'api_key' => '_mykey_' ]);

try {
    $stock = $client->getStock();
    // ....
}
catch (\Shopwedo\Exceptions\ShopwedoResponseException $e) {
    echo 'Error while making request '. $e->getMessage();
}