FaxMessages APIs
-
String to FAX_TEXT_SOURCE[] Helper Function
Description: Converts the given text content including auto-fields into a FAX_TEXT_SOURCE object.Usage:
POST api/Messages/Fax/Helpers/TextToFaxSourceObject
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 FAX_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/Fax/Helpers/TextToFaxSourceObject --> <TextContent>this is the body of my message</TextContent> <!-- Example Return Value --> <ArrayOfFAX_TEXT_SOURCE xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SwiftReach.Swift911.Core.Messages.Voice"> <FAX_TEXT_SOURCE i:type="FAX_TEXT_SOURCE_TEXT"> <Text>this is the body of my message</Text> <TextType>fax_text_source_text</TextType> </FAX_TEXT_SOURCE> </ArrayOfFAX_TEXT_SOURCE>