Documentazione API
Esempio di codice PHPConnessione
- Metodo HTTP
POST- URL API
https://onesmm.com/api/v2- Formato della risposta
JSON
servicesElenco servizi
| Parametro | Descrizione |
|---|---|
key |
La tua chiave API |
action |
services |
Esempio di risposta
[
{
"service": 1,
"name": "Followers",
"type": "Default",
"category": "First Category",
"rate": "0.90",
"min": "50",
"max": "10000",
"refill": true,
"cancel": true
},
{
"service": 2,
"name": "Comments",
"type": "Custom Comments",
"category": "Second Category",
"rate": "8",
"min": "10",
"max": "1500",
"refill": false,
"cancel": true
}
]
addAggiungi ordine
Esempio di risposta
{
"order": 23501
}
statusStato dell’ordine
| Parametro | Descrizione |
|---|---|
key |
La tua chiave API |
action |
status |
order |
ID ordine |
Esempio di risposta
{
"charge": "0.27819",
"start_count": "3572",
"status": "Partial",
"remains": "157",
"currency": "USD"
}
multi_statusStato di più ordini
| Parametro | Descrizione |
|---|---|
key |
La tua chiave API |
action |
status |
orders |
ID degli ordini (separati da virgole, fino a 100 ID) |
Esempio di risposta
{
"1": {
"charge": "0.27819",
"start_count": "3572",
"status": "Partial",
"remains": "157",
"currency": "USD"
},
"10": {
"error": "Incorrect order ID"
},
"100": {
"charge": "1.44219",
"start_count": "234",
"status": "In progress",
"remains": "10",
"currency": "USD"
}
}
refillCrea reintegro
| Parametro | Descrizione |
|---|---|
key |
La tua chiave API |
action |
refill |
order |
ID ordine |
Esempio di risposta
{
"refill": "1"
}
multi_refillCrea più reintegri
| Parametro | Descrizione |
|---|---|
key |
La tua chiave API |
action |
refill |
orders |
ID degli ordini (separati da virgole, fino a 100 ID) |
Esempio di risposta
[
{
"order": 1,
"refill": 1
},
{
"order": 2,
"refill": 2
},
{
"order": 3,
"refill": {
"error": "Incorrect order ID"
}
}
]
refill_statusOttieni stato del reintegro
| Parametro | Descrizione |
|---|---|
key |
La tua chiave API |
action |
refill_status |
refill |
ID reintegro |
Esempio di risposta
{
"status": "Completed"
}
multi_refill_statusOttieni lo stato di più reintegri
| Parametro | Descrizione |
|---|---|
key |
La tua chiave API |
action |
refill_status |
refills |
ID dei reintegri (separati da virgole, fino a 100 ID) |
Esempio di risposta
[
{
"refill": 1,
"status": "Completed"
},
{
"refill": 2,
"status": "Rejected"
},
{
"refill": 3,
"status": {
"error": "Refill not found"
}
}
]
cancelCrea richiesta di annullamento
| Parametro | Descrizione |
|---|---|
key |
La tua chiave API |
action |
cancel |
orders |
ID degli ordini (separati da virgole, fino a 100 ID) |
Esempio di risposta
[
{
"order": 9,
"cancel": {
"error": "Incorrect order ID"
}
},
{
"order": 2,
"cancel": 1
}
]
balanceSaldo utente
| Parametro | Descrizione |
|---|---|
key |
La tua chiave API |
action |
balance |
Esempio di risposta
{
"balance": "100.84292",
"currency": "USD"
}