Nothing
#' Retrieve votes for a file
#'
#' @param hash File hash (MD5, SHA1, or SHA256)
#' @param limit Number of votes to retrieve. Integer. Optional. Default is 10.
#' @param cursor String for pagination. Optional.
#' @param \dots Additional arguments passed to \code{\link{virustotal_GET}}.
#'
#' @return list containing file votes
#'
#' @export
#'
#' @references \url{https://docs.virustotal.com/reference}
#'
#' @seealso \code{\link{set_key}} for setting the API key
#'
#' @examples \dontrun{
#'
#' # Before calling the function, set the API key using set_key('api_key_here')
#'
#' get_file_votes(hash='99017f6eebbac24f351415dd410d522d')
#' }
get_file_votes <- function(hash = NULL, limit = NULL, cursor = NULL, ...) {
# Validate hash using checkmate
assert_character(hash, len = 1, any.missing = FALSE, min.chars = 1)
res <- virustotal_GET(path = paste0("files/", hash, "/votes"),
query = list(limit = limit, cursor = cursor), ...)
res
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.