POST api/message/send

Request Information

URI Parameters

None.

Body Parameters

WhatsappSendMessage
NameDescriptionTypeAdditional information
ClientId

integer

None.

Text

string

None.

Attachment

string

None.

Pdf

string

None.

Request Formats

application/json, text/json

Sample:
{
  "ClientId": 1,
  "Text": "sample string 2",
  "Attachment": "sample string 3",
  "Pdf": "sample string 4"
}

text/html

Sample:
{"ClientId":1,"Text":"sample string 2","Attachment":"sample string 3","Pdf":"sample string 4"}

application/xml, text/xml

Sample:
<WhatsappSendMessage xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FoneClube.Business.Commons.Entities.FoneClube.message">
  <Attachment>sample string 3</Attachment>
  <ClientId>1</ClientId>
  <Pdf>sample string 4</Pdf>
  <Text>sample string 2</Text>
</WhatsappSendMessage>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, text/html, application/xml, text/xml

Sample:

Sample not available.