This function establishes a connection with the Central Bank of Brazil (BACEN) API,
using the `httr` or `httr2` packages to retrieve data in JSON format and convert
it into a readable format such as data frames.
Usage
bacen_api(url, httr = TRUE)
Value
Returns the data retrieved from the BACEN API.
Arguments
url
A string containing the BACEN API URL for the desired series.
httr
A logical value. If `TRUE`, the function uses the `httr` package for the connection.
Otherwise, it uses the `httr2` package. The default value is `TRUE`.