Skip to contents

Stores your VirusTotal API key in an environment variable for use by other package functions. Get your API key from https://www.virustotal.com/.

Usage

set_key(api_key = NULL)

Arguments

api_key

VirusTotal API key (character string). Required.

Value

Invisibly returns TRUE on success

Details

The canonical environment variable is VIRUSTOTAL_API_KEY; the historical VirustotalToken is also set for compatibility with code that reads it directly. Setting either variable before loading the package works without calling this function at all.

See also

Other authentication: has_vt_key(), vt_key()

Examples

if (FALSE) { # \dontrun{
# Set your API key
set_key('your_64_character_api_key_here')

# Verify it's set
Sys.getenv("VIRUSTOTAL_API_KEY")
} # }