klkvsk/beeline-ord-api-client

API client for Beeline ORD system

1.50.0 2024-10-31 19:17 UTC

This package is auto-updated.

Last update: 2024-10-31 19:18:35 UTC


README

https://ord.beeline.ru/

This is not an official package

No support guaranteed.

Installation:

composer require klkvsk/beeline-ord-api-client

Usage:

<?php

$client = new \BeelineOrd\ApiClient(
    new \BeelineOrd\Authorization\Credentials('login', 'password'),
    $token, // if saved from previous session
);

/** @see src/Endpoint/ */
$client->contract()->....
$client->creative()->....
$client->invoice()->....
$client->platform()->....

// OR

$client->send(new \BeelineOrd\Request\SomethingRequest());

// save accessToken for next session:
$token = $client->getToken();