Question

I have the following TwiML code that needs to be saved in my rails app. I then need to get the public facing url for that xml so that I can input it in the Twilio UI.

<Response>
<Sms>
Thanks for the message. Reply HELP for help.Reply STOP to unsubscribe.Msg&Data rates may apply.
</Sms>
</Response>

So, a SMS message goes out, then the person who received it responds. They should hit a URL that sends the above response back to their phone.

What is the proper way to store that XML (TWimL) in rails? Where should it live, what extension should it have (I assume .xml), and how would I access the public URL for that file?

Was it helpful?

Solution

You could always just use Twimlbin for this.

You can add your code there and it'll spit out a URL for you to add to your code.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top