Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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:

image-20240722-152524.pngImage Added

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.

...