POST api/Trailer/UnBindOpenId?type={type}
解绑微信
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| type |
账号类型 1.司机端 2.综合端 3.客户端 |
integer |
Required |
Body Parameters
请求微信接口获取openid的参数
Jscode2SessionParams| Name | Description | Type | Additional information |
|---|---|---|---|
| AppId |
appid |
string |
None. |
| Secret |
secret |
string |
None. |
| JsCode |
jscode |
string |
None. |
| GrantType |
granttype:固定值[authorization_code],不需要传递 |
string |
None. |
Request Formats
application/json, text/json
Sample:
{
"AppId": "sample string 1",
"Secret": "sample string 2",
"JsCode": "sample string 3",
"GrantType": "authorization_code"
}
application/xml, text/xml
Sample:
<Jscode2SessionParams xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CMS.Domain.Dto"> <AppId>sample string 1</AppId> <JsCode>sample string 3</JsCode> <Secret>sample string 2</Secret> </Jscode2SessionParams>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
InfoResult| Name | Description | Type | Additional information |
|---|---|---|---|
| Data | Object |
None. |
|
| IsSuccess |
是否成功:true:成功,false:失败 |
boolean |
None. |
| Msg |
返回消息 |
string |
None. |
| Extra |
特定信息 |
string |
None. |
| Code |
内部代码:[成功 000000|失败 000001|未登陆/未授权 000002] |
string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Data": {},
"IsSuccess": true,
"Msg": "sample string 3",
"Extra": "sample string 4",
"Code": "sample string 5"
}
application/xml, text/xml
Sample:
<InfoResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CMS.Core.ShareData"> <Code>sample string 5</Code> <Extra>sample string 4</Extra> <IsSuccess>true</IsSuccess> <Msg>sample string 3</Msg> <Data /> </InfoResult>