Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
250 changes: 250 additions & 0 deletions CHANGES.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

setup(
name="twilio",
version="9.11.0",
version="9.11.1",
description="Twilio API client and TwiML generator",
author="Twilio",
help_center="https://www.twilio.com/help/contact",
Expand Down
2 changes: 1 addition & 1 deletion twilio/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
__version_info__ = ("9", "11", "0")
__version_info__ = ("9", "11", "1")
__version__ = ".".join(__version_info__)
16 changes: 16 additions & 0 deletions twilio/rest/api/v2010/account/message/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -751,6 +751,7 @@ def _create(
send_at: Union[datetime, object] = values.unset,
send_as_mms: Union[bool, object] = values.unset,
content_variables: Union[str, object] = values.unset,
message_intent: Union[str, object] = values.unset,
risk_check: Union["MessageInstance.RiskCheck", object] = values.unset,
from_: Union[str, object] = values.unset,
fallback_from: Union[str, object] = values.unset,
Expand Down Expand Up @@ -786,6 +787,7 @@ def _create(
"SendAt": serialize.iso8601_datetime(send_at),
"SendAsMms": serialize.boolean_to_string(send_as_mms),
"ContentVariables": content_variables,
"MessageIntent": message_intent,
"RiskCheck": risk_check,
"From": from_,
"FallbackFrom": fallback_from,
Expand Down Expand Up @@ -829,6 +831,7 @@ def create(
send_at: Union[datetime, object] = values.unset,
send_as_mms: Union[bool, object] = values.unset,
content_variables: Union[str, object] = values.unset,
message_intent: Union[str, object] = values.unset,
risk_check: Union["MessageInstance.RiskCheck", object] = values.unset,
from_: Union[str, object] = values.unset,
fallback_from: Union[str, object] = values.unset,
Expand Down Expand Up @@ -858,6 +861,7 @@ def create(
:param send_at: The time that Twilio will send the message. Must be in ISO 8601 format.
:param send_as_mms: If set to `true`, Twilio delivers the message as a single MMS message, regardless of the presence of media.
:param content_variables: For [Content Editor/API](https://www.twilio.com/docs/content) only: Key-value pairs of [Template variables](https://www.twilio.com/docs/content/using-variables-with-content-api) and their substitution values. `content_sid` parameter must also be provided. If values are not defined in the `content_variables` parameter, the [Template's default placeholder values](https://www.twilio.com/docs/content/content-api-resources#create-templates) are used.
:param message_intent:
:param risk_check:
:param from_: The sender's Twilio phone number (in [E.164](https://en.wikipedia.org/wiki/E.164) format), [alphanumeric sender ID](https://www.twilio.com/docs/sms/quickstart), [Wireless SIM](https://www.twilio.com/docs/iot/wireless/programmable-wireless-send-machine-machine-sms-commands), [short code](https://www.twilio.com/en-us/messaging/channels/sms/short-codes), or [channel address](https://www.twilio.com/docs/messaging/channels) (e.g., `whatsapp:+15554449999`). The value of the `from` parameter must be a sender that is hosted within Twilio and belongs to the Account creating the Message. If you are using `messaging_service_sid`, this parameter can be empty (Twilio assigns a `from` value from the Messaging Service's Sender Pool) or you can provide a specific sender from your Sender Pool.
:param fallback_from: A fallback SMS sender to use when the recipient cannot be reached over RCS. This parameter may only be used when also providing a [Messaging Service](https://twilio.com/docs/messaging/services) containing an RCS sender. The fallback SMS sender must be either a Twilio phone number (in [E.164](https://en.wikipedia.org/wiki/E.164) format), [alphanumeric sender ID](https://www.twilio.com/docs/sms/quickstart), or [short code](https://www.twilio.com/en-us/messaging/channels/sms/short-codes), hosted within Twilio and belong to the Account creating the Message.
Expand Down Expand Up @@ -887,6 +891,7 @@ def create(
send_at=send_at,
send_as_mms=send_as_mms,
content_variables=content_variables,
message_intent=message_intent,
risk_check=risk_check,
from_=from_,
fallback_from=fallback_from,
Expand Down Expand Up @@ -923,6 +928,7 @@ def create_with_http_info(
send_at: Union[datetime, object] = values.unset,
send_as_mms: Union[bool, object] = values.unset,
content_variables: Union[str, object] = values.unset,
message_intent: Union[str, object] = values.unset,
risk_check: Union["MessageInstance.RiskCheck", object] = values.unset,
from_: Union[str, object] = values.unset,
fallback_from: Union[str, object] = values.unset,
Expand Down Expand Up @@ -952,6 +958,7 @@ def create_with_http_info(
:param send_at: The time that Twilio will send the message. Must be in ISO 8601 format.
:param send_as_mms: If set to `true`, Twilio delivers the message as a single MMS message, regardless of the presence of media.
:param content_variables: For [Content Editor/API](https://www.twilio.com/docs/content) only: Key-value pairs of [Template variables](https://www.twilio.com/docs/content/using-variables-with-content-api) and their substitution values. `content_sid` parameter must also be provided. If values are not defined in the `content_variables` parameter, the [Template's default placeholder values](https://www.twilio.com/docs/content/content-api-resources#create-templates) are used.
:param message_intent:
:param risk_check:
:param from_: The sender's Twilio phone number (in [E.164](https://en.wikipedia.org/wiki/E.164) format), [alphanumeric sender ID](https://www.twilio.com/docs/sms/quickstart), [Wireless SIM](https://www.twilio.com/docs/iot/wireless/programmable-wireless-send-machine-machine-sms-commands), [short code](https://www.twilio.com/en-us/messaging/channels/sms/short-codes), or [channel address](https://www.twilio.com/docs/messaging/channels) (e.g., `whatsapp:+15554449999`). The value of the `from` parameter must be a sender that is hosted within Twilio and belongs to the Account creating the Message. If you are using `messaging_service_sid`, this parameter can be empty (Twilio assigns a `from` value from the Messaging Service's Sender Pool) or you can provide a specific sender from your Sender Pool.
:param fallback_from: A fallback SMS sender to use when the recipient cannot be reached over RCS. This parameter may only be used when also providing a [Messaging Service](https://twilio.com/docs/messaging/services) containing an RCS sender. The fallback SMS sender must be either a Twilio phone number (in [E.164](https://en.wikipedia.org/wiki/E.164) format), [alphanumeric sender ID](https://www.twilio.com/docs/sms/quickstart), or [short code](https://www.twilio.com/en-us/messaging/channels/sms/short-codes), hosted within Twilio and belong to the Account creating the Message.
Expand Down Expand Up @@ -981,6 +988,7 @@ def create_with_http_info(
send_at=send_at,
send_as_mms=send_as_mms,
content_variables=content_variables,
message_intent=message_intent,
risk_check=risk_check,
from_=from_,
fallback_from=fallback_from,
Expand Down Expand Up @@ -1018,6 +1026,7 @@ async def _create_async(
send_at: Union[datetime, object] = values.unset,
send_as_mms: Union[bool, object] = values.unset,
content_variables: Union[str, object] = values.unset,
message_intent: Union[str, object] = values.unset,
risk_check: Union["MessageInstance.RiskCheck", object] = values.unset,
from_: Union[str, object] = values.unset,
fallback_from: Union[str, object] = values.unset,
Expand Down Expand Up @@ -1053,6 +1062,7 @@ async def _create_async(
"SendAt": serialize.iso8601_datetime(send_at),
"SendAsMms": serialize.boolean_to_string(send_as_mms),
"ContentVariables": content_variables,
"MessageIntent": message_intent,
"RiskCheck": risk_check,
"From": from_,
"FallbackFrom": fallback_from,
Expand Down Expand Up @@ -1096,6 +1106,7 @@ async def create_async(
send_at: Union[datetime, object] = values.unset,
send_as_mms: Union[bool, object] = values.unset,
content_variables: Union[str, object] = values.unset,
message_intent: Union[str, object] = values.unset,
risk_check: Union["MessageInstance.RiskCheck", object] = values.unset,
from_: Union[str, object] = values.unset,
fallback_from: Union[str, object] = values.unset,
Expand Down Expand Up @@ -1125,6 +1136,7 @@ async def create_async(
:param send_at: The time that Twilio will send the message. Must be in ISO 8601 format.
:param send_as_mms: If set to `true`, Twilio delivers the message as a single MMS message, regardless of the presence of media.
:param content_variables: For [Content Editor/API](https://www.twilio.com/docs/content) only: Key-value pairs of [Template variables](https://www.twilio.com/docs/content/using-variables-with-content-api) and their substitution values. `content_sid` parameter must also be provided. If values are not defined in the `content_variables` parameter, the [Template's default placeholder values](https://www.twilio.com/docs/content/content-api-resources#create-templates) are used.
:param message_intent:
:param risk_check:
:param from_: The sender's Twilio phone number (in [E.164](https://en.wikipedia.org/wiki/E.164) format), [alphanumeric sender ID](https://www.twilio.com/docs/sms/quickstart), [Wireless SIM](https://www.twilio.com/docs/iot/wireless/programmable-wireless-send-machine-machine-sms-commands), [short code](https://www.twilio.com/en-us/messaging/channels/sms/short-codes), or [channel address](https://www.twilio.com/docs/messaging/channels) (e.g., `whatsapp:+15554449999`). The value of the `from` parameter must be a sender that is hosted within Twilio and belongs to the Account creating the Message. If you are using `messaging_service_sid`, this parameter can be empty (Twilio assigns a `from` value from the Messaging Service's Sender Pool) or you can provide a specific sender from your Sender Pool.
:param fallback_from: A fallback SMS sender to use when the recipient cannot be reached over RCS. This parameter may only be used when also providing a [Messaging Service](https://twilio.com/docs/messaging/services) containing an RCS sender. The fallback SMS sender must be either a Twilio phone number (in [E.164](https://en.wikipedia.org/wiki/E.164) format), [alphanumeric sender ID](https://www.twilio.com/docs/sms/quickstart), or [short code](https://www.twilio.com/en-us/messaging/channels/sms/short-codes), hosted within Twilio and belong to the Account creating the Message.
Expand Down Expand Up @@ -1154,6 +1166,7 @@ async def create_async(
send_at=send_at,
send_as_mms=send_as_mms,
content_variables=content_variables,
message_intent=message_intent,
risk_check=risk_check,
from_=from_,
fallback_from=fallback_from,
Expand Down Expand Up @@ -1190,6 +1203,7 @@ async def create_with_http_info_async(
send_at: Union[datetime, object] = values.unset,
send_as_mms: Union[bool, object] = values.unset,
content_variables: Union[str, object] = values.unset,
message_intent: Union[str, object] = values.unset,
risk_check: Union["MessageInstance.RiskCheck", object] = values.unset,
from_: Union[str, object] = values.unset,
fallback_from: Union[str, object] = values.unset,
Expand Down Expand Up @@ -1219,6 +1233,7 @@ async def create_with_http_info_async(
:param send_at: The time that Twilio will send the message. Must be in ISO 8601 format.
:param send_as_mms: If set to `true`, Twilio delivers the message as a single MMS message, regardless of the presence of media.
:param content_variables: For [Content Editor/API](https://www.twilio.com/docs/content) only: Key-value pairs of [Template variables](https://www.twilio.com/docs/content/using-variables-with-content-api) and their substitution values. `content_sid` parameter must also be provided. If values are not defined in the `content_variables` parameter, the [Template's default placeholder values](https://www.twilio.com/docs/content/content-api-resources#create-templates) are used.
:param message_intent:
:param risk_check:
:param from_: The sender's Twilio phone number (in [E.164](https://en.wikipedia.org/wiki/E.164) format), [alphanumeric sender ID](https://www.twilio.com/docs/sms/quickstart), [Wireless SIM](https://www.twilio.com/docs/iot/wireless/programmable-wireless-send-machine-machine-sms-commands), [short code](https://www.twilio.com/en-us/messaging/channels/sms/short-codes), or [channel address](https://www.twilio.com/docs/messaging/channels) (e.g., `whatsapp:+15554449999`). The value of the `from` parameter must be a sender that is hosted within Twilio and belongs to the Account creating the Message. If you are using `messaging_service_sid`, this parameter can be empty (Twilio assigns a `from` value from the Messaging Service's Sender Pool) or you can provide a specific sender from your Sender Pool.
:param fallback_from: A fallback SMS sender to use when the recipient cannot be reached over RCS. This parameter may only be used when also providing a [Messaging Service](https://twilio.com/docs/messaging/services) containing an RCS sender. The fallback SMS sender must be either a Twilio phone number (in [E.164](https://en.wikipedia.org/wiki/E.164) format), [alphanumeric sender ID](https://www.twilio.com/docs/sms/quickstart), or [short code](https://www.twilio.com/en-us/messaging/channels/sms/short-codes), hosted within Twilio and belong to the Account creating the Message.
Expand Down Expand Up @@ -1248,6 +1263,7 @@ async def create_with_http_info_async(
send_at=send_at,
send_as_mms=send_as_mms,
content_variables=content_variables,
message_intent=message_intent,
risk_check=risk_check,
from_=from_,
fallback_from=fallback_from,
Expand Down
4 changes: 3 additions & 1 deletion twilio/rest/bulkexports/v1/export/export_custom_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ def __init__(self, version: Version, payload: Dict[str, Any], resource_type: str
self.webhook_method: Optional[str] = payload.get("webhook_method")
self.email: Optional[str] = payload.get("email")
self.job_sid: Optional[str] = payload.get("job_sid")
self.details: Optional[List[Dict[str, object]]] = payload.get("details")
self.details: Optional[List[Dict[str, Dict[str, object]]]] = payload.get(
"details"
)
self.job_queue_position: Optional[str] = payload.get("job_queue_position")
self.estimated_completion_time: Optional[str] = payload.get(
"estimated_completion_time"
Expand Down
Loading
Loading