ہوم / API

ری سیلر API

اپنے SMM پینل یا ایپ کو ہماری API v2 سے جوڑیں۔ تمام درخواستیں HTTP POST ہیں اور جواب JSON میں۔

API URLhttps://smmbuys.com.tr/api/v2
HTTP طریقہPOST
API کیسائن اپ
جواب کا فارمیٹJSON

action=services

پیرامیٹرز
keyAPI کی
actionservices

مثالی جواب

[
    {
        "service": 1,
        "name": "Followers",
        "type": "Default",
        "category": "Instagram Followers",
        "rate": "0.90",
        "min": "50",
        "max": "10000",
        "refill": true,
        "cancel": true,
        "dripfeed": false
    }
]

action=add

پیرامیٹرز
keyAPI کی
actionadd
serviceService ID
linkLink
quantityQuantity
runsRuns (optional)
intervalInterval (optional)
commentsComments (custom comment services)

مثالی جواب

{
    "order": 23501
}

action=status

پیرامیٹرز
keyAPI کی
actionstatus
orderOrder ID

مثالی جواب

{
    "charge": "0.27819",
    "start_count": "3572",
    "status": "Partial",
    "remains": "157",
    "currency": "USD"
}

action=status

پیرامیٹرز
keyAPI کی
actionstatus
ordersOrder IDs, comma separated (max 100)

مثالی جواب

{
    "1": {
        "charge": "0.27819",
        "start_count": "3572",
        "status": "Partial",
        "remains": "157",
        "currency": "USD"
    },
    "10": {
        "error": "Incorrect order ID"
    }
}

action=refill

پیرامیٹرز
keyAPI کی
actionrefill
orderOrder ID

مثالی جواب

{
    "refill": "1"
}

action=cancel

پیرامیٹرز
keyAPI کی
actioncancel
ordersOrder IDs, comma separated (max 100)

مثالی جواب

[
    {
        "order": 9,
        "cancel": 1
    },
    {
        "order": 2,
        "cancel": {
            "error": "Incorrect order ID"
        }
    }
]

action=balance

پیرامیٹرز
keyAPI کی
actionbalance

مثالی جواب

{
    "balance": "100.84",
    "currency": "USD"
}

PHP

<?php
$ch = curl_init('https://smmbuys.com.tr/api/v2');
curl_setopt_array($ch, [CURLOPT_POST => true, CURLOPT_RETURNTRANSFER => true,
  CURLOPT_POSTFIELDS => http_build_query(['key' => 'YOUR_KEY', 'action' => 'add', 'service' => 1, 'link' => 'https://instagram.com/user', 'quantity' => 1000])]);
var_dump(json_decode(curl_exec($ch), true));