oc_event_publication: Query Opencast for a specific events single publication

View source: R/oc_event_publication.R

oc_event_publicationR Documentation

Query Opencast for a specific events single publication

Description

Returns a single publication.

Usage

oc_event_publication(eventId = "", publicationId = "", sign = FALSE)

Arguments

eventId

The event id

publicationId

The publication id

sign

Whether public distribution urls should be signed.

Details

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

Value

Returns a single publication.

Examples

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

events <- oc_list_events()
publications <- oc_event_list_publications(events$content$identifier[1])

oc_event_publication(events$content$identifier[1],
                     publications$content$id[1])

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