POST api/msg/bind

账号与设备绑定和解绑【需登录】

默认返回json数据,若要返回xml格式数据在访问地址后加上xml=true

Request 信息

URI 参数

None.

Body 参数

参数

DeviceBindModel
名称说明数据类型附加信息
CustId

CustId

integer

Required

Cid

设备唯一id

string

Required

Version

设备版本号

string

Required

Platform

设备平台

string

Required

IsUnbind

是否解绑

boolean

None.

City

城市

string

Required

Token

token

string

Required

Request 数据格式

application/json, text/json

示例:
{
  "CustId": 1,
  "Cid": "sample string 2",
  "Version": "sample string 3",
  "Platform": "sample string 4",
  "IsUnbind": true,
  "City": "sample string 6",
  "Token": "sample string 7"
}

application/xml, text/xml

示例:
<DeviceBindModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.Msg">
  <Platform i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/API.Models.API" />
  <Token xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 7</Token>
  <City xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 6</City>
  <Cid>sample string 2</Cid>
  <CustId>1</CustId>
  <IsUnbind>true</IsUnbind>
  <Platform>sample string 4</Platform>
  <Version>sample string 3</Version>
</DeviceBindModel>

application/x-www-form-urlencoded

示例:

Response 信息

输出返回说明

结果

DeviceBindResult
名称说明数据类型附加信息
ErrorCode

API错误码

APIErrorCode

None.

Msg

附带消息

string

None.

Response 返回数据格式

application/json, text/json

示例:
{
  "ErrorCode": 0,
  "Msg": "sample string 1"
}

application/xml, text/xml

示例:
<DeviceBindResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.Msg">
  <ErrorCode xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">SUCCESS</ErrorCode>
  <Msg xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 1</Msg>
</DeviceBindResult>