Dokumentasyon ng API v2
Kunin ang listahan ng serbisyo, maglagay ng order at tingnan ang status nito mula sa sarili mong panel o script. Kapareho ang format ng karamihan sa SMM panel.
Mga pangunahing detalye
- Address
https://panelclo.com/api/v2- Method
POST- Format
- Form field o JSON. Laging JSON ang sagot.
- Key
- Bawat call ay may kasamang API key mo sa field na key.
- Limit
- 300 request kada minuto kada key. Pagkatapos ng 30 maling key sa loob ng 10 minuto, pansamantalang ihihinto ang network.
Nasa API page ng dashboard mo ang key mo. Buksan ang API key
Listahan ng serbisyoaction=services
Inililista ang lahat ng serbisyo: numero, pangalan, kategorya, presyo kada 1,000, pinakamaliit at pinakamalaking order, at kung may refill at cancel.
| Field | Kahulugan |
|---|---|
key | Ang API key mo |
action | services |
Request
curl -X POST https://panelclo.com/api/v2 \
-d key=YOUR_API_KEY \
-d action=servicesResponse
[
{
"service": 159,
"name": "YouTube Views, Quick",
"type": "Default",
"category": "YouTube Views",
"rate": "0.4290",
"min": 500,
"max": 1000000,
"refill": false,
"cancel": true
}
]Bagong orderaction=add
Gumagawa ng order, binabawas sa balance mo at sumasagot ng bagong order number.
| Field | Kahulugan |
|---|---|
key | Ang API key mo |
action | add |
service | Numero ng serbisyo |
link | Public link ng profile o post |
quantity | Dami na nasa loob ng range ng serbisyo |
Request
curl -X POST https://panelclo.com/api/v2 \
-d key=YOUR_API_KEY \
-d action=add \
-d service=159 \
-d link=https://www.youtube.com/watch?v=aBcD1234EfG \
-d quantity=1000Response
{
"order": "48213907"
}Status ng orderaction=status
Ibinabalik ang singil, start count, status at natitirang dami ng isang order. Ang status ay Pending, In progress, Completed, Partial o Canceled.
| Field | Kahulugan |
|---|---|
key | Ang API key mo |
action | status |
order | Order number |
Request
curl -X POST https://panelclo.com/api/v2 \
-d key=YOUR_API_KEY \
-d action=status \
-d order=48213907Response
{
"charge": "0.4290",
"start_count": 0,
"status": "Pending",
"remains": 1000,
"currency": "USD"
}Status ng ilang orderaction=status
Magpadala ng hanggang 100 order number na hinihiwalay ng kuwit. Nakaayos ang sagot ayon sa order number.
| Field | Kahulugan |
|---|---|
key | Ang API key mo |
action | status |
orders | Listahan ng order number na hinihiwalay ng kuwit |
Request
curl -X POST https://panelclo.com/api/v2 \
-d key=YOUR_API_KEY \
-d action=status \
-d orders=48213907,51190264Response
{
"48213907": {
"charge": "0.4290",
"start_count": 0,
"status": "Pending",
"remains": 1000,
"currency": "USD"
},
"51190264": {
"error": "Incorrect order ID"
}
}Balanceaction=balance
Ibinabalik ang balance mo sa US dollar.
| Field | Kahulugan |
|---|---|
key | Ang API key mo |
action | balance |
Request
curl -X POST https://panelclo.com/api/v2 \
-d key=YOUR_API_KEY \
-d action=balanceResponse
{
"balance": "42.5000",
"currency": "USD"
}Refillaction=refill
Nagre-request ng refill para sa kumpletong order na may refill option, sa loob ng refill period nito. Ibinabalik ang numero ng refill request.
| Field | Kahulugan |
|---|---|
key | Ang API key mo |
action | refill |
order | Order number |
Request
curl -X POST https://panelclo.com/api/v2 \
-d key=YOUR_API_KEY \
-d action=refill \
-d order=48213907Response
{
"refill": "R-K7M2QX"
}Cancelaction=cancel
Kinakansela ang pending na order at ibinabalik ang singil sa balance mo. Hanggang 100 order number na hinihiwalay ng kuwit.
| Field | Kahulugan |
|---|---|
key | Ang API key mo |
action | cancel |
orders | Listahan ng order number na hinihiwalay ng kuwit |
Request
curl -X POST https://panelclo.com/api/v2 \
-d key=YOUR_API_KEY \
-d action=cancel \
-d orders=48213907Response
[
{
"order": "48213907",
"cancel": 1
}
]Mga error
Bumabalik ang error bilang JSON na may field na error.
Invalid API key- Mali ang key o napalitan na ito ng bago.
Invalid service- Walang serbisyo na may ganyang numero.
Invalid link- Hindi buong http(s) address ang link.
Quantity out of range- Mas mababa sa minimum o mas mataas sa maximum ang dami.
Not enough funds on balance- Mag-top up at ipadala ulit ang order.
Incorrect order ID- Walang order na may ganyang numero sa account mo.
Too many requests- Maghintay ng isang minuto at subukan ulit.
Gumagamit ang mga halimbawa ng serbisyo #159 sa $0.429 kada 1,000. Sample value lang ang order number at balance sa mga halimbawa.