「example.com/firstsms」というページを設定して、Twilio 経由で SMS を送信し、ホームページにリダイレクトします。その後、電話を使用してメッセージに返信する場合は、確認を返信したいと思います。今のところ、何も起こりません。
urls.py には次のものがあります。
(r'^hellomonkey/$', 'crusher.views.HelloMonkey'),
views.py で、Flask の例を適応させようとしました:
def HelloMonkey(request):
"""Respond to incoming calls with a simple text message."""
resp = twilio.twiml.Response()
resp.sms("Hello, Mobile Monkey")
return HttpResponseRedirect(str(resp), content_type="text/plain")
私の頭を悩ませます!ありがとう