add_comments {virustotal} | R Documentation |
Add comments on Files and URLs
Description
Add comments on files and URLs. For instance, flagging false positives, adding details about malware, instructions for cleaning malware, etc.
Usage
add_comments(hash = NULL, comment = NULL, ...)
Arguments
hash |
hash for the resource you want to comment on; Required; String |
comment |
review; Required; String |
... |
Additional arguments passed to |
Value
data.frame with 2 columns: response_code
, verbose_msg
If the hash is incorrect or a duplicate comment is posted,
response_code
will be0
If the hash is incorrect,
verbose_msg
will be'Invalid resource'
If a duplicate comment is posted,
verbose_msg
will be'Duplicate comment'
If a comment is posted successfully,
response_code
will be1
andverbose_msg
will be'Your comment was successfully posted'
References
https://developers.virustotal.com/v2.0/reference
See Also
set_key
for setting the API key
Examples
## Not run:
# Before calling the function, set the API key using set_key('api_key_here')
add_comments(hash='99017f6eebbac24f351415dd410d522d', comment="This is great.")
## End(Not run)