generate_url function

Generate URL for specific API query by type and (if appropriate) ID

Generate URL for specific API query by type and (if appropriate) ID

generate_url(query, ...)

Arguments

  • query: string. The specific API query desired. Generally named the same as associated functions but without underscores, so the request for fetch_survey() would be be "fetchsurvey".
  • ...: Named elements of URL for specific query desired, such as surveyID or mailinglistID

Returns

Endpoint URL to be passed to querying tools