shopwedo/shopwedoapi

Shop-we-do PHP api wrapper

Maintainers

Package info

bitbucket.org/shopwedo/shopwedo-api-php

pkg:composer/shopwedo/shopwedoapi

Statistics

Installs: 4

Dependents: 0

Suggesters: 0

dev-master 2024-07-31 11:22 UTC

This package is auto-updated.

Last update: 2026-03-29 00:54:15 UTC


README

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

Installation

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

composer require shopwedo/shopwedoapi

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();
}