Learn R Programming

opencastR (version 0.1.3)

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

Value

A list containing details of a single capture agent.

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")

agents <- oc_list_agents()

oc_agent(agents$content$agent_id)
# }

Run the code above in your browser using DataLab