POST api/Whatsapp/PostWhatsappMessage
Request Information
URI Parameters
None.
Body Parameters
PostMessageRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| message | string |
None. |
|
| imageurl | string |
None. |
|
| documenturl | string |
None. |
|
| direction | integer |
None. |
|
| message_type | string |
None. |
|
| phone | string |
None. |
|
| sender_name | string |
None. |
|
| userid | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"message": "sample string 1",
"imageurl": "sample string 2",
"documenturl": "sample string 3",
"direction": 4,
"message_type": "sample string 5",
"phone": "sample string 6",
"sender_name": "sample string 7",
"userid": "sample string 8"
}
application/xml, text/xml
Sample:
<WhatsappMessageDef.PostMessageRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WEBAPI.Model"> <direction>4</direction> <documenturl>sample string 3</documenturl> <imageurl>sample string 2</imageurl> <message>sample string 1</message> <message_type>sample string 5</message_type> <phone>sample string 6</phone> <sender_name>sample string 7</sender_name> <userid>sample string 8</userid> </WhatsappMessageDef.PostMessageRequest>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
PostMessageResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| status | string |
None. |
|
| errormessage | string |
None. |
|
| talepid | string |
None. |
|
| customerid | string |
None. |
|
| isnewtalep | boolean |
None. |
|
| isnewcustomer | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{
"status": "sample string 1",
"errormessage": "sample string 2",
"talepid": "sample string 3",
"customerid": "sample string 4",
"isnewtalep": true,
"isnewcustomer": true
}
application/xml, text/xml
Sample:
<WhatsappMessageDef.PostMessageResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WEBAPI.Model"> <customerid>sample string 4</customerid> <errormessage>sample string 2</errormessage> <isnewcustomer>true</isnewcustomer> <isnewtalep>true</isnewtalep> <status>sample string 1</status> <talepid>sample string 3</talepid> </WhatsappMessageDef.PostMessageResponse>