https://www.westmonth.com/openapi/brandAuthorizing/getTplhttps://testing.westmonth.com/openapi/brandAuthorizing/getTpl| 参数名 | 类型 | 必填 | 示例值 | 说明 |
|---|---|---|---|---|
| Authorization | string | 是 | authorization | 身份验证Token |
| Content-Type | string | 是 | application/json | 建议固定传此值 |
| 参数名 | 类型 | 必填 | 默认值 | 可选值 | 说明 |
|---|---|---|---|---|---|
| platform_id | integer | 是 | - | - | 平台ID,可通过获取授权平台列表接口获取 |
| 字段 | 类型 | 说明 |
|---|---|---|
| code | integer | 业务状态码(0表示成功,1=服务错误,2=参数错误,3=授权无效,4=请求上限) |
| msg | string | 错误描述信息 |
| data | array | 业务数据,包含模板类型列表 |
| 字段 | 类型 | 说明 |
|---|---|---|
| template_category | integer | 模板类型ID |
| template_category_name | string | 模板类型名称 |
{
"platform_id":1
}{
"code": 0,
"msg": "",
"data": [
{
"template_category": 1,
"template_category_name": "英文通用模板"
},
{
"template_category": 0,
"template_category_name": "中文通用模板"
}
]
}{
"code": 3,
"msg": "授权无效 authorization timestamp error",
"data": []
}| HTTP status code | 错误码 | 错误信息 | 描述 |
|---|
| 版本 | 日期 | 修改说明 |
|---|---|---|
| v1.0 | 2025-01-01 | 初始版本 |