Forráskód Böngészése

Adding twilio example for sending text messages

David Leonard 10 éve
szülő
commit
795507f569
2 módosított fájl, 16 hozzáadás és 3 törlés
  1. 11 0
      hackathon_starter/hackathon/scripts/twilioapi.py
  2. 5 3
      requirements.txt

+ 11 - 0
hackathon_starter/hackathon/scripts/twilioapi.py

@@ -0,0 +1,11 @@
+import twilio
+from twilio.rest import TwilioRestClient
+ 
+account_sid = "AC7889a1889c1833bd7181e45e60372776"
+auth_token  = "1ad0315f3cc7a154aaaef048f1304f71"
+client = TwilioRestClient(account_sid, auth_token)
+ 
+message = client.messages.create(body="Hi DrkSephy",
+    to="+13473282978",
+    from_="+13473781813") 
+

+ 5 - 3
requirements.txt

@@ -1,7 +1,8 @@
+Django==1.7.6
+PyTumblr==0.0.6
 astroid==1.3.6
 beautifulsoup4==4.3.2
 coverage==4.0a5
-Django==1.7.6
 django-bootstrap-form==3.2
 django-bootstrap-forms==0.1
 django-bower==5.0.2
@@ -17,9 +18,10 @@ oauth2==1.5.211
 oauthlib==0.7.2
 pylint==1.4.3
 python-openid==2.2.5
-PyTumblr==0.0.6
+pytz==2015.2
 requests==2.6.0
 requests-oauthlib==0.4.2
 simplejson==3.6.5
 six==1.9.0
-tweepy==3.3.0
+twilio==3.8.0
+wsgiref==0.1.2