Adding SMS provider aside from Twilio

Greetings!

I subscribed to Pro but unfortunately the default SMS notification is not covered for my country.
I want to use a local SMS API provider since it is cheap.
I tried looking on how to do the integration but I have not found a topic that directly guides through it.

So far I have the
1.) HTTP url
2.) API key
3.) Parameters set by SMS API provider

Hoping someone with the experience help me walkthrough the process.

Thank you.

0 8 1,025
8 REPLIES 8

Hi, now you need to use the Webhook action in a workflow rule to post to that HTTP url with the API key and parameters.

Please see https://help.appsheet.com/behavior#workflow-invoking-cloud-services

I canโ€™t seem to make it work.
https://itexmo.com/Developers/apidocs.php

They said it that not JSON and I have to post Parameters.

@GeneralSurgery_VSMMC
You API ref accepts the parameters in the endpoint URL directly as POST parameters. Also you need to explicitly specify the Content-type parameter in the HTTP Headers. According to your API documentation, your Content-type shall be application/x-www-form-urlencoded.

@GeneralSurgery_VSMMC
According to the API document you have provided, your endpoint URL should be like this, which contains the POST parameters:
https://www.itexmo.com/php_api/api.php?{โ€œ1โ€: โ€œPhoneNumberHereโ€, โ€œ2โ€: โ€œSample Text Messageโ€, โ€œ3โ€: โ€œYourAPIKeyโ€}

You can construct this endpoint URL with POST params like this in AppSheet, but Iโ€™m not so sure if this syntax works with the endpoint URL field for a webhook workflow. @praveen can you verify?

<<CONCATENATE("https://www.itexmo.com/php_api/api.php?{'1': '",[PhoneNumberColumnName],"', '2': '",[YourTextMessage],"', '3': 'YourAPIKey'}")>>

@GeneralSurgery_VSMMC
You need to create a script, publish that script as a webapp and use its URL with a webhook workflow

Hi Levent, why does this need appscript at all? wouldnโ€™t a webhook work directly?

Hi @praveen
After I have post the reply I read that he is subscribed to Pro plan. So webhook workflow will suffice as you had already well explained. Sorry for the confusion.

Yes, I think that constructs the url. You will need to url_encode the string but we have a function for that. The challenge from a quick look at the API docs is that it is expecting a different mime type. We will post it as text or json or โ€ฆ but it expects a multipart-form.

Top Labels in this Space