POST api/whatsapp/send/generic
Request Information
URI Parameters
None.
Body Parameters
GenericTemplateName | Description | Type | Additional information |
---|---|---|---|
PersonId | integer |
None. |
|
TypeId | integer |
None. |
|
PhoneNumbers | string |
None. |
|
Invitee | string |
None. |
|
Template | WhatsAppMessageTemplates |
None. |
Request Formats
application/json, text/json
Sample:
{ "PersonId": 1, "TypeId": 2, "PhoneNumbers": "sample string 3", "Invitee": "sample string 4", "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:
{"PersonId":1,"TypeId":2,"PhoneNumbers":"sample string 3","Invitee":"sample string 4","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:
<GenericTemplate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FoneClube.DataAccess"> <Invitee>sample string 4</Invitee> <PersonId>1</PersonId> <PhoneNumbers>sample string 3</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> <TypeId>2</TypeId> </GenericTemplate>
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>