klkvsk / beeline-ord-api-client
API client for Beeline ORD system
1.50.0
2024-10-31 19:17 UTC
Requires
- php: ^7.4 || >=8
- ext-hash: *
- php-http/client-common: ^2.6
- php-http/client-implementation: ^1.0
- php-http/discovery: ^1.0
- php-http/httplug: ^2.0
- php-http/logger-plugin: ^1.3
- php-http/message: ^1.0
- php-http/message-factory: ^1.0
- php-http/multipart-stream-builder: ^1.2
- psr/http-client: ^1.0
- psr/http-factory: ^1.0
- psr/http-message: ^1.0
- psr/log: *
Requires (Dev)
- php: >=8.1
- klkvsk/dto-generator: ^0.6.6
- nyholm/psr7: ^1.5
- php-http/curl-client: ^2.2
- php-http/mock-client: ^1.5
- phpunit/phpunit: ^10.0
- vimeo/psalm: ^5.7
README
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();