POST api/Chat/PostMsg
Request Information
URI Parameters
None.
Body Parameters
Collection of postMsg| Name | Description | Type | Additional information |
|---|---|---|---|
| sessionid | string |
None. |
|
| lastmsgid | string |
None. |
|
| client | string |
None. |
|
| from | string |
None. |
|
| text | string |
None. |
|
| attachment | string |
None. |
|
| agent | agent |
None. |
Request Formats
application/json, text/json
Sample:
[
{
"sessionid": "sample string 1",
"lastmsgid": "sample string 2",
"client": "sample string 3",
"from": "sample string 4",
"text": "sample string 5",
"attachment": "sample string 6",
"agent": {
"id": "sample string 1",
"name": "sample string 2",
"replying": "sample string 3",
"viewing": "sample string 4",
"phoneNo": "sample string 5",
"micc": true,
"appId": "sample string 7"
}
},
{
"sessionid": "sample string 1",
"lastmsgid": "sample string 2",
"client": "sample string 3",
"from": "sample string 4",
"text": "sample string 5",
"attachment": "sample string 6",
"agent": {
"id": "sample string 1",
"name": "sample string 2",
"replying": "sample string 3",
"viewing": "sample string 4",
"phoneNo": "sample string 5",
"micc": true,
"appId": "sample string 7"
}
}
]
application/xml, text/xml
Sample:
<ArrayOfjsonObj.postMsg xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PageOneSmsApi">
<jsonObj.postMsg>
<agent>
<appId>sample string 7</appId>
<id>sample string 1</id>
<micc>true</micc>
<name>sample string 2</name>
<phoneNo>sample string 5</phoneNo>
<replying>sample string 3</replying>
<viewing>sample string 4</viewing>
</agent>
<attachment>sample string 6</attachment>
<client>sample string 3</client>
<from>sample string 4</from>
<lastmsgid>sample string 2</lastmsgid>
<sessionid>sample string 1</sessionid>
<text>sample string 5</text>
</jsonObj.postMsg>
<jsonObj.postMsg>
<agent>
<appId>sample string 7</appId>
<id>sample string 1</id>
<micc>true</micc>
<name>sample string 2</name>
<phoneNo>sample string 5</phoneNo>
<replying>sample string 3</replying>
<viewing>sample string 4</viewing>
</agent>
<attachment>sample string 6</attachment>
<client>sample string 3</client>
<from>sample string 4</from>
<lastmsgid>sample string 2</lastmsgid>
<sessionid>sample string 1</sessionid>
<text>sample string 5</text>
</jsonObj.postMsg>
</ArrayOfjsonObj.postMsg>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |