I am trying to respond to incoming sms messages with Apps Script through Twilio
. I have done all the steps exactly as in the video below.
https://youtu.be/j0wjM1Ds3lc
I currently have a doGet function to handle incoming sms messages. In my Twilio number settings under messaging I have set the incoming messages with a GET webhook to the published apps script url.
When I send a sms message to my Twilio number, I can see the message was received in the Twilio logs but nothing happens in the apps script.
The apps script is published as 'anyone even anonymous' can execute. In the apps script logs I can see that the script is not being executed.
I have sms capabilities on Twilio number.
Any help would be greatly appreciated. I apologize if this is something simple I missed.
function doGet(e) {
var incoming = e.paramater.Body;
var translated = LanguageApp.translate(incoming, "en", "es")
var output = ContentService.createTextOutput(translated).setMimeType(ContentService.MimeType.TEXT);
return output
}
I expect to receive the translated message sent back to my number but currently the apps script is not being executed at all by Twilio.