Skip to content

Commit 4e689c3

Browse files
committed
twilio readme and code
1 parent 089e3b3 commit 4e689c3

File tree

3 files changed

+44
-0
lines changed

3 files changed

+44
-0
lines changed

days/051-twilio/README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Days 051 Twilio
2+
3+
Welcome to Twilio!
4+
5+
## Days 1:
6+
7+
In this single day chapter you're going to create and configure your very own Twilio account!
8+
9+
Follow along with the videos and learn how to send an SMS/text message to your mobile phone using the Python Twilio API.
10+
11+
It's simple and easy.
12+
13+
**Note:** This is using the Twilio Free Trial Account. [Click to read about the restrictions of a trial account](https://www.twilio.com/docs/usage/tutorials/how-to-use-your-free-trial-account).
14+
15+
16+
### Time to share what you've accomplished!
17+
18+
Be sure to share your last couple of days work on Twitter or Facebook. Use the hashtag **#100DaysOfWeb**.
19+
20+
Here are [some examples](https://twitter.com/search?q=%23100DaysOfCode) to inspire you. Consider including [@talkpython](https://twitter.com/talkpython) and [@pybites](https://twitter.com/pybites) in your tweets.
21+
22+
*See a mistake in these instructions? Please [submit a new issue](https://github.com/talkpython/100daysofweb-with-python-course/issues) or fix it and [submit a PR](https://github.com/talkpython/100daysofweb-with-python-course/pulls).*

days/051-twilio/code/requirements.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
certifi==2019.3.9
2+
chardet==3.0.4
3+
idna==2.8
4+
PyJWT==1.7.1
5+
PySocks==1.6.8
6+
pytz==2019.1
7+
requests==2.21.0
8+
six==1.12.0
9+
twilio==6.26.1
10+
urllib3==1.24.1

days/051-twilio/code/twilio_sms.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
from twilio.rest import Client
2+
3+
account_sid = ""
4+
auth_token = ""
5+
6+
client = Client(account_sid, auth_token)
7+
8+
client.messages.create(
9+
to="+61",
10+
from_="+61",
11+
body="Welcome to the 100daysofweb Course using Twilio!"
12+
)

0 commit comments

Comments
 (0)