This Method will return the Closed Caption portion of the requested content object, if it exists.
Parameters: XmlRequest
<GetContent ContentTypeId="[int]" ContentId="[string]" IncludeBlocked="[true, false]" GetOriginal="[true, false]" />
ContentTypeId is a numeric value which matches the content type of the content object that is being requested; for example: 1 for the Wellness Library.
ContentId is of course the content id for the content object being requested, and is a string value.
IncludeBlocked is a flag which indicates whether or not to include content that you have marked as blocked for your license. For example if you have marked a particular news article as blocked because it contains inappropriate content for your website, this flag will determine the presence of that article in the result. If you request a content object that is blocked, and mark IncludeBlocked as true, then the content object will be returned, but the root element will have a Blocked attribute that will have a value of “trueâ€. If you mark IncludeBlocked as false, then the result of the GetContent call will be a “Content Not Found†error.
GetOriginal is a flag which will allow you to get the original version of the content object. If you have a custom version of a content object, you will normally see only the custom version in web service calls, but if you wish to see the original, then setting this flag to true will return the original content instead.
Sample Request
http://external.ws.staywell.com/[SiteName]/Content.svc/GetClosedCaptions?xmlRequest=<GetContent ContentTypeId="138" ContentId="D1185" IncludeBlocked="false" GetOriginal="false" />
Sample Result XML
<?xml version="1.0" encoding="utf-8" ?>
<tt xml:lang="en" xmlns="http://www.w3.org/ns/ttml">
<body>
<div xml:lang="en">
<p begin="00:00:05.21" end="00:00:08.27">>> About a year ago I was<br />playing a pickup football game</p>
<p begin="00:00:08.27" end="00:00:10.47">with a bunch of friends<br />and I was wearing cleats</p>
<p begin="00:00:10.47" end="00:00:13.11">for better traction,<br />but when I cut one way,</p>
<p begin="00:00:13.11" end="00:00:15.01">my cleats didn't<br />give and it just felt</p>
...
<p begin="00:11:09.98" end="00:11:12.64">>> After about nine months to<br />a year, I was pretty much back</p>
<p begin="00:11:12.64" end="00:11:14.72">to normal, I was playing<br />football and racquetball</p>
<p begin="00:11:14.72" end="00:11:16.12">and doing pretty much<br />everything I wanted</p>
<p begin="00:11:16.12" end="00:11:17.48">to do without any trouble.</p>
</div>
</body>
</tt>