TextMessages APIs
-
SMS_Content[] to String Helper Function
Description: Retrieves the text content for the given content typeUsage:
POST api/Messages/Text/Helpers/SMSContentObjectArrayToText/{SpokenLanguage}
Parameter Type Source Description SpokenLanguage String FromUri The language to extract the content from ContentObject SMS_Content[] FromBody The SMS_Content array 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 for the English profile of the message. POST to the following url http://api.v4.swiftreach.com/api/Messages/Text/Helpers/SMSContentObjectArrayToText/English --> <ArrayOfSMS_Content xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <SMS_Content> <SpokenLanguage>English</SpokenLanguage> <Subject>my subject</Subject> <Body> <SMS_TEXT_SOURCE xsi:type="SMS_TEXT_SOURCE_TEXT"> <Text>this is the body of my English sms. </Text> <TextType>sms_text_source_text</TextType> </SMS_TEXT_SOURCE> <SMS_TEXT_SOURCE xsi:type="SMS_TEXT_SOURCE_TEXT"> <Text>this is the second part of my english message.</Text> <TextType>sms_text_source_text</TextType> </SMS_TEXT_SOURCE> </Body> </SMS_Content> <SMS_Content> <SpokenLanguage>Spanish</SpokenLanguage> <Subject>my subject</Subject> <Body> <SMS_TEXT_SOURCE xsi:type="SMS_TEXT_SOURCE_TEXT"> <Text>this is the body of my Spanish sms</Text> <TextType>sms_text_source_text</TextType> </SMS_TEXT_SOURCE> </Body> </SMS_Content> </ArrayOfSMS_Content> <!-- Example Return Value --> <string>this is the body of my English sms. this is the second part of my english message.</string>