PHP code example of klkvsk / beeline-ord-api-client

1. Go to this page and download the library: Download klkvsk/beeline-ord-api-client library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

klkvsk / beeline-ord-api-client example snippets




$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();