Início / API
API para revendedores
Conecte seu painel SMM ou aplicativo à nossa API v2. Todas as requisições são HTTP POST e as respostas em JSON.
| URL da API | https://smmbuys.com.tr/api/v2 |
|---|---|
| Método HTTP | POST |
| Chave de API | Cadastrar |
| Formato de resposta | JSON |
action=services
| Parâmetros | |
|---|---|
key | Chave de API |
action | services |
Exemplo de resposta
[
{
"service": 1,
"name": "Followers",
"type": "Default",
"category": "Instagram Followers",
"rate": "0.90",
"min": "50",
"max": "10000",
"refill": true,
"cancel": true,
"dripfeed": false
}
]
action=add
| Parâmetros | |
|---|---|
key | Chave de API |
action | add |
service | Service ID |
link | Link |
quantity | Quantity |
runs | Runs (optional) |
interval | Interval (optional) |
comments | Comments (custom comment services) |
Exemplo de resposta
{
"order": 23501
}
action=status
| Parâmetros | |
|---|---|
key | Chave de API |
action | status |
order | Order ID |
Exemplo de resposta
{
"charge": "0.27819",
"start_count": "3572",
"status": "Partial",
"remains": "157",
"currency": "USD"
}
action=status
| Parâmetros | |
|---|---|
key | Chave de API |
action | status |
orders | Order IDs, comma separated (max 100) |
Exemplo de resposta
{
"1": {
"charge": "0.27819",
"start_count": "3572",
"status": "Partial",
"remains": "157",
"currency": "USD"
},
"10": {
"error": "Incorrect order ID"
}
}
action=refill
| Parâmetros | |
|---|---|
key | Chave de API |
action | refill |
order | Order ID |
Exemplo de resposta
{
"refill": "1"
}
action=cancel
| Parâmetros | |
|---|---|
key | Chave de API |
action | cancel |
orders | Order IDs, comma separated (max 100) |
Exemplo de resposta
[
{
"order": 9,
"cancel": 1
},
{
"order": 2,
"cancel": {
"error": "Incorrect order ID"
}
}
]
action=balance
| Parâmetros | |
|---|---|
key | Chave de API |
action | balance |
Exemplo de resposta
{
"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));