Đăng nhập

Thông tin bắt buộc được đánh dấu bằng dấu *.
Vui lòng trả lời phép tính: 7 + 4 = ?
Chưa có tài khoản? Đăng ký
Nạp tiền thành công
Số dư đã được cập nhật
Developer Docs

Tài liệu tích hợp API

Tài liệu API theo kiểu panel phổ biến, có sẵn request params, response mẫu và code PHP tổng quát để tích hợp nhanh.

API Details

  • API URL: https://hdlike.vn/api/v2/
  • API Key: Please login to get api key
  • HTTP Method: POST or GET
  • Response format: JSON

Services List

Services list

  • key: Your API Key
  • action: services
[
  {
    "service": 1,
    "name": "Facebook Like",
    "type": "Default",
    "category": "Facebook",
    "platform": "Facebook",
    "rate": "1000",
    "min": "50",
    "max": "1000000",
    "refill": true,
    "cancel": true,
    "description": "description for this service"
  }
]

Add Order

Add order

  • key: Your API Key
  • action: add
  • service: Service ID
  • link: Link to page
  • quantity: Needed quantity
  • comments: dùng cho dịch vụ custom comments
{
  "order": 99887766
}

Order Status

Order status

  • key: Your API Key
  • action: status
  • order: Order ID
{
  "charge": "50000",
  "start_count": "1525",
  "status": "In progress",
  "remains": "569",
  "currency": "VND"
}

Multiple Orders Status

Multiple orders status

  • key: Your API Key
  • action: status
  • orders: Order IDs, separated by a comma, up to 100 IDs
{
  "25": {
    "charge": "50000",
    "start_count": "4562",
    "status": "In progress",
    "remains": "1588",
    "currency": "VND"
  },
  "362": {
    "error": "Incorrect order ID"
  }
}

Create Cancel

Create cancel

  • key: Your API Key
  • action: cancel
  • orders: Order IDs, separated by a comma, up to 100 IDs
[
  {
    "order": 1,
    "cancel": {
      "error": "Incorrect order ID"
    }
  },
  {
    "order": 2,
    "cancel": 1
  }
]

User Balance

User balance

  • key: Your API Key
  • action: balance
{
  "balance": "50000",
  "currency": "VND"
}

Example PHP Code

<?php

# services list
$post_data = [
    "action" => "services"
];

# add default order
$post_data = [
    "action" => "add",
    "link" => "https://...",
    "quantity" => 100,
    "service" => 20
];

# add custom comments order
$post_data = [
    "action" => "add",
    "link" => "https://...",
    "comments" => "msg1\nmsg2\nmsg3",
    "service" => 15
];

# order status
$post_data = [
    "action" => "status",
    "order" => 120494
];

# multi order status
$post_data = [
    "action" => "status",
    "orders" => "10293,10248,102394"
];

# create cancel
$post_data = [
    "action" => "cancel",
    "orders" => "104983,139403,103893"
];

# user balance
$post_data = [
    "action" => "balance",
];

### api key ###
$post_data["key"] = "Your API Key";

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://hdlike.vn/api/v2");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true); # USING POST METHOD, GET METHOD ALSO AVAILABLE
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post_data));
$result = curl_exec($ch);
curl_close($ch);

var_dump($result);

# also can using with GET method
# https://hdlike.vn/api/v2?key=YOUR_API_KEY&action=services

?>

Câu hỏi thường gặp

API key lấy ở đâu?

Sau khi đăng nhập, bạn vào trang Tích hợp API để tạo hoặc cấp lại API key cho tài khoản.

Có thể dùng GET không?

Có. API hỗ trợ cả POST và GET, nhưng nên ưu tiên POST khi gửi dữ liệu tạo đơn.

Có cần đăng nhập web rồi mới gọi API không?

Không. Chỉ cần API key hợp lệ là có thể gọi API.