Getting Status And Configurations; Sending Commands And Configurations; Using Http Post - Cisco TelePresence SX20 Codec Reference Manual

Application programming interface (api)
Hide thumbs Also See for TelePresence SX20 Codec:
Table of Contents

Advertisement

Cisco TelePresence SX20 Codec
Introduction

Getting status and configurations

Example 1: Get all status entries on the codec.
http://<ip-address>/getxml?location=/Status
Example 2: Get just the audio statuses of the codec.
http://<ip-address>/getxml?location=/Status/Audio
Example 3: Get all configurations of the codec.
http://<ip-address>/getxml?location=/Configuration
Example 4: Get all video configurations of the codec.
http://<ip-address>/getxml?location=/Configuration/
Video
SX20 Codec API Reference Guide CE8.3, JANUARY 2017.
D15316.05
About the API
About the API
xConfiguration

Sending commands and configurations

Using HTTP POST

When sending configurations and commands to the codec,
it is important that the HTTP header Content-Type is set to
text/xml, i.e.
Content-Type:
should contain the XML content.
Example 1: Changing the system name.
Request
POST /putxml HTTP/1.1
Content-Type: text/xml
<Configuration>
<SystemUnit>
<Name>newName</Name>
</SystemUnit>
</Configuration>
xCommand
Example 2: Setting the camera position.
Request
text/xml. The body of the POST
Response
44
API Reference Guide
xStatus
Appendices
POST /putxml HTTP/1.1
Content-Type: text/xml
<Command>
<Camera>
<PositionSet command="True">
<CameraId>1</CameraId>
<Pan>200</Pan>
<Tilt>200</Tilt>
</PositionSet>
</Camera>
</Command>
HTTP/1.1 200 OK
Content-Type: text/xml
Content-Length: 91
<?xml version="1.0"?>
<Command>
<CameraPositionSetResult item="1" status="OK"/>
</Command>
Copyright © 2017 Cisco Systems, Inc. All rights reserved.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents