Kết Nối API
Dành cho đại lý / website khác: đấu thẳng vào hệ thống Tăng tương tác MXH của shop để tạo đơn tự động. Giá giống trên web, tiền trừ vào số dư ví của bạn. Chuẩn API v2 giống các panel SMM phổ biến.
Phương thức: POST · Dữ liệu dạng form (
application/x-www-form-urlencoded) hoặc JSON · Kết quả trả về JSON · Giá rate tính theo VND cho 1000 (gói: cho 1 gói). Giữ kín API key như mật khẩu.1. Danh sách dịch vụ
| Tham số | Giá trị |
|---|---|
| key | API key |
| action | services |
[
{ "service": 162, "name": "Like Facebook - Server 1", "type": "Default", "category": "Tăng Like Facebook",
"platform": "Facebook", "rate": "3250", "min": "100", "max": "100000", "refill": false, "cancel": true }
]
2. Tạo đơn
| Tham số | Giá trị |
|---|---|
| key | API key |
| action | add |
| service | ID dịch vụ |
| link | Link hoặc ID cần tăng |
| quantity | Số lượng (bỏ qua với gói) |
| comments | Chỉ với dịch vụ bình luận: mỗi dòng 1 bình luận (cách nhau bằng \n) |
{ "order": 23501 }
3. Trạng thái đơn
| Tham số | Giá trị |
|---|---|
| key | API key |
| action | status |
| order | Mã đơn (hoặc orders: nhiều mã cách nhau dấu phẩy, tối đa 100) |
{ "charge": "3250.00", "start_count": "1520", "status": "In progress", "remains": "320", "currency": "VND" }
// orders=1,2
{ "1": { "charge": "3250.00", "start_count": "1520", "status": "Completed", "remains": "0", "currency": "VND" },
"2": { "error": "Incorrect order ID" } }
Trạng thái:
Pending, In progress, Completed, Partial, Canceled. Đơn hủy / chạy thiếu tự hoàn tiền phần chưa chạy vào ví, charge là số tiền sau khi hoàn.4. Bảo hành / hủy đơn
| Tham số | Giá trị |
|---|---|
| action | refill + order (server có bảo hành) hoặc cancel + orders (server cho hủy) |
{ "refill": 23501 }
[ { "order": "23501", "cancel": 1 } ]
5. Số dư
| Tham số | Giá trị |
|---|---|
| key | API key |
| action | balance |
{ "balance": "150000.00", "currency": "VND" }
Lỗi luôn trả về dạng
{ "error": "nội dung lỗi" }.Ví dụ
curl -X POST https://nhtmmo.com/api/v2 \ -d key=API_KEY_CUA_BAN -d action=add -d service=162 \ -d link=https://facebook.com/... -d quantity=1000
$ch = curl_init('https://nhtmmo.com/api/v2');
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query([
'key' => 'API_KEY_CUA_BAN', 'action' => 'add', 'service' => 162,
'link' => 'https://facebook.com/...', 'quantity' => 1000,
]));
$result = json_decode(curl_exec($ch), true);import requests
r = requests.post("https://nhtmmo.com/api/v2", data={
"key": "API_KEY_CUA_BAN", "action": "add", "service": 162,
"link": "https://facebook.com/...", "quantity": 1000,
})
print(r.json())const res = await fetch("https://nhtmmo.com/api/v2", {
method: "POST",
body: new URLSearchParams({ key: "API_KEY_CUA_BAN", action: "add", service: "162", link: "https://facebook.com/...", quantity: "1000" }),
});
console.log(await res.json());