VI | EN
Nhắn Messenger
Dành cho developer

Nhật ký của một việc — API Base Wework

task/logs · gọi qua Quantri360 bằng một API key cho chính tài khoản / tài sản bạn đã kết nối và ủy quyền — 360 lo việc ký request và làm mới phiên đăng nhập bạn đã cấp.

task/logs

POST/extapi/v3/task/logsGọi qua 360: POST https://partner.quantri360.com/v1/base_wework/extapi/v3/task/logs
Sắp mở. API này đã chạy thật qua 360 và đang được chốt giá — bạn có thể đọc tài liệu và chuẩn bị tích hợp trước.
Mô tả API

Nhật ký thay đổi của MỘT việc: ai đánh dấu xong, sửa mô tả, đổi hạn, giao việc… kèm giá trị cũ / mới. Dùng để truy vết ai làm gì, khi nào.

Request

Địa chỉ

POST https://partner.quantri360.com/v1/base_wework/extapi/v3/task/logs

Xác thực & gian hàng

TênVị tríKiểuMẫuMô tả
AuthorizationheaderheaderBearer q360_live_ab12cd34_…Khóa API của brand (tạo ở mục API key). Bắt buộc với mọi request. Brand suy từ key — không truyền mã brand.
platform_shop_idquerystringheradgTên kết nối Base Wework (GET /v1/platforms). Có thể bỏ khi chỉ nối một token.
usernamebodystring@nguyenvanaAPI ghi chạy DƯỚI TÊN người dùng Base này (kèm @).

Tham số request

TênVị tríKiểuBắt buộcMẫuMô tả
idbodystringCó13675328Mã việc.

Ví dụ request

curl -s -X POST "https://partner.quantri360.com/v1/base_wework/extapi/v3/task/logs" \
  -H "Authorization: Bearer $KEY" \
  -H "Content-Type: application/json" \
  -d '{"id":"13675328"}'
Python
import requests

KEY = "q360_live_..."  # khóa API của brand
r = requests.post(
    "https://partner.quantri360.com/v1/base_wework/extapi/v3/task/logs",
    params={},
    json={
        "id": "13675328"
    },
    headers={"Authorization": f"Bearer {KEY}"},
    timeout=60,
)
print(r.status_code)
print(r.json())
Node.js
const KEY = 'q360_live_...'; // khóa API của brand
const url = new URL('https://partner.quantri360.com/v1/base_wework/extapi/v3/task/logs');
for (const [k, v] of Object.entries({})) url.searchParams.set(k, typeof v === 'object' ? JSON.stringify(v) : String(v));
const r = await fetch(url, {
  method: 'POST',
  headers: { Authorization: `Bearer ${KEY}`, 'Content-Type': 'application/json' },
  body: JSON.stringify({"id":"13675328"}),
});
console.log(r.status, await r.json());
PHP
<?php
$key = 'q360_live_...'; // khóa API của brand
$url = 'https://partner.quantri360.com/v1/base_wework/extapi/v3/task/logs' . '?' . http_build_query([]);
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Authorization: Bearer ' . $key, 'Content-Type: application/json']);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"id":"13675328"}');
$res = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
echo $status, "\n", $res;

Response

Tham số phản hồi (nguyên của Base Wework)

TênKiểuMẫuMô tả
codeint11 = thành công · 0 = lỗi.
taskobjectViệc được hỏi.
logsobject[]Mới nhất trước.
idstring25309788
usernamestringhoangvaneNgười thực hiện.
sincestring1788428041Thời điểm (Unix giây).
contentstringedited the description of the task <em>…</em>Mô tả sự kiện (HTML, tiếng Anh).
attachmentobject|object[]Chi tiết: vd { action: "item:check" } khi đánh dấu xong; [{ type: "content", value_old, value_new }] khi sửa mô tả.
metatypestringsystem`system` = nhật ký hệ thống.
typestringcomment

Mẫu phản hồi

{
  "code": 1,
  "message": "",
  "data": null,
  "task": {
    "id": "13675328",
    "name": "Làm báo cáo sản xuất T8/2026"
  },
  "logs": [
    {
      "id": "25309788",
      "user_id": "962052",
      "username": "hoangvane",
      "since": "1788428041",
      "title": "",
      "content": "edited the description of the task <em>Làm báo cáo sản xuất T8/2026</em>",
      "stats": {
        "likes": 0,
        "comments": 0
      },
      "reactions": [],
      "attachment": [
        {
          "has_change": 1
        },
        {
          "type": "content",
          "value_old": "<p></p>",
          "value_new": "<p>đã hoàn thành</p>"
        }
      ],
      "attachments": [],
      "type": "comment",
      "metatype": "system"
    },
    {
      "id": "25309718",
      "user_id": "962067",
      "username": "nguyenvana",
      "since": "1788427922",
      "title": "",
      "content": "<icon: checkmark-circle> marked the task as Done",
      "attachment": {
        "action": "item:check"
      },
      "attachments": [],
      "type": "comment",
      "metatype": "system"
    }
  ]
}

Bắt đầu dùng

  1. Đăng ký tài khoản Partner
  2. Mở loại dữ liệu thuộc nhóm Công việc ở trang nền tảng
  3. Tạo API key (tick kênh Base Wework)
  4. Gọi theo ví dụ ở trên