ZenodoRequest
ZenodoRequest
R6Class
object.
Object of R6Class
for modelling a generic Zenodo request
Abstract class used internally by zen4R
zen4R::zen4RLogger
-> ZenodoRequest
new()
Initializes a ZenodoRequest
ZenodoRequest$new(
url,
type,
request,
data = NULL,
file = NULL,
progress = FALSE,
accept = "application/vnd.inveniordm.v1+json",
token,
logger = NULL,
...
)
url
request URL
type
Type of request: 'GET', 'POST', 'PUT', 'DELETE'
request
the method request
data
payload (optional)
file
to be uploaded (optional)
progress
whether a progress status has to be displayed for download/upload
accept
accept header. Default is "application/vnd.inveniordm.v1+json"
token
user token
logger
the logger type
...
any other arg