דלג לתוכן
Tg7Panel

API למפיצים

נקודת קצה אחת, HTTP POST, תשובות JSON. את המפתח מקבלים באזור החשבון.

נקודת קצה   POST https://tg7panel.net/api/v2
פורמט     application/x-www-form-urlencoded

כל בקשה נשלחת ב-POST וכוללת את המפתח שלכם ופעולה (action). מזהי הזמנה הם מחרוזות טקסט, וכשל חוזר כ-{ "error": "..." }. מגבלה: 120 בקשות לדקה לכל מפתח.

action=services

פרמטרים: key

[{ "service": 1003, "name": "...", "type": "Default", "category": "...", "rate": "0.3500", "min": 20, "max": 50000, "refill": true, "cancel": false, "dripfeed": false }]

action=add

פרמטרים: key, service, link, quantity (optional: runs, interval)

{ "order": "6650f1c2a9b3d4e5f6071829" }

action=status

פרמטרים: key, order

{ "charge": "0.3500", "start_count": "120", "status": "In progress", "remains": "400", "currency": "USD" }

action=orders

פרמטרים: key, orders (comma-separated, up to 100)

{ "6650f1c2a9b3d4e5f6071829": { "charge": "0.3500", "start_count": "120", "status": "Completed", "remains": "0", "currency": "USD" } }

action=refill

פרמטרים: key, order

{ "refill": "1" }

action=cancel

פרמטרים: key, orders (comma-separated)

[{ "order": "6650f1c2a9b3d4e5f6071829", "cancel": 1 }]

action=balance

פרמטרים: key

{ "balance": "42.1800", "currency": "USD" }