POST api/Credit/SendMessage
Request Information
URI Parameters
None.
Body Parameters
SendMessage_ParName | Description | Type | Additional information |
---|---|---|---|
SyncOtherMachine | integer |
None. |
|
From_Account | string |
None. |
|
From_RealName | string |
None. |
|
To_Account | string |
None. |
|
MsgRandom | integer |
None. |
|
MsgBody | Collection of MsgBodyClass |
None. |
|
Token | string |
None. |
|
OpenId | string |
None. |
|
UserId | string |
None. |
|
OpenMobile | string |
None. |
|
Keyword | string |
None. |
|
AreaName | string |
None. |
|
EnvVersion | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "SyncOtherMachine": 1, "From_Account": "sample string 2", "From_RealName": "sample string 3", "To_Account": "sample string 4", "MsgRandom": 5, "MsgBody": [ { "MsgType": "sample string 1", "MsgContent": { "Text": "sample string 1" } }, { "MsgType": "sample string 1", "MsgContent": { "Text": "sample string 1" } } ], "Token": "sample string 6", "OpenId": "sample string 7", "UserId": "sample string 8", "OpenMobile": "sample string 9", "Keyword": "sample string 10", "AreaName": "sample string 11", "EnvVersion": "sample string 12" }
application/xml, text/xml
Sample:
<SendMessage_Par xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BPMS.OpenApi.Model.IM.ParameterModel"> <AreaName xmlns="http://schemas.datacontract.org/2004/07/BPMS.OpenApi.Model.ManageBase">sample string 11</AreaName> <EnvVersion xmlns="http://schemas.datacontract.org/2004/07/BPMS.OpenApi.Model.ManageBase">sample string 12</EnvVersion> <Keyword xmlns="http://schemas.datacontract.org/2004/07/BPMS.OpenApi.Model.ManageBase">sample string 10</Keyword> <OpenId xmlns="http://schemas.datacontract.org/2004/07/BPMS.OpenApi.Model.ManageBase">sample string 7</OpenId> <OpenMobile xmlns="http://schemas.datacontract.org/2004/07/BPMS.OpenApi.Model.ManageBase">sample string 9</OpenMobile> <Token xmlns="http://schemas.datacontract.org/2004/07/BPMS.OpenApi.Model.ManageBase">sample string 6</Token> <UserId xmlns="http://schemas.datacontract.org/2004/07/BPMS.OpenApi.Model.ManageBase">sample string 8</UserId> <From_Account>sample string 2</From_Account> <From_RealName>sample string 3</From_RealName> <MsgBody> <MsgBodyClass> <MsgContent> <Text>sample string 1</Text> </MsgContent> <MsgType>sample string 1</MsgType> </MsgBodyClass> <MsgBodyClass> <MsgContent> <Text>sample string 1</Text> </MsgContent> <MsgType>sample string 1</MsgType> </MsgBodyClass> </MsgBody> <MsgRandom>5</MsgRandom> <SyncOtherMachine>1</SyncOtherMachine> <To_Account>sample string 4</To_Account> </SendMessage_Par>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
ApiResultName | Description | Type | Additional information |
---|---|---|---|
code | integer |
None. |
|
msg | string |
None. |
|
errMsg | string |
None. |
|
data | Object |
None. |
Response Formats
application/json, text/json
Sample:
{ "code": 1, "msg": "sample string 2", "errMsg": "sample string 3", "data": {} }
application/xml, text/xml
Sample:
<ApiResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BPMS.OpenApi.Model.ManageBase"> <code>1</code> <data /> <errMsg>sample string 3</errMsg> <msg>sample string 2</msg> </ApiResult>