oc_list_events: Query Opencast for a list of events

Description Usage Arguments Details Value Examples

View source: R/oc_list_events.R

Description

Returns a list of events.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
oc_list_events(
  sign = FALSE,
  withacl = FALSE,
  withmetadata = FALSE,
  withscheduling = FALSE,
  withpublications = FALSE,
  filter = "",
  sort = "",
  limit = 0,
  offset = 0
)

Arguments

sign

Whether public distribution urls should be signed.

withacl

Whether the acl metadata should be included in the response.

withmetadata

Whether the metadata catalogs should be included in the response.

withscheduling

Whether the scheduling information should be included in the response.

withpublications

Whether the publication ids and urls should be included in the response.

filter

A comma seperated list of filters to limit the results with. A filter is the filter's name followed by a colon ":" and then the value to filter with so it is the form :.

sort

Sort the results based upon a list of comma seperated sorting criteria. In the comma seperated list each type of sorting is specified as a pair such as: :ASC or :DESC. Adding the suffix ASC or DESC sets the order as ascending or descending order and is mandatory.

limit

The maximum number of results to return for a single request.

offset

The index of the first result to return.

Details

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

Value

Returns a list of events.

Examples

1
2
3
4
5
Sys.setenv(OPENCAST_HOST = "https://legacy.opencast.org")
Sys.setenv(OPENCAST_USERNAME = "admin")
Sys.setenv(OPENCAST_PASSWORD = "opencast")

oc_list_events()

opencastR documentation built on March 19, 2020, 5:12 p.m.