tasklist/get
POST/extapi/v3/tasklist/getGọi qua 360: POST https://partner.quantri360.com/v1/base_wework/extapi/v3/tasklist/get
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
Thông tin MỘT nhóm việc (tasklist) trong dự án: tên, dự án chứa, người theo dõi, hạn, đếm việc.
- Đã gặp
stats= 0 vàtasksrỗng dù nhóm có việc (theo task/project → tasklist_id). Đếm / liệt kê việc theo nhóm → lọc kết quả task/project theotasklist_id.
Request
Địa chỉ
POST https://partner.quantri360.com/v1/base_wework/extapi/v3/tasklist/get
Xác thực & gian hàng
| Tên | Vị trí | Kiểu | Mẫu | Mô tả |
|---|---|---|---|---|
| Authorization | header | header | Bearer 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_id | query | string | heradg | Tên kết nối Base Wework (GET /v1/platforms). Có thể bỏ khi chỉ nối một token. |
| username | body | string | @nguyenvana | API ghi chạy DƯỚI TÊN người dùng Base này (kèm @). |
Tham số request
| Tên | Vị trí | Kiểu | Bắt buộc | Mẫu | Mô tả |
|---|---|---|---|---|---|
| id | body | string | Có | 473508 | Mã nhóm việc (project → cached_tasklists[].id, hoặc tasklists[].id của project/get.full). |
Ví dụ request
curl -s -X POST "https://partner.quantri360.com/v1/base_wework/extapi/v3/tasklist/get" \
-H "Authorization: Bearer $KEY" \
-H "Content-Type: application/json" \
-d '{"id":"473508"}'
Python
import requests
KEY = "q360_live_..." # khóa API của brand
r = requests.post(
"https://partner.quantri360.com/v1/base_wework/extapi/v3/tasklist/get",
params={},
json={
"id": "473508"
},
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/tasklist/get');
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":"473508"}),
});
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/tasklist/get' . '?' . 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":"473508"}');
$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ên | Kiểu | Mẫu | Mô tả |
|---|---|---|---|
| code | int | 1 | 1 = thành công · 0 = lỗi. |
| tasklist | object | ||
| id | string | 473508 | |
| name | string | Báo cáo | |
| ns_id | string | 229079 | Mã dự án. |
| ns_export | object | Dự án: id, name, path. | |
| followers | string[] | ["nguyenvana"] | |
| stats | object | total, done, failed, active. | |
| has_deadline / deadline | string | 0 | Hạn (Unix giây). |
| order | int | 1 | Thứ tự hiển thị. |
| since | string | 1788427729 | Tạo. |
| tasks | object[] | [] | Việc trong nhóm. |
Mẫu phản hồi
{
"code": 1,
"message": "",
"data": null,
"tasklist": {
"id": "473508",
"name": "Báo cáo",
"content": "",
"type": "project.tasklist",
"followers": [
"nguyenvana"
],
"privacy": "0",
"ns_id": "229079",
"ns_export": {
"id": "229079",
"name": "Đồng phục",
"type": "project",
"path": "dong-phuc-229079"
},
"complete": 0,
"percent": 0,
"stats": {
"total": 0,
"total_display": 0,
"done": 0,
"failed": 0,
"active": 0
},
"order": 1,
"since": "1788427729",
"has_deadline": "0",
"deadline": "0",
"tasks": []
}
}
Bắt đầu dùng
- Đăng ký tài khoản Partner
- Mở loại dữ liệu thuộc nhóm Dự án & nhóm ở trang nền tảng
- Tạo API key (tick kênh Base Wework)
- Gọi theo ví dụ ở trên