API
Стандарттуу SMM панель API (v2). Ботуңуздан же сайтыңыздан буйрутма бериңиз, абалы менен балансты текшериңиз.
Кызматтар тизмеси
Параметрлер
| Параметр | Сүрөттөмө |
|---|---|
key | Your API key |
action | services |
Жооп мисалы
[
{
"service": 1,
"name": "Followers",
"type": "Default",
"category": "First Category",
"rate": "0.90",
"min": "50",
"max": "10000"
},
{
"service": 2,
"name": "Comments",
"type": "Custom Comments",
"category": "Second Category",
"rate": "8",
"min": "10",
"max": "1500"
}
]
Буйрутма берүү
Параметрлер
| Параметр | Сүрөттөмө |
|---|---|
key | Your API key |
action | add |
service | Service ID |
link | Link to page |
quantity | Needed quantity |
Параметрлер
| Параметр | Сүрөттөмө |
|---|---|
key | Your API key |
action | add |
service | Service ID |
link | Link to page |
Параметрлер
| Параметр | Сүрөттөмө |
|---|---|
key | Your API key |
action | add |
service | Service ID |
link | Link to page |
comments | Comments list separated by \n or \r\n |
Параметрлер
| Параметр | Сүрөттөмө |
|---|---|
key | Your API key |
action | add |
service | Service ID |
link | Link to page |
quantity | Quantity per run |
runs | Runs to deliver |
interval | Interval in minutes |
Параметрлер
| Параметр | Сүрөттөмө |
|---|---|
key | Your API key |
action | add |
service | Service ID |
username | Username |
min | Quantity min |
max | Quantity max |
posts optional | New posts count |
delay | Delay in minutes: 0, 5, 10, 15, 30, 60, 90 |
expiry optional | Expiry date, format Y-m-d |
Жооп мисалы
{
"order": 23501
}
Буйрутманын абалы
Параметрлер
| Параметр | Сүрөттөмө |
|---|---|
key | Your API key |
action | status |
order | Order ID |
Жооп мисалы
{
"charge": "0.27819",
"start_count": "3572",
"status": "Partial",
"remains": "157",
"currency": "USD"
}
Абалдар: Pending In progress Processing Completed Partial Canceled
Баланс
Параметрлер
| Параметр | Сүрөттөмө |
|---|---|
key | Your API key |
action | balance |
Жооп мисалы
{
"balance": "100.84292",
"currency": "USD"
}
Код мисалы
curl -X POST https://cheapsmm.uz/api/v2 \ -d key=YOUR_API_KEY \ -d action=add \ -d service=1 \ -d link=https://t.me/channel \ -d quantity=1000
<?php
function cheapsmm($data) {
$data['key'] = 'YOUR_API_KEY';
$ch = curl_init('https://cheapsmm.uz/api/v2');
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$res = curl_exec($ch);
curl_close($ch);
return json_decode($res, true);
}
$balance = cheapsmm(['action' => 'balance']);
$order = cheapsmm(['action' => 'add', 'service' => 1,
'link' => 'https://t.me/channel', 'quantity' => 1000]);
$status = cheapsmm(['action' => 'status', 'order' => $order['order']]);