SMMWEST — приклад звернення до API (PHP, cURL) Замініть URL на адресу вашої панелі та вставте свій API key з розділу API в кабінеті. --- Приклад: отримати баланс (action=balance) --- $api_key, 'action' => 'balance', ]; $ch = curl_init($api_url); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post)); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true); $response = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); curl_close($ch); echo "HTTP " . $httpCode . "\n"; echo $response; --- Приклад: список послуг (action=services) --- $post = [ 'key' => $api_key, 'action' => 'services', ]; // Далі той самий блок curl_init / CURLOPT_POST / curl_exec, що й для balance. --- Приклад: нове замовлення (action=add, тип залежить від сервісу) --- $post = [ 'key' => $api_key, 'action' => 'add', 'service' => '1', 'link' => 'https://example.com/target', 'quantity'=> '1000', ]; // Надішліть POST на той самий $api_url з http_build_query($post). Документація з повним переліком параметрів — у розділі API після входу в акаунт на smmwest.com.ua.