oc_api: Query Opencast base api

View source: R/oc_api.R

oc_apiR Documentation

Query Opencast base api

Description

Returns key characteristics of the API such as the server name and the default version.

Usage

oc_api()

Details

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

Value

A list containing the default api version and server url.

Examples

Sys.setenv(OPENCAST_HOST = "https://legacy.opencast.org")
Sys.setenv(OPENCAST_USERNAME = "admin")
Sys.setenv(OPENCAST_PASSWORD = "opencast")

oc_api()

ebbertd/opencastR documentation built on March 23, 2022, 10:11 p.m.