diff --git a/run.py b/run.py new file mode 100644 index 0000000000..533d998a32 --- /dev/null +++ b/run.py @@ -0,0 +1,13 @@ +from flask import Flask, request, redirect +import twilio.twiml + +app = Flask(__name__) + +@app.route("/", methods=['GET', 'POST']) +def trying(): + resp = twilio.twiml.Response() + resp.sms("I am responding.") + return str(resp) + +if __name__ == "__main__": + app.run(debug=True) diff --git a/send_sms.py b/send_sms.py new file mode 100644 index 0000000000..e675a0bb52 --- /dev/null +++ b/send_sms.py @@ -0,0 +1,8 @@ +from twilio.rest import TwilioRestClient + +account_sid = "AC111c46ac0792be29fe1cd3afc0b9ced4" +auth_token = "6eeb51495e12c16c3b44bea2dae1335a" +client = TwilioRestClient(account_sid, auth_token) + +message = client.sms.messages.create(from_="+18326034575", + body="Does this work!" )