ExEcrime.Screenshots (ex_ecrime v0.1.0)
Module for managing screenshots in the eCrime API.
Summary
Functions
Downloads the latest version of a screenshot.
Downloads a specific version of a screenshot.
Lists all screenshots.
Views the history of a screenshot.
Functions
Downloads the latest version of a screenshot.
Examples
iex> client = ExEcrime.Client.new()
iex> ExEcrime.Screenshots.download_screenshot(client, "screen.jpg")
<<binary_data>>
Downloads a specific version of a screenshot.
Examples
iex> client = ExEcrime.Client.new()
iex> ExEcrime.Screenshots.download_screenshot_version(client, "screen.jpg", "1")
<<binary_data>> # Returns binary data of the screenshot
Lists all screenshots.
Examples
iex> client = ExEcrime.Client.new()
iex> ExEcrime.Screenshots.list_screenshots(client)
[%{"filename" => "screen.jpg", "version" => "1"}]
Views the history of a screenshot.
Examples
iex> client = ExEcrime.Client.new()
iex> ExEcrime.Screenshots.view_screenshot_history(client, "screen.jpg")
[%{"version" => "1", "timestamp" => "2023-01-01"}]