himani18
Posts: 44
Joined: Fri Feb 19, 2016 4:52 pm

Can someone plz explain me this....

Thu Mar 24, 2016 2:49 pm

I want to send sms using rpi..

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

but i didnt understand this code.. :oops:

so plz... can anyone explain me this code...

its a humble request! :D

User avatar
liudr
Posts: 687
Joined: Sat Jun 01, 2013 12:11 am
Location: Central MN, USA
Contact: Website

Re: Can someone plz explain me this....

Thu Mar 24, 2016 3:15 pm

You will have to go to this website address that is in the code. Is that hard? If you find something, post a link.
Arduino data loggers, user interface, printed circuit board designer since 2009, RPI 3B 2B 2B Zero Jessie, assembly/C/C++/java/python programmer since the 80's

Return to “Beginners”