create_mc_url: Construct request URL

Description Usage Arguments Value

View source: R/mc.R

Description

Construct the URL for the API call

Usage

1
2
3
4
5
6
create_mc_url(
  endpoint,
  path = NULL,
  parameters = NULL,
  key = Sys.getenv("MEDIACLOUD_API_KEY")
)

Arguments

endpoint

MediaCloud API endpoint (without /api/v2)

path

Additional path to add to the endpoint

parameters

A named list with query parameters

key

MediaCloud API key

Value

A string with the call URL


joon-e/mediacloud documentation built on Jan. 8, 2022, 12:04 a.m.