Returns a list of available version as well as the default version.

oc_version()

Value

A list containing the available api versions

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_version()
#> $content #> $content$default #> [1] "v1.2.0" #> #> $content$versions #> [1] "v1.0.0" "v1.1.0" #> #> #> $url #> [1] "https://legacy.opencast.org/api/version" #> #> $response #> Response [https://legacy.opencast.org/api/version] #> Date: 2020-03-19 11:21 #> Status: 200 #> Content-Type: application/json #> Size: 51 B #> #> #> attr(,"class") #> [1] "opencast_api"