Skip to content

Commit 445e0f2

Browse files
Added MessageIntent to client create
1 parent e44db6b commit 445e0f2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

twilio/rest/api/v2010/account/message/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,6 +520,7 @@ def create(
520520
body: Union[str, object] = values.unset,
521521
media_url: Union[List[str], object] = values.unset,
522522
content_sid: Union[str, object] = values.unset,
523+
message_intent: Union[str, object] = values.unset,
523524
) -> MessageInstance:
524525
"""
525526
Create the MessageInstance
@@ -548,7 +549,8 @@ def create(
548549
:param body: The text content of the outgoing message. Can be up to 1,600 characters in length. SMS only: If the `body` contains more than 160 [GSM-7](https://www.twilio.com/docs/glossary/what-is-gsm-7-character-encoding) characters (or 70 [UCS-2](https://www.twilio.com/docs/glossary/what-is-ucs-2-character-encoding) characters), the message is segmented and charged accordingly. For long `body` text, consider using the [send_as_mms parameter](https://www.twilio.com/blog/mms-for-long-text-messages).
549550
:param media_url: The URL of media to include in the Message content. `jpeg`, `jpg`, `gif`, and `png` file types are fully supported by Twilio and content is formatted for delivery on destination devices. The media size limit is 5 MB for supported file types (`jpeg`, `jpg`, `png`, `gif`) and 500 KB for [other types](https://www.twilio.com/docs/messaging/guides/accepted-mime-types) of accepted media. To send more than one image in the message, provide multiple `media_url` parameters in the POST request. You can include up to ten `media_url` parameters per message. [International](https://support.twilio.com/hc/en-us/articles/223179808-Sending-and-receiving-MMS-messages) and [carrier](https://support.twilio.com/hc/en-us/articles/223133707-Is-MMS-supported-for-all-carriers-in-US-and-Canada-) limits apply.
550551
:param content_sid: For [Content Editor/API](https://www.twilio.com/docs/content) only: The SID of the Content Template to be used with the Message, e.g., `HXXXXXXXXXXXXXXXXXXXXXXXXXXXXX`. If this parameter is not provided, a Content Template is not used. Find the SID in the Console on the Content Editor page. For Content API users, the SID is found in Twilio's response when [creating the Template](https://www.twilio.com/docs/content/content-api-resources#create-templates) or by [fetching your Templates](https://www.twilio.com/docs/content/content-api-resources#fetch-all-content-resources).
551-
552+
:param message_intent: Used for [Traffic Shaping](https://www.twilio.com/docs/messaging/features/traffic-shaping#assign-a-messages-service-level) message service level.
553+
552554
:returns: The created MessageInstance
553555
"""
554556

@@ -578,6 +580,7 @@ def create(
578580
"Body": body,
579581
"MediaUrl": serialize.map(media_url, lambda e: e),
580582
"ContentSid": content_sid,
583+
"MessageIntent": message_intent,
581584
}
582585
)
583586
headers = values.of({"Content-Type": "application/x-www-form-urlencoded"})

0 commit comments

Comments
 (0)