Skip to content
This repository has been archived by the owner on Sep 17, 2021. It is now read-only.
/ LojaIntegrada Public archive

Customer integration with webservice Loja Integrada WSW

License

Notifications You must be signed in to change notification settings

whera/LojaIntegrada

Repository files navigation

API Loja Integrada

Author Source Code Latest Version Software License Build Status Coverage Status Quality Score Total Downloads

API integration with e-commerce system Loja Integrada

Install

Via Composer

$ composer require wsw/loja-integrada

Usage

use WSW\LojaIntegrada\Credentials;
use WSW\LojaIntegrada\Resources\Category;
use WSW\LojaIntegrada\Client\LojaIntegradaException;

try {
 
    $credentials = new Credentials(
        '0a0000a0-aaa0-0000-a000-aa0a000000aa',
        '0a0000a0-aaa0-0000-a000-aa0a000000aB'
    );

    $category = new Category($credentials);

    // returns all records in the category
    $result = $category->findAll();
    
    // returns the related category to id
    $resultID = $category->find(123);
    
    // returns the categories related to the ids
    $resultIDs = $category->find([1, 10, 50, 99]);
    
    
    // returns the related category to the external id
    $resultIdExternal = $category->idExternal()->find(999);

} catch (LojaIntegradaException $e) {
    echo $e->getMessage();

} catch (\InvalidArgumentException $e) {
    echo $e->getMessage();
}

Testing

$ composer test

Contributing

Please see CONTRIBUTING and CONDUCT for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

About

Customer integration with webservice Loja Integrada WSW

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages