In most cases, if a request contains an error, the system will return a detailed response indicating exactly what was incorrectly specified in the request, e.g. invalid username or password, invalid session id, invalid object, required argument missing, etc.
To avoid passing your credentials with every request, you can use a session. Many commands will work without a session, but bear in mind that a number of commands require a session. Thus, in the overwhelming majority of cases, it is better to use a session ID when working with the SDK. All of the examples that follow will use one.
Below is a list of examples that use various TRASSIR SDK commands:
- Get a session ID
- Request for the TRASSIR object tree
- Request for a description of the server's objects' classes
- Method implementation to an objects of the server
- Reading and writing server settings
- Request for the state of the server's health
- Request a screenshot
- Get a channel list
- Getting video and audio streams
- Archive management
- Request for archive state
- Request for archive events
- Local archive export
- Remote archive export
- Request for server events
- Request for AutoTRASSIR events
- Request for ActivePOS events
- Tracker/face recognizer events request
- PTZ-camera control