License CloudAPI HANDBOOK / Quản trị →Admin →
Bắt đầuGetting started

Cẩm nang tích hợp APIAPI Integration Handbook

Mọi thứ bạn cần để kích hoạt license, kiểm tra hiệu lực, phân phối bản cập nhật và tự động hoá cấp license từ hệ thống của mình.Everything you need to activate licenses, validate them, ship updates and automate license issuing from your own systems.

MB License Cloud cung cấp gì

What MB License Cloud provides

MB License Cloud là cổng cấp phép (license gateway) tự lưu trữ. Sản phẩm của bạn (plugin WordPress, ứng dụng, dịch vụ) gọi API để kích hoạt license trên một site/thiết bị, sau đó dùng một activation lease ngắn hạn thay cho license key trong mọi lần gọi tiếp theo.

MB License Cloud is a self-hosted license gateway. Your product (a WordPress plugin, an app, a service) calls the API to activate a license on a site or device, then uses a short-lived activation lease instead of the license key for every later call.

Ba nhóm API

Three API families

Base URL & định dạng

Base URL & format

  • Base URL là domain bạn triển khai, ví dụ https://license.example.com. Trong bản dev: http://localhost:8080.
  • Body là JSON (Content-Type: application/json), tối đa 32 KiB cho runtime API. Runtime API còn chấp nhận application/x-www-form-urlencoded để tương thích bản cũ.
  • Thời gian phản hồi dùng RFC 3339; timestamp trong yêu cầu là Unix giây.
  • Các alias /wp-json/mb-license/v2/* chỉ phục vụ giai đoạn chuyển đổi; tích hợp mới hãy dùng /api/v2.
  • The base URL is the domain you deploy, e.g. https://license.example.com. In the dev stack: http://localhost:8080.
  • Bodies are JSON (Content-Type: application/json), up to 32 KiB for the runtime API. The runtime API also accepts application/x-www-form-urlencoded for legacy compatibility.
  • Response times use RFC 3339; request timestamps are Unix seconds.
  • The /wp-json/mb-license/v2/* aliases exist only for staged migrations; new integrations should use /api/v2.
GET/api/v2/health
curl
curl -s https://license.example.com/api/v2/health
# {"ok":true,"service":"mb-license-cloud","version":"1.8.0","time":"…"}
Tài liệu OpenAPIOpenAPI spec

Đặc tả máy đọc được nằm ở docs/openapi.yaml trong repository.

A machine-readable spec lives at docs/openapi.yaml in the repository.