...
Code Block |
---|
{ "project": "{{projectID}}", "msg": "Hi, I'm a test", "channel": "{{channel}}", "to": "{{to}}", "from": "{{from}}" } |
Exampel to send whatsapp message with quick replies (previously, you need to start the conversation):
Code Block |
---|
{
"project": "{{project}}",
"msg": "More info: https://developers.facebook.com/docs/whatsapp/cloud-api/messages/interactive-reply-buttons-messages/",
"channel": "whatsapp",
"to": "{{phone}}",
"lang": "en",
"msgType": "quick-replies",
"extraParams": {
"header": {
"type": "text",
"text": "You can remove this. This is a mega title"
},
"action": {
"buttons": [
{
"type": "reply",
"reply": {
"id": "sad",
"title": "Sad"
}
},
{
"type": "reply",
"reply": {
"id": "happy",
"title": "Fine"
}
}
]
},
"footer": "You can remove this if you are not using it."
}
} |
the client will see:
This is an example to send an image:
Code Block |
---|
{
"project": "TEST-FB",
"msgType": "image",
"msg": "https://www.psi.or.tz/images/logo_psi.png",
"channel": "facebook",
"to": "{{fb-psid}}",
} |
⚠️ Before starting to use this service in a project, you need to communicate with the service admin to update the configuration.
...