d2Session | R Documentation |
d2Session
d2Session
config_path
Path to a JSON configuration file.
base_url
The URL of the server, e.g. https://www.datim.org/.
username
Your user name.
user_orgunit
UID of the users assigned organisation unit
handle
An httr handle used to communicate with the DHIS2 instance.
me
dhis2 api/me response
max_cache_age
Maximum time responses should be cached
token
An httr OAUTH2 token
new()
Create a new DHISLogin object
d2Session$new(config_path = NA_character_, base_url, handle, me, token)
config_path
Configuration file path
base_url
URL to the server.
handle
httr handle to be used for dhis2 connections
me
DHIS2 me response object
token
OAUTH2 token
clone()
The objects of this class are cloneable with this method.
d2Session$clone(deep = FALSE)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.