Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from twilio.rest import Client
- account_sid = '' # Found on Twilio Console Dashboard
- auth_token = '' # Found on Twilio Console Dashboard
- myPhone = '+' # Phone number you used to verify your Twilio account
- TwilioNumber = '' # Phone number given to you by Twilio
- client = Client(account_sid, auth_token)
- def send_message_motion():
- client.messages.create(
- to=myPhone,
- from_=TwilioNumber,
- body='Motion Detected' + u'\U0001f680')
- def send_message_flame():
- client.messages.create(
- to=myPhone,
- from_=TwilioNumber,
- body='ALERRTTTTT!! FLAME Detected' + u'\U0001f525')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement