Skip to content

Commit

Permalink
use bearer auth function
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcaseb committed Jul 11, 2023
1 parent 101fc02 commit 604f06f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/otc_player_ids.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ otc_player_ids <- function(endpoint = Sys.getenv("OTC_PLAYERID_ENDPOINT"),
)

resp <- httr2::request(endpoint) %>%
httr2::req_headers(Authorization = paste("Bearer", api_key)) %>%
httr2::req_auth_bearer_token(api_key) %>%
httr2::req_retry(max_tries = 3) %>%
httr2::req_perform()

Expand Down

0 comments on commit 604f06f

Please sign in to comment.