Skip to main content

Get Extract Video Clip List

Description

Gets extract video clip list via the web service.

Function Signature:

def get_extract_video_clip_list(ws_config: WebServiceConfig, serial_number: str, start_epoch: int, end_epoch: int) -> VideoClipListResult:

Parameters

  • ws_config (WebServiceConfig): Configuration for the web service connection.
  • serial_number (str): Input value for serial_number.
  • start_epoch (int): Input value for start_epoch.
  • end_epoch (int): Input value for end_epoch.

Returns

  • VideoClipListResult: A result object containing:
    • code: HTTP status code (200 for success, -1 for exceptions).
    • description: Response body or error message.
    • video_clip_list: Parsed response data when available.

Example Usage

# Example usage
ws_config = WebServiceConfig(access_key="key", secret_key="secret", base_url="https://api.example.com/")
serial_number = "example"
start_epoch = 1
end_epoch = 1
result = get_extract_video_clip_list(ws_config, serial_number, start_epoch, end_epoch)
print(result)

Behavior

  • Sends a signed request to the web service.
  • On success (code 200), response data is parsed into the result object.
  • On success, returns the computed value or result object.

Error Handling

  • Exceptions set the result code to -1 and include an error message when implemented.