The names of the parameters that are used in the R functions do not perfectly correspond with the parameter name expected by the API. This
function converts an argument parameter name (e.g. settlement_date
) to the URL argument name (e.g. SettlementDate
) or the other way around
change_parameter_name(
parameter,
from = c("argument", "url"),
to = c("url", "argument")
)
character; name of the parameter provided to the relevant build()
function
character; one of "argument" or "url" depending on whether parameter
is in the argument or URL format
character; one of "argument" or "url"
character; name of the parameter used in the URL request or build()
function. If no match is found, character(0)