oc_agent: Query Opencast for a single capture agent

View source: R/oc_agent.R

oc_agentR Documentation

Query Opencast for a single capture agent

Description

Returns a single capture agent.

Usage

oc_agent(agentId = "")

Arguments

agentId

The maximum number of results to return for a single request.

Details

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

Value

A list containing details of a single capture agent.

Examples


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

agents <- oc_list_agents()

oc_agent(agents$content$agent_id)


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