R/get_hash_status.R
get_hash_status.Rd
get_hash_status(x, error_on_fail = TRUE, url = api_url(), key = api_key())
x | an R object of which a hash will be calculated using the function |
---|---|
error_on_fail | if |
url | the url of the api. The default is to use the url as returned by the function |
key | the api key. The default is to use the key as returned by the function |
object of type OriginStampResponse
, content
contains the additional info as list
.
The behavior depends on the class of the argument x
:
an object of class hash
as returned by the package openssl: the hash is submitted to OriginStamp
character
vector of length 1 containing the name of an existing file: the hash of the file is
calculated and submitted to OriginStamp
any other R object: the hash is calculated using the function hash()
and submitted to OriginStamp
if (FALSE) { # get hash info x <- "2c5d36be542f8f0e7345d77753a5d7ea61a443ba6a9a86bb060332ad56dba38e" class(x) <- "hash" get_hash_status( x = x ) get_hash_status(x = letters) }