The following example assumes that the user has successfully logged onto the unit, received the session id
and set it to the variable token. In addition, it is assumed that the IP of the unit is 192.168.0.1. You must
change the IP to the specific unit IP in use.
curl -X GET -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
"https://192.168.0.1/ws/v2/service_cfg/decode/subt"
If successful, the return body will look:
"decode": {
"subt": {
"opmode": "Off",
"langmenu": "Language Entry",
"langlist": "eng",
"langentry": "eng",
"pmtorder": "First",
"imitext": "Standard",
"foregndcol": "Auto",
"backgndcol": "Auto"
}
}
Example 3: Retrieve specific Subtitle Settings
The following example assumes that the user has successfully logged onto the unit, received the session id
and set it to the variable token. In addition, it is assumed that the IP of the unit is 192.168.0.1. You must
change the IP to the specific unit IP in use. The following example retrieves the imitext Position and the
Foreground Color.
curl -X GET -i -H "Accept: application/json" -H "X-SESSION-ID: $token" -k
"https://192.168.0.1/ws/v2/service_cfg/decode/subt?&imitext&foregndcol"
If successful, the return body will look like:
"decode": {
"subt": {
"foregndcol": "Auto",
"imitext": "Standard"
}
}
Closed Caption (CC) Decode Configuration Command
Table 175: Command Details
Description
Command Detail
https://192.168.0.1/ws/v2/service_cfg/decode/cc
Command URL
Allows set or get of closed caption decode settings parameters.
Command Information
GET, POST
HTTP Methods
Read, Write
Access Type
User, Admin
Access Level
One of the following:
GET "https://192.168.0.1/ws/v2/service_cfg/decode/cc", or
GET "https://192.168.0.1/ws/v2/service_cfg/decode/cc?prefccmode"
GET Syntax
Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
210
API Definitions
Decode Configuration Commands