setContentTemplate
Adds ContentTemplate SID for the message. This overload uses default variables values. Use setContentTemplate to specify custom variable values. Adding non-null content SID converts message to a rich message. In this case the body field is ignored and the body of the sent message is filled with resolved content from the ContentTemplate instead. Use getContentTemplates to request all available ContentTemplates.
Return
Self for chaining.
Parameters
SID of the ContentTemplate
Adds ContentTemplate SID for the message. This overload receives custom variables values. Use setContentTemplate to send rich message with default variable values. Adding non-null content SID converts message to a rich message. In this case the body field is ignored and the body of the sent message is filled with resolved content from the ContentTemplate instead. Use getContentTemplates to request all available ContentTemplates.
Return
Self for chaining.
Parameters
SID of the ContentTemplate
Custom variables to resolve the template.