TextMessages APIs
-
String to SMS_TEXT_SOURCE[] Helper Function
Description: Converts the given text content including auto-fields into a SMS_TEXT_SOURCE object.Usage:
POST api/Messages/Text/Helpers/TextToSMSSourceObject
Parameter Type Source Description TextContent String FromBody The text content of the message. This may contain auto-fields such as [Name/] or [Date/] etc. Returns:
Returns a new SMS_TEXT_SOURCE object array.
Examples:
<!-- Intent: parses the text content and returns an array of text sources POST to the following url http://api.v4.swiftreach.com/api/Messages/Text/Helpers/TextToSMSSourceObject --> <TextContent>this is the body of my message</TextContent> <!-- Example Return Value --> <ArrayOfSMS_TEXT_SOURCE xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <SMS_TEXT_SOURCE xsi:type="SMS_TEXT_SOURCE_TEXT"> <Text>this is the body of my message</Text> <TextType>sms_text_source_text</TextType> </SMS_TEXT_SOURCE> </ArrayOfSMS_TEXT_SOURCE>