PagerMessages APIs
-
Pager_Content to String Helper Function
Description: Retrieves the text content for the given alert content objectUsage:
POST api/Messages/Pager/Helpers/PagerContentObjectToText
Parameter Type Source Description ContentObject Pager_Content FromBody The Pager_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 pager_content object POST to the following url http://api.v4.swiftreach.com/api/Messages/Pager/Helpers/PagerContentObjectToText --> <Pager_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> <PAGER_TEXT_SOURCE xsi:type="PAGER_TEXT_SOURCE_TEXT"> <Text>this is the body of my message</Text> <TextType>pager_text_source_text</TextType> </PAGER_TEXT_SOURCE> </Body> </Pager_Content> <!-- Example Return Value --> <string>this is the body of my message</string>