1. 更新设备token接口
接口名称 | 更新设备token |
---|---|
功能描述 | 更新设备token |
请求地址 | http://qy-ci.fdccloud.com/api/wzs/update-device-token?access_token=@access_token |
请求方式 | POST(HTTPS) |
请求包结构
{
"device_id": "@device_id",
"device_token": "@device_token",
"platform": "@platform ",
"version_name": "3.1.5",
"device_name": "iPhone4s ",
"model": "iPhone10,1",
"brand": "huawei",
"os_version": "7.0.1 ",
"push_channel": 1,
"__language__":"zh-CN"
}
参数说明
参数 | 中文名 | 参数类型 | 说明 |
---|---|---|---|
push_channel | 推送渠道 | int | 1:apns推送,2:小米推送,3:华为推送,4:OPPO,5:VIVO 客户端如果没有传这个值android默认为2,ios默认为1,兼容老版本 |
model | 设备型号 | String | 设备型号 |
brand | 设备品牌 | String | 设备厂商 |
消息推送token | 消息推送token | String | 推送token |
返回结果
{
"success": 1,
"data": {
"code": 1,
"message": "ok"
}
}
参数 | 类型 | 描述 |
---|---|---|
code | number | 逻辑错误码1-表示成功 |
message | string | 提示信息 |
success | number | 1-成功;0-失败 |