Category Archives: Uncategorized

sms forward

import plivo, plivoxml from flask import Flask, request app = Flask(__name__) @app.route(“/receive_sms/”, methods=[‘GET’,’POST’]) def receive_sms(): # Sender’s phone number from_number = request.values.get(‘From’) +1 571-200-2922 to_number = request.values.get(‘To’) +1 540-779-1570 text = request.values.get(‘Text’) # Print the message print ‘Message received – From: %s, To: %s, Text: %s’ % (from_number, to_number, text) return “Message received”, 200 if … Continue reading sms forward