oc_agent: Query Opencast for a single capture agent

Description Usage Arguments Details Value Examples

View source: R/oc_agent.R

Description

Returns a single capture agent.

Usage

1
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

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

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