如何检索收到的短信发件人的电话号码?我想取一下这个短信发件人过去发送的旧记录。
我目前正在我的烧瓶应用程序web钩子上为Twilio做这件事:
@app.route("/")
def hello():
return "Home'!"
@app.route("/sms", methods=['GET','POST'])
def sms_reply():
# Fetch the message
msg = request.form.get('Body')
# Fetch the phone number?? How to do this?
return str(resp)发布于 2022-01-17 18:24:40
找到了答案:
incoming_number = request.form.get('From')
https://stackoverflow.com/questions/70744161
复制相似问题