![]() To make this script work for you, make the following updates, and then paste it into a terminal window: This example sends an outbound message from the sender (212) 555-1234 ( +12125551234) to the recipient at (310) 555-5555 ( +13105555555), and includes the image owl.png, and the following message: Hello from my Twilio line! u 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:your_auth_token' data-urlencode "Body=Hello from my Twilio line!" \ Here’s an example cURL script: curl -XPOST \ For more information on supported file types, please see Twilio Programmable SMS Supported File Types and Size Limits for MMS Media Messages. Local files on your desktop are likely unaccessible via these methods, but may be uploaded to Twilio Assets for sending. Notice: Media files must be accessible by Twilio's proxy servers. The MediaUrl parameter consisting of the URL of the media you wish to send out with the message.The Body parameter consisting of the message text you want to send.Content: One or both of the following to indicate the make-up for this message.The MessagingServiceSid parameter consisting of a valid Messaging Service SID (MGxxxxx) for sending from a Messaging Service.The From parameter consisting of a valid Twilio phone number (using E.164 formatting), short code, or Alphanumeric Sender ID (when available) for sending this message.Sender: One of the following to indicate the sending party.For full details on Trial account limitations, please see our article How Does Twilio's Free Trial Work? This limitation is removed once an account is upgraded with a balance. Trial accounts must first verify a phone number before you can send messages there.Recipient: The To parameter consisting of the desired destination phone number (using E.164 formatting) for receiving this message.To send a message, your application needs to make an HTTP POST request to Twilio’s Messages API resource with three required pieces of information A recipient, a sender, and some content. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |