You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
306 B
17 lines
306 B
make_get_request <- function(route_url, next_id = NULL, query = list(), ..., pat = sourcehut_pat()) {
|
|
|
|
if (!is.null(next_id)) {
|
|
if (next_id > 1) {
|
|
query[["start"]] = next_id
|
|
}
|
|
}
|
|
|
|
httr::GET(
|
|
url = route_url,
|
|
sh_authorize(pat),
|
|
.SOURCEHUT_UA,
|
|
query = query,
|
|
...
|
|
)
|
|
|
|
}
|