Returns a single event.

oc_event(
  eventId = "",
  sign = FALSE,
  withacl = FALSE,
  withmetadata = FALSE,
  withscheduling = FALSE,
  withpublications = FALSE
)

Arguments

eventId

The event id

sign

Whether public distribution urls should be signed.

withacl

Whether the acl metadata should be included in the response.

withmetadata

Whether the metadata catalogs should be included in the response.

withscheduling

Whether the scheduling information should be included in the response.

withpublications

Whether the publication ids and urls should be included in the response.

Value

Returns a single event.

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(events$content$identifier[1])
#> $content #> $content$identifier #> [1] "71061353-56cc-4249-8b8c-6ae7e4fa694d" #> #> $content$creator #> [1] "Opencast Project Administrator" #> #> $content$presenter #> [1] "Durian Open Movie Team" #> #> $content$created #> [1] "2020-03-19T01:04:00Z" #> #> $content$is_part_of #> [1] "706543e3-c731-41de-b6c7-ed28c90b3635" #> #> $content$subjects #> list() #> #> $content$start #> [1] "2020-03-19T01:04:06Z" #> #> $content$description #> [1] "Trailer for the Sintel open movie project" #> #> $content$language #> [1] "" #> #> $content$source #> [1] "" #> #> $content$title #> [1] "Sintel Trailer" #> #> $content$processing_state #> [1] "SUCCEEDED" #> #> $content$license #> [1] "" #> #> $content$archive_version #> [1] 1 #> #> $content$contributor #> list() #> #> $content$series #> [1] "Blender Foundation Productions" #> #> $content$has_previews #> [1] TRUE #> #> $content$location #> [1] "" #> #> $content$rightsholder #> [1] "" #> #> $content$publication_status #> [1] "internal" "engage-player" "oaipmh-default" #> #> $content$status #> [1] "EVENTS.EVENTS.STATUS.PROCESSED" #> #> #> $url #> [1] "https://legacy.opencast.org/api/events/71061353-56cc-4249-8b8c-6ae7e4fa694d" #> #> $response #> Response [https://legacy.opencast.org/api/events/71061353-56cc-4249-8b8c-6ae7e4fa694d?sign=FALSE&withacl=FALSE&withmetadata=FALSE&withscheduling=FALSE] #> Date: 2020-03-19 11:21 #> Status: 200 #> Content-Type: application/v1.2.0+json #> Size: 658 B #> <BINARY BODY> #> #> attr(,"class") #> [1] "opencast_api"