hii good discount for all

Developer API

Automate your orders easily with our standard SMM V2 API.

API Endpoint URL
https://www.trydoob.in/apiconnect

Send all requests via HTTP POST

Your API Key
LOGIN_TO_GET_YOUR_KEY
POST

Service List

POST

Add Order

POST

Order Status

POST

User Balance

PHP Code Example

Use this pre-built PHP class to connect your application with our API.

<?php

class SMMApi
{
    public $api_url = 'https://www.trydoob.in/apiconnect'; 
    public $api_key = 'LOGIN_TO_GET_YOUR_KEY';

    public function order($data) { // add order
        $post = array_merge(array('key' => $this->api_key, 'action' => 'add'), $data);
        return json_decode($this->connect($post));
    }

    public function status($order_id) { // get order status
        return json_decode($this->connect(array(
            'key' => $this->api_key,
            'action' => 'status',
            'order' => $order_id
        )));
    }

    public function services() { // get services
        return json_decode($this->connect(array(
            'key' => $this->api_key,
            'action' => 'services',
        )));
    }

    public function balance() { // get balance
        return json_decode($this->connect(array(
            'key' => $this->api_key,
            'action' => 'balance',
        )));
    }

    private function connect($post) {
        $_post = Array();
        if (is_array($post)) {
            foreach ($post as $name => $value) {
                $_post[] = $name.'='.urlencode($value);
            }
        }
        
        $ch = curl_init($this->api_url);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
        curl_setopt($ch, CURLOPT_POST, 1);
        curl_setopt($ch, CURLOPT_HEADER, 0);
        curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
        curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
        curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
        
        if (is_array($post)) {
            curl_setopt($ch, CURLOPT_POSTFIELDS, join('&', $_post));
        }
        $result = curl_exec($ch);
        curl_close($ch);
        return $result;
    }
}

// ------------------------------------
// Example Usage
// ------------------------------------

$api = new SMMApi();

// 1. Fetch Services
$services = $api->services();
// print_r($services);

// 2. Check Balance
$balance = $api->balance();
// echo "Balance: " . $balance->balance . " " . $balance->currency;

// 3. Add an Order
$order = $api->order(array('service' => 1, 'link' => 'http://example.com/test', 'quantity' => 100));
// echo "Order ID: " . $order->order;

// 4. Check Order Status
$status = $api->status($order->order);
// echo "Status: " . $status->status;

?>
Home Services News Guide Reviews
WhatsApp Support
Telegram Support