netflie / whatsapp-cloud-api

The first PHP API to send and receive messages using a cloud-hosted version of the WhatsApp Business Platform
https://netflie.es/portfolio/whatsapp-business-cloud-api-php-sdk/
MIT License
456 stars 166 forks source link

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) #204

Closed JezebellaJess closed 1 month ago

JezebellaJess commented 1 month 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)

JezebellaJess commented 1 month 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)

aalbarca commented 1 month ago

Sorry @JezebellaJess but that error is not from this package. This is a PHP package not a python.