Make an API GET-request

api_request(url = NULL, apikey = NULL, cmd = "get_servers_info", ...)

Arguments

url

Server URL.

apikey

API key.

cmd

API command, see the API docs. Defaults to printing server information via the get_servers_info method.

...

Optional (named) parameters.

Value

The API result, usually a list.

Examples

# NOT RUN {
api_request("http://example.com/plexpy", "asdf", "get_servers_info")
# }