Learn R Programming

opencastR (version 0.1.3)

oc_event_publication: 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.

Value

Returns a single publication.

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()
publications <- oc_event_list_publications(events$content$identifier[1])

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

Run the code above in your browser using DataLab