oc_event_publication: Query Opencast for a specific events single publication

Description Usage Arguments Details Value Examples

View source: R/oc_event_publication.R

Description

Returns a single publication.

Usage

1
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

1
2
3
4
5
6
7
8
9
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])

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