promopult/integra-client

Promopult Integra API v1 client library

v2.4.1 2024-09-18 10:03 UTC

This package is auto-updated.

Last update: 2024-12-18 10:38:33 UTC


README

Клиентская библиотека для сервиса promopult.org.

Build Status Scrutinizer Code Quality Code Coverage

Установка

$ composer require promopult/integra-client

или

"require": {
  ...
  "promopult/integra-client": "*"
  ...
}

Примеры

Смотрите папку examples.

$client = new \Promopult\Integra\Client(
    new \Promopult\Integra\Credentials(getenv('__HASH__'), getenv('__KEY__')), 
    new \AcmeCrypt(),
    new \GuzzleHttp\Client()
);

$response = $client->hello([
    'name' => 'Dmitry'
]);

var_dump($response->getData()); // string(14) "Hello, Dmitry!"