ZenodoRequest | R Documentation |
ZenodoRequest
ZenodoRequest
R6Class
object.
Object of R6Class
for modelling a generic Zenodo request
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
execute()
Executes the request
ZenodoRequest$execute()
getRequest()
Get request
ZenodoRequest$getRequest()
getRequestHeaders()
Get request headers
ZenodoRequest$getRequestHeaders()
getStatus()
Get request status
ZenodoRequest$getStatus()
getResponse()
Get request response
ZenodoRequest$getResponse()
getException()
Get request exception
ZenodoRequest$getException()
getResult()
Get request result
ZenodoRequest$getResult()
setResult()
Set request result
ZenodoRequest$setResult(result)
result
result to be set
clone()
The objects of this class are cloneable with this method.
ZenodoRequest$clone(deep = FALSE)
deep
Whether to make a deep clone.
Abstract class used internally by zen4R
Emmanuel Blondel <emmanuel.blondel1@gmail.com>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.