pavlo-dot-dev / popolni-club
Popolni.club API
v1.0.0
2023-08-22 06:31 UTC
Requires
- guzzlehttp/guzzle: ^7.7
README
Требования
- PHP 8.0 или выше
- Composer
- GuzzleHTTP
Composer
composer require pavlo-dot-dev/popolni-club
Примеры
Авторизация
$login = '...'; $password = '...'; $api = new PavloDotDev\PopolniClub\API($api);
Запрос баланса
$balance = $api->balance(); echo "Текущий баланс: {$balance->amount()} руб.";
Создание транзакции
$transactions = $api->transactions()->create(mt_rand(10000000, 999999999), 100, '79012345678')->send(); print_r($transactions[0]->statusText());