Returns the event's metadata of the specified type.

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

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])
#> $content #> flavor title #> 1 dublincore/episode EVENTS.EVENTS.DETAILS.CATALOG.EPISODE #> fields #> 1 FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, TRUE, TRUE, TRUE, title, subjects, description, language, rightsHolder, license, isPartOf, creator, contributor, startDate, startTime, duration, location, source, created, publisher, identifier, EVENTS.EVENTS.DETAILS.METADATA.TITLE, EVENTS.EVENTS.DETAILS.METADATA.SUBJECT, EVENTS.EVENTS.DETAILS.METADATA.DESCRIPTION, EVENTS.EVENTS.DETAILS.METADATA.LANGUAGE, EVENTS.EVENTS.DETAILS.METADATA.RIGHTS, EVENTS.EVENTS.DETAILS.METADATA.LICENSE, EVENTS.EVENTS.DETAILS.METADATA.SERIES, EVENTS.EVENTS.DETAILS.METADATA.PRESENTERS, EVENTS.EVENTS.DETAILS.METADATA.CONTRIBUTORS, EVENTS.EVENTS.DETAILS.METADATA.START_DATE, EVENTS.EVENTS.DETAILS.METADATA.START_TIME, EVENTS.EVENTS.DETAILS.METADATA.DURATION, EVENTS.EVENTS.DETAILS.METADATA.LOCATION, EVENTS.EVENTS.DETAILS.METADATA.SOURCE, EVENTS.EVENTS.DETAILS.METADATA.CREATED, EVENTS.EVENTS.DETAILS.METADATA.PUBLISHER, EVENTS.EVENTS.DETAILS.METADATA.ID, text, text, text_long, text, text, text, text, mixed_text, mixed_text, date, time, text, text, text, date, text, text, Sintel Trailer, Trailer for the Sintel open movie project, , , , 706543e3-c731-41de-b6c7-ed28c90b3635, Durian Open Movie Team, 2020-03-19, 01:04, 00:00:00, , , 2020-03-19T01:04:00.000Z, , 71061353-56cc-4249-8b8c-6ae7e4fa694d, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, NA, NA, NA, TRUE, NA, TRUE, FALSE, FALSE, FALSE, NA, NA, NA, NA, NA, NA, NA, NA #> #> $url #> [1] "https://legacy.opencast.org/api/events/71061353-56cc-4249-8b8c-6ae7e4fa694d/metadata" #> #> $response #> Response [https://legacy.opencast.org/api/events/71061353-56cc-4249-8b8c-6ae7e4fa694d/metadata?type=] #> Date: 2020-03-19 11:21 #> Status: 200 #> Content-Type: application/v1.2.0+json #> Size: 2.57 kB #> <BINARY BODY> #> #> attr(,"class") #> [1] "opencast_api"