Returns information on the logged in user.

oc_info_me()

Value

A list containing the information about the current user.

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_me()
#> $content #> $content$provider #> [1] "opencast" #> #> $content$name #> [1] "Opencast Project Administrator" #> #> $content$userrole #> [1] "ROLE_USER_ADMIN" #> #> $content$email #> [1] "admin@localhost" #> #> $content$username #> [1] "admin" #> #> #> $url #> [1] "https://legacy.opencast.org/api/info/me" #> #> $response #> Response [https://legacy.opencast.org/api/info/me] #> Date: 2019-11-04 11:18 #> Status: 200 #> Content-Type: application/json #> Size: 137 B #> #> #> attr(,"class") #> [1] "opencast_api"