PagerMessages APIs
-
String to PAGER_TEXT_SOURCE[] Helper Function
Description: Converts the given text content including auto-fields into a Pager_TEXT_SOURCE object.Usage:
POST api/Messages/Pager/Helpers/TextToPagerSourceObject
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 PAGER_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/Pager/Helpers/TextToPagerSourceObject --> <TextContent>this is the body of my pager message</TextContent> <!-- Example Return Value --> <ArrayOfPAGER_TEXT_SOURCE xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <PAGER_TEXT_SOURCE xsi:type="PAGER_TEXT_SOURCE_TEXT"> <Text>this is the body of my pager message</Text> <TextType>pager_text_source_text</TextType> </PAGER_TEXT_SOURCE> </ArrayOfPAGER_TEXT_SOURCE>