傳送彩信

你可以使用引數 media_url 將影象新增到郵件中。

# Download the twilio-python library from http://twilio.com/docs/libraries
from twilio.rest import TwilioRestClient
 
# Find these values at https://twilio.com/user/account
account_sid = "ACXXXXXXXXXXXXXXXXX"
auth_token = "YYYYYYYYYYYYYYYYYY"
client = TwilioRestClient(account_sid, auth_token)    
message = client.messages.create(
    to="+12316851234",
    from_="TWILIO_NUMBER",
    body="Hello there, StackOverflow!",
    media_url=[
        'https://demo.twilio.com/owl.png',
        'https://demo.twilio.com/logo.png'])