//-- Intent: return the text for the English profile of the message. --//


var jsonString = ' \
		[{ \
		"SpokenLanguage":"English", \ 
		"Subject":"English Subject", \
		"Body": \
			[{ \
			"$type":"SwiftReach.Swift911.Core.Messages.Email.EMAIL_TEXT_SOURCE_TEXT, SwiftReach.Swift911.Core", \
			"Text":"<p>\n\tThis is the english message.</p>\n", \
			"TextType":0 \
			}] \
		},{ \
		"SpokenLanguage":"Spanish", \
		"Subject":"Inglés", \
		"Body": \
			[{ \
			"$type":"SwiftReach.Swift911.Core.Messages.Email.EMAIL_TEXT_SOURCE_TEXT, SwiftReach.Swift911.Core", \
			"Text":"<p>\n\tEste es el mensaje ingl&eacute;s.</p>\n", \
			"TextType":0 \
			}] \ 
		}]';

$.ajax({
  type: "POST",
  contentType: "application/json; charset=utf-8",
  headers: {"SwiftAPI-Key": "12345"},
  url: "http://api.v4.swiftreach.com/api/Messages/Email/Helpers/EmailContentObjectArrayToText/English",
  data: jsonString,
  dataType: "json"
  success: function(result) {
        // Do something with the result
    }

});

<!-- Example Return Value -->

<p>\n\tThis is the english message.</p>\n