POST api/whatsapp/send/welcome
Request Information
URI Parameters
None.
Body Parameters
WelcomeTemplateName | Description | Type | Additional information |
---|---|---|---|
Name | string |
None. |
|
PhoneNumbers | string |
None. |
|
Template | WhatsAppMessageTemplates |
None. |
Request Formats
application/json, text/json
Sample:
{ "Name": "sample string 1", "PhoneNumbers": "sample string 2", "Template": { "Id": 1, "Trigger": [ "sample string 1", "sample string 2" ], "Comment": "sample string 1", "Title": "sample string 2", "Footer": "sample string 3", "Buttons": "sample string 4", "MessageType": "sample string 5", "CallBackAction": "sample string 6", "Selected": true, "CommentTemp": "sample string 8", "TemplateName": "sample string 9", "Internal": true, "Urls": "sample string 11", "ListButton": "sample string 12", "ListSections": "sample string 13", "ListSectionRows": "sample string 14" } }
text/html
Sample:
{"Name":"sample string 1","PhoneNumbers":"sample string 2","Template":{"Id":1,"Trigger":["sample string 1","sample string 2"],"Comment":"sample string 1","Title":"sample string 2","Footer":"sample string 3","Buttons":"sample string 4","MessageType":"sample string 5","CallBackAction":"sample string 6","Selected":true,"CommentTemp":"sample string 8","TemplateName":"sample string 9","Internal":true,"Urls":"sample string 11","ListButton":"sample string 12","ListSections":"sample string 13","ListSectionRows":"sample string 14"}}
application/xml, text/xml
Sample:
<WelcomeTemplate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FoneClube.DataAccess"> <Name>sample string 1</Name> <PhoneNumbers>sample string 2</PhoneNumbers> <Template xmlns:d2p1="http://schemas.datacontract.org/2004/07/FoneClube.Business.Commons.Entities.FoneClube"> <d2p1:Buttons>sample string 4</d2p1:Buttons> <d2p1:CallBackAction>sample string 6</d2p1:CallBackAction> <d2p1:Comment>sample string 1</d2p1:Comment> <d2p1:CommentTemp>sample string 8</d2p1:CommentTemp> <d2p1:Footer>sample string 3</d2p1:Footer> <d2p1:Id>1</d2p1:Id> <d2p1:Internal>true</d2p1:Internal> <d2p1:ListButton>sample string 12</d2p1:ListButton> <d2p1:ListSectionRows>sample string 14</d2p1:ListSectionRows> <d2p1:ListSections>sample string 13</d2p1:ListSections> <d2p1:MessageType>sample string 5</d2p1:MessageType> <d2p1:Selected>true</d2p1:Selected> <d2p1:TemplateName>sample string 9</d2p1:TemplateName> <d2p1:Title>sample string 2</d2p1:Title> <d2p1:Trigger xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d3p1:string>sample string 1</d3p1:string> <d3p1:string>sample string 2</d3p1:string> </d2p1:Trigger> <d2p1:Urls>sample string 11</d2p1:Urls> </Template> </WelcomeTemplate>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
stringResponse Formats
application/json, text/json, text/html
Sample:
"sample string 1"
application/xml, text/xml
Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>