Bulks SMS from JSON with Twilio Function

maxmito
maxmito ✭✭✭
edited May 21 in Functions

Hello,
I'm blocked for sometime now, my Typescript skills are limited looks like..
I have this scenario that while running a Twilio Studio, I'm calling a Functions that gives back a Json containing a list of phone numbers {"1":"11111111","2":"22222222...}

I know need to take this numbers and send an SMS to each of them (it's for an alarm service) and all my attempt so far failed... I guess it's something about async / await and promise, not my strength..

My first idea was to launch an (already working) Google AppScript that does the SMS sending to the numbers in a Google Sheet, but the authentication part is were I'm stuck at, and I'm not able to launch it from Twilio Studio.

Any idea would be helpful!

Thanks

Comments

  • maxmito
    maxmito ✭✭✭

    Solution was easier than I thought... I just deployed the Google Apps Script as Web App and invoking it from Twilio Studio with a POST call (HTTP Request Widget).

If this is an emergency, please contact Twilio Support. This is not an official Support channel. https://support.twilio.com/
Have an urgent question?
Please contact Twilio Support. This is not an official Support channel.
Contact Support