using from twilio rest import clientnot just import twilio store your account sid in accountsid and your auth token in authtoken and then call client(and pass it accountsid and authtoken the call to client(returns client object this object has messages attributewhich in turn has create(method you can use to send text messages this is the method that will instruct twilio' servers to send your text message after storing your twilio number and cell phone number in mytwilionumber and mycellphonerespectivelycall create(and pass it keyword arguments specifying the body of the text messagethe sender' number (mytwilionumber)and the recipient' number (mycellphonew the message object returned from the create(method will have information about the text message that was sent continue the interactive shell example by entering the followingmessage to '+ message from_ '+ message body 'mr watson come here want to see you the tofrom_and body attributes should hold your cell phone numbertwilio numberand messagerespectively note that the sending phone number is in the from_ attribute--with an underscore at the end--not from this is because from is keyword in python (you've seen it used in the from modulename import form of import statementfor example)so it cannot be used as an attribute name continue the interactive shell example with the followingmessage status 'queuedmessage date_created datetime datetime( message date_sent =none true the status attribute should give you string the date_created and date_sent attributes should give you datetime object if the message has been created and sent it may seem odd that the status attribute is set to 'queuedand the date_sent attribute is set to none when you've already received the text message this is because you captured the message object in the message variable before the text was actually sent you will need to refetch the message object in order to see its most up-to-date status and date_sent every twilio message has unique string id (sidthat can be used to fetch the latest update of the message object continue the inter active shell example by entering the followingmessage sid 'sm de ba af fcb