POST api/whatsapp/send/message

Request Information

URI Parameters

None.

Body Parameters

SendMessageChatXRequest
NameDescriptionTypeAdditional information
PhoneNumbers

string

None.

Message

string

None.

Request Formats

application/json, text/json

Sample:
{
  "PhoneNumbers": "sample string 1",
  "Message": "sample string 2"
}

text/html

Sample:
{"PhoneNumbers":"sample string 1","Message":"sample string 2"}

application/xml, text/xml

Sample:
<SendMessageChatXRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FoneClube.DataAccess">
  <Message>sample string 2</Message>
  <PhoneNumbers>sample string 1</PhoneNumbers>
</SendMessageChatXRequest>

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 'SendMessageChatXRequest'.

Response Information

Resource Description

Collection of SendMessageChatXResponse
NameDescriptionTypeAdditional information
PhoneNumber

string

None.

Response

ChatXResponse

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "PhoneNumber": "sample string 1",
    "Response": {
      "status": "sample string 1",
      "msg": "sample string 2",
      "messageSentId": "sample string 3"
    }
  },
  {
    "PhoneNumber": "sample string 1",
    "Response": {
      "status": "sample string 1",
      "msg": "sample string 2",
      "messageSentId": "sample string 3"
    }
  }
]

text/html

Sample:
[{"PhoneNumber":"sample string 1","Response":{"status":"sample string 1","msg":"sample string 2","messageSentId":"sample string 3"}},{"PhoneNumber":"sample string 1","Response":{"status":"sample string 1","msg":"sample string 2","messageSentId":"sample string 3"}}]

application/xml, text/xml

Sample:
<ArrayOfSendMessageChatXResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FoneClube.DataAccess">
  <SendMessageChatXResponse>
    <PhoneNumber>sample string 1</PhoneNumber>
    <Response>
      <messageSentId>sample string 3</messageSentId>
      <msg>sample string 2</msg>
      <status>sample string 1</status>
    </Response>
  </SendMessageChatXResponse>
  <SendMessageChatXResponse>
    <PhoneNumber>sample string 1</PhoneNumber>
    <Response>
      <messageSentId>sample string 3</messageSentId>
      <msg>sample string 2</msg>
      <status>sample string 1</status>
    </Response>
  </SendMessageChatXResponse>
</ArrayOfSendMessageChatXResponse>