Documentazione API v2 per SMM panel
Stesso formato di richiesta dell'API v2 utilizzato negli SMM panel. Crea la tua chiave API nella pagina API della console; funziona dopo il primo accredito.
| Metodo HTTP | POST (GET) |
| URL API | https://bropanel2.com/api/v2 |
| Formato richiesta | application/x-www-form-urlencoded, JSON |
| Formato risposta | JSON |
| Limite richieste | 120 richieste al minuto per chiave |
Lista servizi
| Parametro | Descrizione |
|---|---|
key | Chiave API |
action | services |
Esempio risposta
[
{
"service": 1,
"name": "Instagram Followers",
"type": "Default",
"category": "Instagram Followers",
"rate": "0.1234",
"min": "10",
"max": "100000",
"refill": true,
"cancel": false
}
]Effettua ordine
| Parametro | Descrizione |
|---|---|
key | Chiave API |
action | add |
service | ID servizio |
link | Link alla pagina per ordinare |
quantity | Quantità (entro i limiti min e max del servizio) |
Esempio risposta
{
"order": 100231
}Stato ordine
| Parametro | Descrizione |
|---|---|
key | Chiave API |
action | status |
order | ID ordine |
Esempio risposta
{
"charge": "0.27819",
"start_count": "3572",
"status": "Partial",
"remains": "157",
"currency": "USD"
}Stati multipli ordini
| Parametro | Descrizione |
|---|---|
key | Chiave API |
action | status |
orders | ID ordini, separati da virgola (max 100) |
Esempio risposta
{
"100231": { "charge": "0.27819", "start_count": "3572", "status": "Partial", "remains": "157", "currency": "USD" },
"100232": { "error": "Incorrect order ID" }
}Richiedi refill
| Parametro | Descrizione |
|---|---|
key | Chiave API |
action | refill |
order | ID ordine (multiple: orders) |
Esempio risposta
{
"refill": "1"
}Stato refill
| Parametro | Descrizione |
|---|---|
key | Chiave API |
action | refill_status |
refill | ID refill (multiple: refills) |
Esempio risposta
{
"status": "Completed"
}Annulla ordine
| Parametro | Descrizione |
|---|---|
key | Chiave API |
action | cancel |
orders | ID ordini, separati da virgola (max 100) |
Esempio risposta
[
{ "order": 100231, "cancel": 1 },
{ "order": 100232, "cancel": { "error": "Incorrect order ID" } }
]Saldo
| Parametro | Descrizione |
|---|---|
key | Chiave API |
action | balance |
Esempio risposta
{
"balance": "100.84292",
"currency": "USD"
}Risposta errore
Se la richiesta fallisce, il motivo viene restituito in single error field.
{ "error": "Invalid API key" }
{ "error": "Incorrect service ID" }
{ "error": "Quantity is out of the service range" }
{ "error": "Not enough funds on balance" }Esempio PHP
<?php
$post = ['key' => 'YOUR_API_KEY', 'action' => 'add', 'service' => 1,
'link' => 'https://instagram.com/yourname', 'quantity' => 1000];
$ch = curl_init('https://bropanel2.com/api/v2');
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$result = json_decode(curl_exec($ch));
echo $result->order;