SwordClient | R Documentation |
This class models an Sword service client
R6Class
object.
SwordClient
Object of R6Class
for modelling an Sword client
atom4R::atom4RLogger
-> atom4R::AtomPubClient
-> SwordClient
atom4R::atom4RLogger$ERROR()
atom4R::atom4RLogger$INFO()
atom4R::atom4RLogger$WARN()
atom4R::atom4RLogger$getClass()
atom4R::atom4RLogger$getClassName()
atom4R::atom4RLogger$logger()
atom4R::AtomPubClient$getPwd()
atom4R::AtomPubClient$getToken()
atom4R::AtomPubClient$getUser()
atom4R::AtomPubClient$listCollections()
new()
This method is to instantiate an Sword Client. By default the version is set to "2".
The keyring_backend
can be set to use a different backend for storing
the SWORD API user token with keyring (Default value is 'env').
The logger
allows to specify the level of log (default is NULL), either "INFO"
for atom4R logs or "DEBUG" for verbose HTTP client (curl) logs.
SwordClient$new( url, version = "2", user = NULL, pwd = NULL, token = NULL, logger = NULL, keyring_backend = "env" )
url
url
version
version. Default is "2"
user
user
pwd
pwd
token
token
logger
logger
keyring_backend
keyring backend. Default is 'env'
getServiceDocument()
Get service document
SwordClient$getServiceDocument(force = FALSE)
force
force Force getting/refreshing of service document
object of class SwordServiceDocument
getCollectionMembers()
Get collection members. Unimplemented abstract method at SwordClient level
SwordClient$getCollectionMembers()
clone()
The objects of this class are cloneable with this method.
SwordClient$clone(deep = FALSE)
deep
Whether to make a deep clone.
Abstract class
Emmanuel Blondel <emmanuel.blondel1@gmail.com>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.