Learn R Programming

opencastR (version 0.1.3)

oc_event_metadata: Query Opencast for a specific events metadata

Description

Returns the event's metadata of the specified type.

Usage

oc_event_metadata(eventId = "", type = "")

Arguments

eventId

The event id

type

The type of metadata to get

Value

Returns the event's metadata of the specified type.

Details

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

Examples

Run this code
# NOT RUN {
Sys.setenv(OPENCAST_HOST = "https://legacy.opencast.org")
Sys.setenv(OPENCAST_USERNAME = "admin")
Sys.setenv(OPENCAST_PASSWORD = "opencast")

events <- oc_list_events()

oc_event_metadata(events$content$identifier[1])
# }

Run the code above in your browser using DataLab