PHP code example of accountbox / api_client

1. Go to this page and download the library: Download accountbox/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/ */

    

accountbox / api_client example snippets


$authClient = new ABAPI\Clients\AuthClient(string $token, string $baseUri); // Создаем клиента для последующих запросов
$ab = new ABAPI\AB($authClient); // Создаем экземпляр библиотеки

$list = $ab->list()->getList(14);

$abList = new ABList();
$list = $ab->list()->createList($abList);

$phoneStatus = $ab->list()->getPhoneStatus(1, "79188680973");

$list = $ab->list()->updateListDeadline(1, "2023-03-03 13:30:00");

$list = $ab->list()->updateListStatus(1, "READY");

$list = $ab->list()->updateImage(1, "image");

$list = $ab->list()->uploadPhones(1, "79188680973")