eslavondigital / ozzz-ru-api
API Ozzz.ru
v1.2
2020-05-21 13:34 UTC
Requires
- php: 7.4.*
- ext-json: *
- guzzlehttp/guzzle: 6.5.3
This package is auto-updated.
Last update: 2025-03-22 00:48:15 UTC
README
API Ozzz.ruInstallation
Install the latest version with
$ composer require eslavondigital/ozzz-ru-api
Basic Usage
<?php require_once __DIR__ . '/vendor/autoload.php'; use Eslavon\Ozzz\Api; $api_key = '$2y$10$SzzWhi8Nc0suv'; $api = new Api(new GuzzleHttp\Client(), $api_key); # Balance sheet data # Get raw body data $raw_body_data = $api->balance()->getRawBodyData(); // string # Get amount balance $balance = $api->balance()->getAmount(); // float # Get currency $currency = $api->balance()->getCurrency(); // string # Get a list of services with a description # Get raw body data $raw_body_data = $api->services()->getRawBodyData(); // string # Get the result as an array $array_list_services = $api->services()->get(); // array # Work with orders # Create Order $id_services = 112; $link = "https://t.me/eslavon"; $quantity = 10; $order = $api->order()->create( $id_services, $link, $quantity); // object # Status Order $status = $api->order()->status(12707918); //object # Cancel Order $cancel = $api->order()->cancel(12707918); //object
Documentation
Support Eslavon Digital Financially
Get supported Eslavon Digital and help fund the project.
Yandex.Money: 410016014512747
QIWI: https://qiwi.com/n/eslavon
Author
Vinogradov Victor - eslavon.work.victor@gmail.com - https://vk.com/winogradow.wiktor
Eslavon Digital - eslavondigital@gmail.com - https://vk.com/eslavon
License
All Elavon Digital products are licensed under the MIT license - see the LICENSE
file for details