PHP code example of carono / turbotext-api
1. Go to this page and download the library: Download carono/turbotext-api 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/ */
carono / turbotext-api example snippets
// Получение баланса
$client = new \carono\turbotext\Client();
$client->apiKey = 'your-api-key';
$response = $client->order()->getBalance();
// Создание заказа
$config = new OrderConfig();
$config->order_title = 'Заголовок';
$config->order_type = 1;
$config->folder_id = 0;
$config->order_description = 'Описание';
$config->order_text = 'Текст';
$config->order_size_from = 500;
$config->order_size_to = 600;
$config->order_price = 30;
$response = $client->order()->createOrder($config);
$client->order();
$client->user();
$client->microTask();
$client->message();