Twilio. Schemas. Message
(twilio v0.2.0)
Copy Markdown
Fields
account_sid- The SID of the Account associated with the Message resourceapi_version- The API version used to process the Messagebody- The text content of the messagedate_created- The RFC 2822 timestamp (in GMT) of when the Message resource was createddate_sent- The RFC 2822 timestamp (in GMT) of when the Message was sent. For an outgoing message, this is when Twilio sent the message. For an incoming message, this is when Twilio sent the HTTP request to your incoming message webhook URL.date_updated- The RFC 2822 timestamp (in GMT) of when the Message resource was last updateddirectionerror_code- The error code returned if the Messagestatusisfailedorundelivered. If no error was encountered, the value isnull. The value returned in this field for a specific error cause is subject to change as Twilio improves errors. Users should not use theerror_codeanderror_messagefields programmatically.error_message- The description of theerror_codeif the Messagestatusisfailedorundelivered. If no error was encountered, the value isnull. The value returned in this field for a specific error cause is subject to change as Twilio improves errors. Users should not use theerror_codeanderror_messagefields programmatically.from- The sender's phone number (in E.164 format), alphanumeric sender ID, Wireless SIM, short code, or channel address (e.g.,whatsapp:+15554449999). For incoming messages, this is the number or channel address of the sender. For outgoing messages, this value is a Twilio phone number, alphanumeric sender ID, short code, or channel address from which the message is sent.messaging_service_sid- The SID of the Messaging Service associated with the Message resource. A unique default value is assigned if a Messaging Service is not used.num_media- The number of media files associated with the Message resource.num_segments- The number of segments that make up the complete message. SMS message bodies that exceed the character limit are segmented and charged as multiple messages. Note: For messages sent via a Messaging Service,num_segmentsis initially0, since a sender hasn't yet been assigned.price- The amount billed for the message in the currency specified byprice_unit. Thepriceis populated after the message has been sent/received, and may not be immediately availalble. View the Pricing page for more details.price_unit- The currency in whichpriceis measured, in ISO 4127 format (e.g.usd,eur,jpy).sid- The unique, Twilio-provided string that identifies the Message resource.statussubresource_uris- A list of related resources identified by their URIs relative tohttps://api.twilio.comto- The recipient's phone number (in E.164 format) or channel address (e.g.whatsapp:+15552229999)uri- The URI of the Message resource, relative tohttps://api.twilio.com.
Summary
Functions
Decodes parsed JSON into this struct.
Types
@type t() :: %Twilio.Schemas.Message{ __extra__: %{optional(String.t()) => term()}, __present__: [atom()], account_sid: String.t() | nil, api_version: String.t() | nil, body: String.t() | nil, date_created: String.t() | nil, date_sent: String.t() | nil, date_updated: String.t() | nil, direction: Twilio.Schemas.MessageEnumDirection.t() | nil, error_code: integer() | nil, error_message: String.t() | nil, from: String.t() | nil, messaging_service_sid: String.t() | nil, num_media: String.t() | nil, num_segments: String.t() | nil, price: String.t() | nil, price_unit: String.t() | nil, sid: String.t() | nil, status: Twilio.Schemas.MessageEnumStatus.t() | nil, subresource_uris: map() | nil, to: String.t() | nil, uri: String.t() | nil }