Code Monkey home page Code Monkey logo

insales_php_api's Introduction

#API-клиент для работы с сервисом InSales Установка:

composer require insales/api-client-php dev-master

Пример использования:

require_once 'vendor/autoload.php';

$client = new \InSales\API\ApiClient('identity', 'password', 'host_name');

$client->createClient(
[
    'client' => [
        'name' => uniqid(),
        'surname' => uniqid(),
        'middlename' => uniqid(),
    ]
]
);

$client->getClient($id);
$client->getClients();
$client->updateClient($id, $data);
$client->removeClient($id);

insales_php_api's People

Contributors

acyuta avatar liven avatar shutn1k avatar traveler4star avatar zsand avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

insales_php_api's Issues

Поддержать PUT /admin/products/variants_group_update.json

Привет! А добавьте поддержку PUT /admin/products/variants_group_update.json, плз?
Или, если я не нашёл, ткните, плз. Спасибо!

PS. Возможно, метод \InSales\API\ApiClient::getHttpClient(): \InSales\Http\Client не помешал бы - избегать создание ещё одного экземпляра \InSales\Http\Client, когда надо выполнить неподдерживаемый запрос в API.

does not comply with psr-4 autoloading standard

`Deprecation Notice: Class InSales\TestCase located in C:/web/domains/crm.loc/vendor/insales/api-client-php/src\tests\InSales\TestCase.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar://C:/web/userdata/composer/composer.phar/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class InSales\Tests\ApiClient\Client\ConstructTest located in C:/web/domains/crm.loc/vendor/insales/api-client-php/src\tests\InSales\Tests\ApiClient\Client\ConstructTest.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar://C:/web/userdata/composer/composer.phar/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class InSales\Tests\ApiClient\CRUD\AccountTest located in C:/web/domains/crm.loc/vendor/insales/api-client-php/src\tests\InSales\Tests\ApiClient\CRUD\AccountTest.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar://C:/web/userdata/composer/composer.phar/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class InSales\Tests\ApiClient\CRUD\ApplicationChargeTest located in C:/web/domains/crm.loc/vendor/insales/api-client-php/src\tests\InSales\Tests\ApiClient\CRUD\ApplicationChargeTest.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar://C:/web/userdata/composer/composer.phar/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class InSales\Tests\ApiClient\CRUD\ApplicationWidgetTest located in C:/web/domains/crm.loc/vendor/insales/api-client-php/src\tests\InSales\Tests\ApiClient\CRUD\ApplicationWidgetTest.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar://C:/web/userdata/composer/composer.phar/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class InSales\Tests\ApiClient\CRUD\BlogTest located in C:/web/domains/crm.loc/vendor/insales/api-client-php/src\tests\InSales\Tests\ApiClient\CRUD\BlogTest.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar://C:/web/userdata/composer/composer.phar/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class InSales\Tests\ApiClient\CRUD\CategoryTest located in C:/web/domains/crm.loc/vendor/insales/api-client-php/src\tests\InSales\Tests\ApiClient\CRUD\CategoryTest.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar://C:/web/userdata/composer/composer.phar/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class InSales\Tests\ApiClient\CRUD\ClientGroupTest located in C:/web/domains/crm.loc/vendor/insales/api-client-php/src\tests\InSales\Tests\ApiClient\CRUD\ClientGroupTest.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar://C:/web/userdata/composer/composer.phar/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class InSales\Tests\ApiClient\CRUD\ClientTest located in C:/web/domains/crm.loc/vendor/insales/api-client-php/src\tests\InSales\Tests\ApiClient\CRUD\ClientTest.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar://C:/web/userdata/composer/composer.phar/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class InSales\Tests\ApiClient\CRUD\CollectionFilterTest located in C:/web/domains/crm.loc/vendor/insales/api-client-php/src\tests\InSales\Tests\ApiClient\CRUD\CollectionFilterTest.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar://C:/web/userdata/composer/composer.phar/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class InSales\Tests\ApiClient\CRUD\CollectionTest located in C:/web/domains/crm.loc/vendor/insales/api-client-php/src\tests\InSales\Tests\ApiClient\CRUD\CollectionTest.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar://C:/web/userdata/composer/composer.phar/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class InSales\Tests\ApiClient\CRUD\CustomStatusTest located in C:/web/domains/crm.loc/vendor/insales/api-client-php/src\tests\InSales\Tests\ApiClient\CRUD\CustomStatusTest.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar://C:/web/userdata/composer/composer.phar/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class InSales\Tests\ApiClient\CRUD\DeliveryVariantTest located in C:/web/domains/crm.loc/vendor/insales/api-client-php/src\tests\InSales\Tests\ApiClient\CRUD\DeliveryVariantTest.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar://C:/web/userdata/composer/composer.phar/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class InSales\Tests\ApiClient\CRUD\DiscountCodeTest located in C:/web/domains/crm.loc/vendor/insales/api-client-php/src\tests\InSales\Tests\ApiClient\CRUD\DiscountCodeTest.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar://C:/web/userdata/composer/composer.phar/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class InSales\Tests\ApiClient\CRUD\DomainTest located in C:/web/domains/crm.loc/vendor/insales/api-client-php/src\tests\InSales\Tests\ApiClient\CRUD\DomainTest.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar://C:/web/userdata/composer/composer.phar/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class InSales\Tests\ApiClient\CRUD\FieldTest located in C:/web/domains/crm.loc/vendor/insales/api-client-php/src\tests\InSales\Tests\ApiClient\CRUD\FieldTest.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar://C:/web/userdata/composer/composer.phar/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class InSales\Tests\ApiClient\CRUD\FileTest located in C:/web/domains/crm.loc/vendor/insales/api-client-php/src\tests\InSales\Tests\ApiClient\CRUD\FileTest.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar://C:/web/userdata/composer/composer.phar/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class InSales\Tests\ApiClient\CRUD\JsTagTest located in C:/web/domains/crm.loc/vendor/insales/api-client-php/src\tests\InSales\Tests\ApiClient\CRUD\JsTagTest.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar://C:/web/userdata/composer/composer.phar/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class InSales\Tests\ApiClient\CRUD\OptionNameTest located in C:/web/domains/crm.loc/vendor/insales/api-client-php/src\tests\InSales\Tests\ApiClient\CRUD\OptionNameTest.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar://C:/web/userdata/composer/composer.phar/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class InSales\Tests\ApiClient\CRUD\OptionValueTest located in C:/web/domains/crm.loc/vendor/insales/api-client-php/src\tests\InSales\Tests\ApiClient\CRUD\OptionValueTest.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar://C:/web/userdata/composer/composer.phar/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class InSales\Tests\ApiClient\CRUD\OrderTest located in C:/web/domains/crm.loc/vendor/insales/api-client-php/src\tests\InSales\Tests\ApiClient\CRUD\OrderTest.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar://C:/web/userdata/composer/composer.phar/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class InSales\Tests\ApiClient\CRUD\PaymentGatewayTest located in C:/web/domains/crm.loc/vendor/insales/api-client-php/src\tests\InSales\Tests\ApiClient\CRUD\PaymentGatewayTest.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar://C:/web/userdata/composer/composer.phar/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class InSales\Tests\ApiClient\CRUD\ProductFieldTest located in C:/web/domains/crm.loc/vendor/insales/api-client-php/src\tests\InSales\Tests\ApiClient\CRUD\ProductFieldTest.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar://C:/web/userdata/composer/composer.phar/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class InSales\Tests\ApiClient\CRUD\PropertyTest located in C:/web/domains/crm.loc/vendor/insales/api-client-php/src\tests\InSales\Tests\ApiClient\CRUD\PropertyTest.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar://C:/web/userdata/composer/composer.phar/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class InSales\Tests\ApiClient\CRUD\StockCurrencyTest located in C:/web/domains/crm.loc/vendor/insales/api-client-php/src\tests\InSales\Tests\ApiClient\CRUD\StockCurrencyTest.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar://C:/web/userdata/composer/composer.phar/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class InSales\Tests\ApiClient\CRUD\VariantFieldTest located in C:/web/domains/crm.loc/vendor/insales/api-client-php/src\tests\InSales\Tests\ApiClient\CRUD\VariantFieldTest.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar://C:/web/userdata/composer/composer.phar/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class InSales\Tests\ApiClient\CRUD\WebhookTest located in C:/web/domains/crm.loc/vendor/insales/api-client-php/src\tests\InSales\Tests\ApiClient\CRUD\WebhookTest.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar://C:/web/userdata/composer/composer.phar/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class InSales\Tests\ApiClient\Get\NotFoundTest located in C:/web/domains/crm.loc/vendor/insales/api-client-php/src\tests\InSales\Tests\ApiClient\Get\NotFoundTest.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar://C:/web/userdata/composer/composer.phar/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class InSales\Tests\ApiClient\GetList\AnyTest located in C:/web/domains/crm.loc/vendor/insales/api-client-php/src\tests\InSales\Tests\ApiClient\GetList\AnyTest.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar://C:/web/userdata/composer/composer.phar/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class InSales\Tests\ApiClient\Remove\NotFoundTest located in C:/web/domains/crm.loc/vendor/insales/api-client-php/src\tests\InSales\Tests\ApiClient\Remove\NotFoundTest.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar://C:/web/userdata/composer/composer.phar/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class InSales\Tests\ApiClient\Update\NotFoundTest located in C:/web/domains/crm.loc/vendor/insales/api-client-php/src\tests\InSales\Tests\ApiClient\Update\NotFoundTest.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar://C:/web/userdata/composer/composer.phar/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class InSales\Tests\ApiResponseTest located in C:/web/domains/crm.loc/vendor/insales/api-client-php/src\tests\InSales\Tests\ApiResponseTest.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar://C:/web/userdata/composer/composer.phar/src/Composer/Autoload/ClassMapGenerator.php:201

Illuminate\Foundation\ComposerScripts::postAutoloadDump
@php artisan package:discover --ansi
Discovered Package: beyondcode/laravel-dump-server
Discovered Package: chumper/zipper
Discovered Package: fideloper/proxy
Discovered Package: laravel/tinker
Discovered Package: laravel/ui
Discovered Package: nesbot/carbon
Discovered Package: nunomaduro/collision
Package manifest generated successfully.
32 packages you are using are looking for funding.
Use the composer fund command to find out more!`

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.