# 说明

获取成员活动日志

# url

https://api.tapd.cn/workspaces/member_activity_log

# 支持格式

JSON/XML(默认JSON格式)

# HTTP请求方式

GET/POST

# 请求参数

字段名 必选 类型及范围 说明 特殊规则
workspace_id integer 项目 id 为公司id则查询所有项目
company_only integer 为1则仅返回公司级活动日志 要求workspace_id=公司id & company_only=1
limit integer 设置返回数量限制,默认为20
page integer 返回当前数量限制下第N页的数据,默认为1(第一页)
start_time string 起始时间,精确到分钟,格式为Y-m-d H:i 只能查最近半年内的数据
end_time string 终止时间,精确到分钟,格式为Y-m-d H:i 只能查最近半年内的数据
operator string 操作人昵称
operate_type string 操作类型,默认为所有,可以填写add,delete,download,upload中的一个
operator_object string 操作对象,默认为所有,可以填写attachment,board,bug,document,iteration,launch,member_activity_log,release,story,task,tcase,testplan,wiki中的一个
ip string 请求IP条件,严格匹配

# 调用示例及返回结果

# 获取项目成员列表

# curl 使用 Basic Auth 鉴权调用示例

curl -u 'api_user:api_password' 'https://api.tapd.cn/workspaces/member_activity_log?workspace_id=10158231'

# 返回结果

{  
    "status":1,
    "data":{
        "perPage":"1",
        "totalItems":1009,
        "currentPage":"2",
        "records":[
            {
                "id":"7480633",
                "action":"\/iteration\/create",
                "created":"2023-10-31 16:22:44",
                "creator":"\u554a\u554a\u554a",
                "project_name":"\u897f\u95e8\u5b50\u704c\u704c\u704c\u4e50\u4e86\u8def\u864e\u9000\u8d27",
                "operate_type":"\u65b0\u589e",
                "operate_object":"\u8fed\u4ee3",
                "title":"batch_create_998",
                "url":"10074561\/prong\/iterations\/card_view\/1110074561001024855",
                "ip":"1.1.1.1",
                "ua":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/117.0.0.0 Safari\/537.36"
            }
        ],
        "operate_types":{"add":"\u65b0\u589e","delete":"\u5220\u9664","upload":"\u4e0a\u4f20","download":"\u4e0b\u8f7d"},
        "operate_objects":{"board":"\u770b\u677f","story":"\u9700\u6c42","bug":"\u7f3a\u9677","iteration":"\u8fed\u4ee3","wiki":"wiki","document":"\u6587\u6863","attachment":"\u9644\u4ef6","task":"\u4efb\u52a1","tcase":"\u6d4b\u8bd5\u7528\u4f8b","testplan":"\u6d4b\u8bd5\u8ba1\u5212","launch":"\u53d1\u5e03\u8bc4\u5ba1","release":"\u53d1\u5e03\u8ba1\u5212","member_activity_log":"\u6210\u5458\u6d3b\u52a8\u65e5\u5fd7"}
    },
    "info":"success"
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
上次更新: 2023-11-29 15:34:19