Function defend

Source
pub fn defend(
    uuid: String,
    config: CDConfig,
    client: &Client,
    api_key: &str,
) -> Result<String, Error>
Expand description

Starts the obfuscation process for a given file using the provided configuration.

§Arguments

  • uuid - UUID of the uploaded binary file (not the PDB).
  • config - Obfuscation configuration as a CDConfig.
  • client - A preconfigured reqwest::blocking::Client.
  • api_key - Your CodeDefender API key.

§Returns

A Result<String, reqwest::Error> containing the execution_id used for polling.

§Errors

Returns an error if the request fails or the server returns a non-success status.