Closed JezebellaJess closed 3 months ago
from twilio.rest import Client from flask import Flask, request, redirect from twilio.twiml.messaging_response import MessagingResponse
app = Flask(name)
@app.route("/webhook", methods=['POST']) def webhook(): body = request.values.get('Body', None)
resp = MessagingResponse()
resp.message("You said: {}".format(body))
return str(resp)
if name == "main": app.run(debug=True)
Sorry @JezebellaJess but that error is not from this package. This is a PHP package not a python.
from twilio.rest import Client from flask import Flask, request, redirect from twilio.twiml.messaging_response import MessagingResponse
app = Flask(name)
@app.route("/webhook", methods=['POST']) def webhook(): body = request.values.get('Body', None)
if name == "main": app.run(debug=True)