2024-07-06 23:20:28 发布
网友
我对使用SMPP是个新手。我不太确定传入消息是否有效。我在Python2.7中使用smpplib来实现这一点,我能够连接到SMPP服务,并使用bind帴发送器发送SMS。在
在这个例子中有一个函数调用recv_处理程序,但是我看不到它对任何地方的调用。函数如下:
def recv_handler(self, **args): print 'Message received:', args
任何帮助都会很好。谢谢您。在
来自Twilio的梅根。在
我知道这个问题有点老了。但是对于在这里找到如何处理传入短信的人,您可以快速入门here:
from flask import Flask, request, redirect import twilio.twiml app = Flask(__name__) @app.route("/", methods=['GET', 'POST']) def hello_monkey(): resp = twilio.twiml.Response() resp.message("Hello, Mobile Monkey") return str(resp) if __name__ == "__main__": app.run(debug=True)
希望这有帮助!在
来自Twilio的梅根。在
我知道这个问题有点老了。但是对于在这里找到如何处理传入短信的人,您可以快速入门here:
希望这有帮助!在
相关问题 更多 >
编程相关推荐