Sms api integration

can some one help me send sms via api from a form. i am stuck. screen shots will be very helpfull

this is example code they provided for using api.

POST /v1/messages HTTP/1.1
Host: api.messagemedia.com
Accept: application/json
Content-Type: application/json
Date: Sat, 30 Jul 2016 05:18:52 GMT
Authorization: hmac username="uCXUdoogNfCsehEClbO2", algorithm="hmac-sha1", headers="Date Content-MD5 request-line", signature="Ia4G5lkhH/3NDYpix+8ZHUnp6bA="
Content-MD5: 5407644fa83bec240dede971307e0cad
Content-Length: 133
{
  "messages": [
    {
      "content": "Hello World",
      "destination_number": "+61491570156",
      "format": "SMS"
    }
  ]
}

Hi @Elyas_Naimzada,
Welcome to the Wappler community!

A small adjustment (api endpoint and content structure) to the solution on this post should get you started:

Hi there

i tried but unsuccessful. i get this error.

You need to match the header and content to the api requirements.

It looks like you might have the header bit done (Authorization) but the message content should be shown as ‘input data’ on the API Schema Editor.


Have you set up ‘messages’ as a Global to receive $_POST input?

If so, you then need to map it to the API Action in Input Data:


in your case it should be messages rather than to & content.