Skip to content

Commit

Permalink
Update internal_evds.R
Browse files Browse the repository at this point in the history
  • Loading branch information
SermetPekin authored Jan 13, 2025
1 parent 45a0def commit 78ebea1
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions R/internal_evds.R
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
quick_check_evds <- function(key = "..") {
url <- create_evds_url("subject", key = key)
gelen <- request_httr2_helper_evds(url, cache = F)
if (!is_response(gelen)) {
return(false)
domain <- "https://evds2.tcmb.gov.tr/service/evds"

api_key_evds <- key
if (is.null(key)) {
api_key_evds <- get_api_key("evds")
}
T

url <- glue::glue("{domain}/categories/type=json")
resp <- req_version_2_w_header(url, key = key)

return(is_response(resp))
}
mock_data_evds <- function() {
dates <- seq(from = lubridate::ymd("2010-1-1"), to = lubridate::ymd("2025-1-1"), by = "month")
Expand Down

0 comments on commit 78ebea1

Please sign in to comment.