Api class to make appropriate request based on parameters

Fields

api_type

character. The name of the api to call (see url_mapping)

environment

environment on which to query API Available are 'PRD', 'ABN', 'TEST', 'QA' and 'DEV'.

export_format

character (default = "JSON"). The export's format Available are CSV, XLSX, SDMX-ML and JSON

parameters

character. Additional request parameters

id

character. The identifier or id of the request's object

language

character (default = "all"). Language of the response data. Available are 'all', 'fr', 'de', 'it', 'en'

version_format

numeric (default = 2.1). The export format's version (2.0 or 2.1 when format is SDMX-ML) (for 'codelist')

api_url

character. The url to make the request to.