跳到主要内容
版本:v2.0

获取照片标签

查询相册照片标签列表,可用于 获取营期照片 的 tag_id 筛选。

POST/api/getCoursePicTagList

请求参数​

名称类型描述是否必填默认值备注
tokenString身份校验令牌必填-由 获取访问令牌 获得
nameString标签名称非必填-模糊筛选

CURL​

V1​

curl --location --request POST 'https://open.xinduobang.cn/api/getCoursePicTagList' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'token=YOUR_TOKEN' \
--data-urlencode 'name='

V2(appid 为 V2 版本)​

curl --location --request POST 'https://open.xinduobang.cn/api/getCoursePicTagList' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'X-Timestamp: 1770000000' \
--header 'X-Nonce: 3f9c1a7b2e6d4058' \
--header 'X-Signature: <computed_hmac_sha256>' \
--data-urlencode 'token=YOUR_TOKEN' \
--data-urlencode 'name='

成功响应​

{
"code": 0,
"msg": "操作成功",
"data": [
{
"id": 1,
"name": "标签1"
},
{
"id": 2,
"name": "标签2"
}
]
}
字段类型说明
idNumber标签 ID
nameString标签名称

失败响应​

HTTP状态码错误码描述排查建议
200非 0业务错误请检查 token

相关接口​