Skip to content

Commit f97c49f

Browse files
committed
update testMyself.py
1 parent 34accc3 commit f97c49f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

16-email-sms/textMyself.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
myNumber = '+15559998888'
99
twilioNumber = '+15552225678'
1010

11-
from twilio.rest import TwilioRestClient
11+
from twilio.rest import Client
1212

1313
def textmyself(message):
14-
twilioCli = TwilioRestClient(accountSID, authToken)
15-
twilioCli.messages.create(body=message, from_=twilioNumber, to=myNumber)
14+
twilioCli = Client(accountSID, authToken)
15+
twilioCli.api.account.messages.create(body=message, from_=twilioNumber, to=myNumber)

0 commit comments

Comments
 (0)