<filename>sent_sms.py
from twilio.base.exceptions import TwilioRestException
from twilio.rest import TwilioRestClient, Client

account_sid = "AC51c63d4a83cee616ab70eaecf37f5c81" # Your Account SID from www.twilio.com/console
auth_token  = "<PASSWORD>"  # Your Auth Token from www.twilio.com/console

client = Client(account_sid, auth_token)

#client = TwilioRestClient(account_sid, auth_token)

try:
    message = client.messages.create(
        body="Goodnight My lover,from San Francisco",
        to="+8613173659509",    # Replace with your phone number
        from_="+14154171983 ") # Replace with your Twilio number
except TwilioRestException as e:
    print(e)

<filename>sent_sms.py
from twilio.base.exceptions import TwilioRestException
from twilio.rest import TwilioRestClient, Client

account_sid = "AC51c63d4a83cee616ab70eaecf37f5c81" # Your Account SID from www.twilio.com/console
auth_token  = "<PASSWORD>"  # Your Auth Token from www.twilio.com/console

client = Client(account_sid, auth_token)

#client = TwilioRestClient(account_sid, auth_token)

try:
    message = client.messages.create(
        body="Goodnight My lover,from San Francisco",
        to="+8613173659509",    # Replace with your phone number
        from_="+14154171983 ") # Replace with your Twilio number
except TwilioRestException as e:
    print(e)

# Your Account SID from www.twilio.com/console # Your Auth Token from www.twilio.com/console #client = TwilioRestClient(account_sid, auth_token) # Replace with your phone number # Replace with your Twilio number