1. Go to this page and download the library: Download gregorybiter/roapp-sdk 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/ */
gregorybiter / roapp-sdk example snippets
use Gbit\Roapp\RoappClient;
$client = new RoappClient("ваш_api_ключ");
// Получить все заказы (автоматически перебирает все страницы)
$allOrders = $client->getData('v2/orders', [], true);
// Получить только первую страницу (50 записей)
$ordersPage1 = $client->getData('v2/orders', ['page' => 1], false);
echo "Всего заказов в базе: " . $allOrders['count'];