moodleNotifer
automation.py
Go to the documentation of this file.
1 
5 from twilio.rest import Client
6 
7 
9 def send_message(body1,to1):
10  account_sid = 'AC384d42ec4256b21f0fa7d0dfebc15d5c'
11  auth_token = 'badfcc8f96cdbcc43763baabee132d24'
12  client = Client(account_sid, auth_token)
13  message = client.messages.create(
14  from_='whatsapp:+14155238886',
15  body=body1,
16  to='whatsapp:+91'+to1
17  )
18  print(message.sid)
19 
20 #'Your appointment is coming up on July 21 at 3PM'
21 #'whatsapp:+917382431868'