Returns the current organization.

oc_info_organization()

Value

A list containing the settings for the anonymous role, the name, the admin role and the id.

Details

This function expects the hostname, username and password to be set as environment variables.

Examples

Sys.setenv(OPENCAST_HOST = "https://legacy.opencast.org") Sys.setenv(OPENCAST_USERNAME = "admin") Sys.setenv(OPENCAST_PASSWORD = "opencast") oc_info_organization()
#> $content #> $content$anonymousRole #> [1] "ROLE_ANONYMOUS" #> #> $content$name #> [1] "Opencast Project" #> #> $content$adminRole #> [1] "ROLE_ADMIN" #> #> $content$id #> [1] "mh_default_org" #> #> #> $url #> [1] "https://legacy.opencast.org/api/info/organization" #> #> $response #> Response [https://legacy.opencast.org/api/info/organization] #> Date: 2020-03-19 11:21 #> Status: 200 #> Content-Type: application/json #> Size: 107 B #> #> #> attr(,"class") #> [1] "opencast_api"