| Tham số | Mô tả |
|---|---|
key |
API Key |
action |
"services" |
currency |
Mã tiền tệ (tuỳ chọn): VND, USD... |
curl -X POST "https://demo.likesubrevn.com/api/v2" \
-d "key=YOUR_API_KEY" \
-d "action=services"
<?php
$ch = curl_init("https://demo.likesubrevn.com/api/v2");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, [
"key" => "YOUR_API_KEY",
"action" => "services"
]);
$response = curl_exec($ch);
curl_close($ch);
var_dump(json_decode($response, true));
[
{
"service": 1,
"name": "Youtube views",
"type": "Default",
"category": "Youtube | Views",
"platform": "Youtube",
"rate": "2.5",
"min": "200",
"max": "10000",
"refill": true
},
{
"service": 2,
"name": "Facebook comments",
"type": "Custom Comments",
"category": "Facebook | Comments",
"platform": "Facebook",
"rate": "4",
"min": "10",
"max": "1500",
"refill": false
}
]
| Tham số | Mô tả |
|---|---|
key |
API Key |
action |
"add" |
service |
ID dịch vụ |
link |
Liên kết |
quantity |
Số lượng cần |
curl -X POST "https://demo.likesubrevn.com/api/v2" \
-d "key=YOUR_API_KEY" \
-d "action=add"
<?php
$ch = curl_init("https://demo.likesubrevn.com/api/v2");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, [
"key" => "YOUR_API_KEY",
"action" => "add"
]);
$response = curl_exec($ch);
curl_close($ch);
var_dump(json_decode($response, true));
{
"order": 123456
}
| Tham số | Mô tả |
|---|---|
key |
API Key |
action |
"status" |
order |
ID đơn hàng |
curl -X POST "https://demo.likesubrevn.com/api/v2" \
-d "key=YOUR_API_KEY" \
-d "action=status"
<?php
$ch = curl_init("https://demo.likesubrevn.com/api/v2");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, [
"key" => "YOUR_API_KEY",
"action" => "status"
]);
$response = curl_exec($ch);
curl_close($ch);
var_dump(json_decode($response, true));
{
"charge": "2.50000",
"start_count": "150",
"status": "Completed",
"remains": "0",
"currency": "VND"
}
| Tham số | Mô tả |
|---|---|
key |
API Key |
action |
"status" |
orders |
Các ID đơn hàng, cách nhau bằng dấu phẩy (tối đa 100) |
curl -X POST "https://demo.likesubrevn.com/api/v2" \
-d "key=YOUR_API_KEY" \
-d "action=multistatus"
<?php
$ch = curl_init("https://demo.likesubrevn.com/api/v2");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, [
"key" => "YOUR_API_KEY",
"action" => "multistatus"
]);
$response = curl_exec($ch);
curl_close($ch);
var_dump(json_decode($response, true));
{
"123456": {
"charge": "2.5",
"start_count": "150",
"status": "Completed",
"remains": "0"
},
"123457": {
"charge": "5.0",
"start_count": "0",
"status": "In progress",
"remains": "1000"
}
}
| Tham số | Mô tả |
|---|---|
key |
API Key |
action |
"refill" |
order |
ID đơn hàng |
curl -X POST "https://demo.likesubrevn.com/api/v2" \
-d "key=YOUR_API_KEY" \
-d "action=refill"
<?php
$ch = curl_init("https://demo.likesubrevn.com/api/v2");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, [
"key" => "YOUR_API_KEY",
"action" => "refill"
]);
$response = curl_exec($ch);
curl_close($ch);
var_dump(json_decode($response, true));
{
"refill": "123456"
}
| Tham số | Mô tả |
|---|---|
key |
API Key |
action |
"refill" |
orders |
Các ID đơn hàng, cách nhau bằng dấu phẩy (tối đa 100) |
curl -X POST "https://demo.likesubrevn.com/api/v2" \
-d "key=YOUR_API_KEY" \
-d "action=refills"
<?php
$ch = curl_init("https://demo.likesubrevn.com/api/v2");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, [
"key" => "YOUR_API_KEY",
"action" => "refills"
]);
$response = curl_exec($ch);
curl_close($ch);
var_dump(json_decode($response, true));
[
{ "order": 123456, "refill": 1 },
{ "order": 123457, "refill": 2 }
]
| Tham số | Mô tả |
|---|---|
key |
API Key |
action |
"refill_status" |
refill |
ID hoàn đơn |
curl -X POST "https://demo.likesubrevn.com/api/v2" \
-d "key=YOUR_API_KEY" \
-d "action=refill_status"
<?php
$ch = curl_init("https://demo.likesubrevn.com/api/v2");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, [
"key" => "YOUR_API_KEY",
"action" => "refill_status"
]);
$response = curl_exec($ch);
curl_close($ch);
var_dump(json_decode($response, true));
{
"status": "Completed"
}
| Tham số | Mô tả |
|---|---|
key |
API Key |
action |
"refill_status" |
refills |
Các ID hoàn đơn, cách nhau bằng dấu phẩy |
curl -X POST "https://demo.likesubrevn.com/api/v2" \
-d "key=YOUR_API_KEY" \
-d "action=refills_status"
<?php
$ch = curl_init("https://demo.likesubrevn.com/api/v2");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, [
"key" => "YOUR_API_KEY",
"action" => "refills_status"
]);
$response = curl_exec($ch);
curl_close($ch);
var_dump(json_decode($response, true));
[
{ "refill": 1, "status": "Completed" },
{ "refill": 2, "status": "Rejected" }
]
| Tham số | Mô tả |
|---|---|
key |
API Key |
action |
"balance" |
currency |
Mã tiền tệ (tuỳ chọn): VND, USD... |
curl -X POST "https://demo.likesubrevn.com/api/v2" \
-d "key=YOUR_API_KEY" \
-d "action=balance"
<?php
$ch = curl_init("https://demo.likesubrevn.com/api/v2");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, [
"key" => "YOUR_API_KEY",
"action" => "balance"
]);
$response = curl_exec($ch);
curl_close($ch);
var_dump(json_decode($response, true));
{
"balance": "111111.108",
"currency": "VND"
}