29 February 2024
9 months ago by ReadMe API
Notification body format parameter
Added new Notification format parameter notify_body_format
. When set to raw
, XML/JSON is sent without modifications, unlike the default behavior which sends it as URL-encoded form data. The Content-Type header will be set accordingly.
<?xml version="1.0"?>
<query>
<!-- Main params -->
<userid>[UserID]</userid> <!-- required -->
<userkey>[UserKey]</userkey> <!-- required -->
<notify_body_format>[form_urlencoded|raw]</notify_body_format>
<format> <!-- required -->
<!-- Format params -->
</format>
</query>
{
"query": {
"userid": "[UserID]", // required
"userkey": "[UserKey]", // required
"notify_body_format", "[form_urlencoded|raw]",
"format": [ // required
{
// Format params
}
]
}
}
Parameter | Description | Allowed Values | Default Value |
---|---|---|---|
notify_body_format | Can be either raw (where the body contains raw xml/json "as is") or form_urlencoded. The Content-Type header will be set accordingly. | raw, form_urlencoded | form_urlencoded |
Caption to Caption output format parameter
Added a new parameter for the Caption to Caption output format
<?xml version="1.0"?>
<query>
<userid>[UserID]</userid> <!-- required-->
<userkey>[UserKey]</userkey> <!-- required-->
<action>AddMedia</action> <!-- required-->
<source>[ClosedCaptionsSourceFile]</source> <!-- required-->
<format>
<output>closed_captions</output> <!-- required-->
<destination>[DestinationURL]</destination> <!-- required-->
<make_preconvert>[no|scc]</make_preconvert>
</format>
</query>
{
"query": {
"userid": "[UserID]", // required
"userkey": "[UserKey]", // required
"action": "AddMedia", // required
"source": ["[ClosedCaptionsSourceFile]"], // required
"format": {
"output": "closed_captions", // required
"destination": "[DestinationURL]", // required
"make_preconvert": "[no|scc]"
}
}
}
Parameter | Description | Allowed Values | Default Value |
---|---|---|---|
make_preconvert | Perform a pre-conversion of the source file to another format. For example, you may pre-convert TTML to SCC before converting to MCC to remove paint-on emulation in the original source file. | no, scc | no |