标签设置
功能说明:通过该接口绑定/解绑/删除标签。
请求url:https://cosmos-push-api.immomo.com/push/open/tag/set
body参数:json格式
| 字段 | 类型 | 必传 | 说明 |
|---|---|---|---|
| opType | int | 是 | 1:绑定,0:解绑,2:删除(不需要传targets和pushType) |
| targets | string | 否 | alias值或token值 |
| pushType | string | 否 | target类型:ALIAS / TOKEN |
| tags | string | 是 | 标签 |
body数据示例: {"targets":["11213123","2233434"],"pushType":"ALIAS","opType":1,"tags":["足球 ","篮球"]}
返回值:
{
"ec":0,
"em":"操作成功"
}