Skip to content

Commit

Permalink
Update gen_api.R
Browse files Browse the repository at this point in the history
  • Loading branch information
yannikbuhl authored Sep 27, 2024
1 parent bf9476f commit 97c7722
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions R/gen_api.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ gen_genesis_api <- function(endpoint,
overwrite_url,
...) {

url <- ifelse(is.null(overwrite_url),
"https://www-genesis.destatis.de/genesisWS/rest/2020",
overwrite_url)
url <- "https://www-genesis.destatis.de/genesisWS/rest/2020"

user_agent <- "https://github.com/CorrelAid/restatis"

Expand Down Expand Up @@ -75,9 +73,7 @@ gen_regio_api <- function(endpoint,
overwrite_url,
...) {

url <- ifelse(is.null(overwrite),
"https://www.regionalstatistik.de/genesisws/rest/2020/",
overwrite_url)
url <- "https://www.regionalstatistik.de/genesisws/rest/2020/"

httr2::request(url) %>%
httr2::req_user_agent("https://github.com/CorrelAid/restatis") %>%
Expand Down Expand Up @@ -112,9 +108,7 @@ gen_zensus_api <- function(endpoint,
overwrite_url,
...) {

url <- ifelse(is.null(overwrite_url),
"https://ergebnisse.zensus2022.de/api/rest/2020",
overwrite_url)
url <- "https://ergebnisse.zensus2022.de/api/rest/2020"

user_agent <- "https://github.com/CorrelAid/restatis"

Expand Down

0 comments on commit 97c7722

Please sign in to comment.