AtomPubClient | R Documentation |
This class models an AtomPub service client
R6Class
object.
AtomPubClient
Object of R6Class
for modelling an AtomPub client
new(url, user, pwd, token, keyring_backend)
This method is to instantiate an AtomPub Client.
The keyring_backend
can be set to use a different backend for storing
the Atom pub user token with keyring (Default value is 'env').
The logger can be either NULL, "INFO" (with minimum logs), or "DEBUG" (for complete curl http calls logs)
getUser()
Retrieves user (if any specified).
getPwd()
Retrieves user password (if any user specified).
getToken()
Retrieves user token.
getServiceDocument()
Gets service document description. Unimplemented in abstract classes.
listCollections(pretty)
Lists the available collections. Use pretty
to return a "data.frame" insteaf
of a list.
getCollectionMembers(collectionId)
List members of a collection. Unimplemented in abstract classes.
atom4R::atom4RLogger
-> AtomPubClient
service
service
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.
AtomPubClient$new( url, user = NULL, pwd = NULL, token = NULL, logger = NULL, keyring_backend = "env" )
url
url
user
user
pwd
pwd
token
token
logger
logger
keyring_backend
keyring backend. Default is 'env'
getUser()
Get user
AtomPubClient$getUser()
object of class character
getPwd()
Get password
AtomPubClient$getPwd()
object of class character
getToken()
Get token
AtomPubClient$getToken()
object of class character
getServiceDocument()
Get service document
AtomPubClient$getServiceDocument()
force
force Force getting/refreshing of service document
object of class SwordServiceDocument
listCollections()
List collections
AtomPubClient$listCollections(pretty = FALSE)
pretty
pretty
a list of collections, or data.frame
getCollectionMembers()
Get collection members. Unimplemented abstract method at AtomPubClient level
AtomPubClient$getCollectionMembers()
clone()
The objects of this class are cloneable with this method.
AtomPubClient$clone(deep = FALSE)
deep
Whether to make a deep clone.
Abstract class used internally for AtomPub (Atom Publishing Protocol) clients
Emmanuel Blondel <emmanuel.blondel1@gmail.com>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.