TextMessages APIs
-
SMS_Content to String Helper Function
Description: Retrieves the text content for the given alert content objectUsage:
POST api/Messages/Text/Helpers/SMSContentObjectToText
Parameter Type Source Description ContentObject SMS_Content FromBody The SMS_Content object that contains the current content Returns:
Returns a string containing the textual content of the message including auto-fields if used.
Examples:
<!-- Intent: return the text content of the sms_content object POST to the following url http://api.v4.swiftreach.com/api/Messages/Text/Helpers/SMSContentObjectToText --> <SMS_Content xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <SpokenLanguage>English</SpokenLanguage> <Subject>my subject</Subject> <Body> <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> </Body> </SMS_Content> <!-- Example Return Value --> <string>this is the body of my message</string>