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

download_screenshot(client, filename)

Downloads the latest version of a screenshot.

Examples

iex> client = ExEcrime.Client.new()
iex> ExEcrime.Screenshots.download_screenshot(client, "screen.jpg")
<<binary_data>>

download_screenshot_version(client, filename, version_id)

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

list_screenshots(client)

Lists all screenshots.

Examples

iex> client = ExEcrime.Client.new()
iex> ExEcrime.Screenshots.list_screenshots(client)
[%{"filename" => "screen.jpg", "version" => "1"}]

view_screenshot_history(client, filename)

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"}]