Name |
Type |
Description |
Notes |
id |
String |
The id of the message. |
[optional] |
owner |
String |
The Bandwidth phone number associated with the message. |
[optional] |
application_id |
String |
The application ID associated with the message. |
[optional] |
time |
Time |
The datetime stamp of the message in ISO 8601 |
[optional] |
segment_count |
Integer |
The number of segments the original message from the user is broken into before sending over to carrier networks. |
[optional] |
direction |
MessageDirectionEnum |
|
[optional] |
to |
Array<String> |
The phone number recipients of the message. |
[optional] |
from |
String |
The phone number the message was sent from. |
[optional] |
media |
Array<String> |
The list of media URLs sent in the message. Including a `filename` field in the `Content-Disposition` header of the media linked with a URL will set the displayed file name. This is a best practice to ensure that your media has a readable file name. |
[optional] |
text |
String |
The contents of the message. |
[optional] |
tag |
String |
The custom string set by the user. |
[optional] |
priority |
PriorityEnum |
|
[optional] |
expiration |
Time |
The expiration date-time set by the user. |
[optional] |
require 'bandwidth-sdk'
instance = Bandwidth::Message.new(
id: 1589228074636lm4k2je7j7jklbn2,
owner: +15554443333,
application_id: 93de2206-9669-4e07-948d-329f4b722ee2,
time: 2022-09-14T18:20:16Z,
segment_count: 2,
direction: null,
to: ["+15552223333"],
from: +15553332222,
media: ["https://dev.bandwidth.com/images/bandwidth-logo.png"],
text: Hello world,
tag: custom tag,
priority: null,
expiration: 2021-02-01T11:29:18-05:00
)