| d2Session | R Documentation |
d2Session
d2Session
config_pathPath to a JSON configuration file.
base_urlThe URL of the server, e.g. https://www.datim.org/.
usernameYour user name.
user_orgunitUID of the users assigned organisation unit
handleAn httr handle used to communicate with the DHIS2 instance.
medhis2 api/me response
max_cache_ageMaximum time responses should be cached
tokenAn httr OAUTH2 token
new()Create a new DHISLogin object
d2Session$new(config_path = NA_character_, base_url, handle, me, token)
config_pathConfiguration file path
base_urlURL to the server.
handlehttr handle to be used for dhis2 connections
meDHIS2 me response object
tokenOAUTH2 token
clone()The objects of this class are cloneable with this method.
d2Session$clone(deep = FALSE)
deepWhether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.