powered by
Add comments on files and URLs. For instance, flagging false positives, adding details about malware, instructions for cleaning malware, etc.
add_comments(hash = NULL, comment = NULL, ...)
hash for the resource you want to comment on; Required; String
review; Required; String
Additional arguments passed to virustotal2_POST.
virustotal2_POST
data.frame with 2 columns: response_code, verbose_msg
response_code
verbose_msg
If the hash is incorrect or a duplicate comment is posted, response_code will be 0
0
If the hash is incorrect, verbose_msg will be 'Invalid resource'
'Invalid resource'
If a duplicate comment is posted, verbose_msg will be 'Duplicate comment'
'Duplicate comment'
If a comment is posted successfully, response_code will be 1 and verbose_msg will be 'Your comment was successfully posted'
1
'Your comment was successfully posted'
https://developers.virustotal.com/v2.0/reference
set_key for setting the API key
set_key
# NOT RUN { # Before calling the function, set the API key using set_key('api_key_here') add_comments(hash='99017f6eebbac24f351415dd410d522d', comment="This is great.") # }
Run the code above in your browser using DataLab