-
Notifications
You must be signed in to change notification settings - Fork 39
Expand file tree
/
Copy pathsend_sms.py
More file actions
20 lines (19 loc) · 798 Bytes
/
send_sms.py
File metadata and controls
20 lines (19 loc) · 798 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
from twilio.rest import Client
#--------------------------------------------------------
# change values of account_sid, auth_token, to and from - all from twilio account
#-------------------------------------------------------
# def send(value, classes):
# # Your Account SID from twilio.com/console
# account_sid = "**************************8"
# # Your Auth Token from twilio.com/console
# auth_token = "**************************"
#
# client = Client(account_sid, auth_token)
#
# message = client.messages.create(
# to="+**********",
# from_="+12*********",
# body=f"Blindness detection system report! severity level is : {value} and class is {classes}")
#
# print('Message sent Succesfully !')
# print(message.sid)