获取用户的OKR列表
GET
/open-apis/okr/v1/users/{user_id}/okrs
自建应用商店应用
使用tenant_access_token需要额外申请权限
以应用身份访问OKR信息
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://open.feishu.cn/open-apis/okr/v1/users/ou-asdasdasdasdasd/okrs?user_id_type=user_id&offset=0&limit=5&lang=zh_cn' \
--header 'Authorization;'
响应示例响应示例
{
"code": 0,
"msg": "success",
"data": {
"total": 5,
"okr_list": [
{
"id": "11123123123123",
"permission": 0,
"period_id": "11123123123123",
"name": "My OKR",
"objective_list": [
{
"id": "1231231231231",
"permission": 0,
"content": "Objective 内容",
"progress_report": "Objective 进度记录内容",
"score": 100,
"weight": 33.33,
"progress_rate": {
"percent": 50,
"status": "1"
},
"kr_list": [
{
"id": "1231231223",
"content": "KeyResult 内容",
"score": 100,
"weight": 100,
"kr_weight": 33.33,
"progress_rate": {
"percent": 50,
"status": "1"
}
}
],
"aligned_objective_list": [
{
"id": "1231231231213",
"okr_id": "12323231231213",
"owner": {
"open_id": "od-asd2dasdasd",
"user_id": "ou-ux987dsf6x"
}
}
],
"aligning_objective_list": [
{
"id": "1231231231213",
"okr_id": "12323231231213",
"owner": {
"open_id": "od-asd2dasdasd",
"user_id": "ou-ux987dsf6x"
}
}
]
}
]
}
]
}
}
请求参数
Path 参数
user_id
必需
示例值:
ou-asdasdasdasdasd
Query 参数
user_id_type
必需
示例值:
user_id
offset
必需
示例值:
0
limit
必需
请求列表的长度,0<limit<=10,请求query中 示例值:"0"="" <="" md-td=""></limit<=10,请求query中>
示例值:
5
lang
必需
示例值:
zh_cn
period_ids
array[string]
可选
Header 参数
Authorization
string
必需
默认值:
Bearer {{access_token}}
返回响应
修改于 2022-02-14 07:52:32