Skip to content

Commit

Permalink
Fix path in wrapping up function (#463)
Browse files Browse the repository at this point in the history
  • Loading branch information
burgerga committed Apr 2, 2024
1 parent 640017e commit 66a6fd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vignettes/articles/wrapping-apis.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ Putting together all the pieces above yields a function something like this:
```{r}
nytimes_books <- function(api_key, path, ...) {
request("https://api.nytimes.com/svc/books/v3") |>
req_url_path_append("/reviews.json") |>
req_url_path_append(path) |>
req_url_query(..., `api-key` = api_key) |>
req_error(body = nytimes_error_body) |>
req_throttle(10 / 60, realm = "https://api.nytimes.com/svc/books") |>
Expand Down

0 comments on commit 66a6fd0

Please sign in to comment.