Function download

Source
pub fn download(uuid: String, client: &Client, api_key: &str) -> DownloadStatus
Expand description

Polls the obfuscation status or retrieves the obfuscated file.

This endpoint should be called every 500 milliseconds until the obfuscation is complete.

⚠️ Note: This endpoint is rate-limited to 200 requests per minute.

§Arguments

  • uuid - The execution ID returned by defend.
  • client - A preconfigured reqwest::blocking::Client.
  • api_key - Your CodeDefender API key.

§Returns

A DownloadStatus enum indicating whether the file is ready, still processing, or failed.