获取勋章列表
GET
https://open.feishu.cn/open-apis/admin/v1/badges
错误码
HTTP状态码 | 错误码 | 描述 | 排查建议 |
---|---|---|---|
500 | 1051000 | unknown server error | 服务内部错误,请稍后重试 |
400 | 1051001 | request contain invalid param | 请求中包含非法参数 |
403 | 1051002 | request to exceed authority | 请求发生越权 |
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://open.feishu.cn/open-apis/admin/v1/badges?page_size=&page_token=&name=' \
--header 'Authorization;'
响应示例响应示例
{
"code": 0,
"msg": "success",
"data": {
"badges": [
{
"id": "m_MzfKDM",
"name": "激励勋章",
"explanation": "这枚勋章为了激励员工颁发。",
"detail_image": "75a1949f-d9df-4b46-bc88-dacc51e88f3j",
"show_image": "03daa74a-159f-49e9-963e-b6c4d76103fj",
"i18n_name": {
"zh_cn": "激励勋章",
"en_us": "Incentive Medal",
"ja_jp": "奨励メダル"
},
"i18n_explanation": {
"zh_cn": "激励勋章",
"en_us": "Incentive Medal",
"ja_jp": "奨励メダル"
}
}
],
"page_token": "h121921",
"has_more": false
}
}
请求参数
Query 参数
page_size
integer
必需
page_token
string
可选
name
string
可选
Header 参数
Authorization
string
必需
默认值:
Bearer {{access_token}}
Content-Type
string
必需
默认值:
application/json; charset=utf-8
返回响应
修改于 2023-02-03 09:56:25