Skip to content

Latest commit

 

History

History
39 lines (31 loc) · 3.02 KB

Message.md

File metadata and controls

39 lines (31 loc) · 3.02 KB

Message

SMS message object

Properties

Name Type Description Notes
sender str The sender of the message. Should be no longer than 11 characters for alphanumeric or 15 characters for numeric sender ID's. No spaces or special characters.
destination str Telephone number of the recipient
content str Message to send to the recipient. Content can be up to 1280 characters in length. Messages of 160 characters or fewer are charged 1 credit. If your message is longer than 160 characters then it will be broken down in to chunks of 153 characters before being sent to the recipient's handset, and you will be charged 1 credit for each 153 characters. Messages sent to numbers registered outside the UK will be typically charged double credits, but for certain countries may be charged fractions of credits (e.g. 2.5). Please contact us for rates for each country.
deliveryreporturl str The url to which we should POST delivery reports to for this message. If none is specified, we'll use the global delivery report URL that you've configured on your account page. [optional]
schedule str Date at which to send the message. This is only used by the message/schedule service and can be left empty for other services. [optional]
tag str An identifying label for the message, which you can use to filter and report on messages you've sent later. Ideal for campaigns. A maximum of 280 characters. [optional]
ttl float The optional number of minutes before the delivery report is deleted. Optional. Omit to prevent delivery report deletion. Integer. [optional]
responseemail List[str] An optional list of email addresses to forward responses to this specific message to. An SMS Works Reply Number is required to use this feature. [optional]
metadata MessageMetadata [optional]
validity float The optional number of minutes to attempt delivery before the message is marked as EXPIRED. Optional. The default is 2880 minutes. Integer. [optional]
ai bool Used to determine whether The SMS Works AI Optimiser should be used in the event that the message is just longer than the 1 or 2 credit boundary. This setting overrides the AI Optimiser configuration on your SMS Works account. [optional]

Example

from openapi_client.models.message import Message

# TODO update the JSON string below
json = "{}"
# create an instance of Message from a JSON string
message_instance = Message.from_json(json)
# print the JSON string representation of the object
print Message.to_json()

# convert the object into a dict
message_dict = message_instance.to_dict()
# create an instance of Message from a dict
message_form_dict = message.from_dict(message_dict)

[Back to Model list] [Back to API list] [Back to README]