I have done so with the following code...
Code: Select all
from twilio.rest import TwilioRestClient
# To find these visit https://www.twilio.com/user/account
ACCOUNT_SID = "ACc6c037e5e1582133d9ca236014xxxxx"
AUTH_TOKEN = "0b497cb2a9b098f5960xxxxxxxxxxxxxx"
client = TwilioRestClient(ACCOUNT_SID, AUTH_TOKEN)
message = client.messages.create(
body="Hello Motion Detected.... !", # Message body, if any
to="+91xxxxxxxxx",
from_="+1xxxxxxxxx",
)
print message.sid
so plz... can anyone explain me this code...
its a humble request!