POST api/IM/GetMessageCount

Request Information

URI Parameters

None.

Body Parameters

GetMessageCount_Par
NameDescriptionTypeAdditional information
To_Account

string

None.

Peer_Account

Collection of string

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:
{
  "To_Account": "sample string 1",
  "Peer_Account": [
    "sample string 1",
    "sample string 2"
  ],
  "Token": "sample string 2",
  "OpenId": "sample string 3",
  "UserId": "sample string 4",
  "OpenMobile": "sample string 5",
  "Keyword": "sample string 6",
  "AreaName": "sample string 7",
  "EnvVersion": "sample string 8"
}

application/xml, text/xml

Sample:
<GetMessageCount_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 7</AreaName>
  <EnvVersion xmlns="http://schemas.datacontract.org/2004/07/BPMS.OpenApi.Model.ManageBase">sample string 8</EnvVersion>
  <Keyword xmlns="http://schemas.datacontract.org/2004/07/BPMS.OpenApi.Model.ManageBase">sample string 6</Keyword>
  <OpenId xmlns="http://schemas.datacontract.org/2004/07/BPMS.OpenApi.Model.ManageBase">sample string 3</OpenId>
  <OpenMobile xmlns="http://schemas.datacontract.org/2004/07/BPMS.OpenApi.Model.ManageBase">sample string 5</OpenMobile>
  <Token xmlns="http://schemas.datacontract.org/2004/07/BPMS.OpenApi.Model.ManageBase">sample string 2</Token>
  <UserId xmlns="http://schemas.datacontract.org/2004/07/BPMS.OpenApi.Model.ManageBase">sample string 4</UserId>
  <Peer_Account xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </Peer_Account>
  <To_Account>sample string 1</To_Account>
</GetMessageCount_Par>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'GetMessageCount_Par'.

Response Information

Resource Description

ApiResult
NameDescriptionTypeAdditional 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>