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.
24 lines
384 B
24 lines
384 B
# https://api.raindrop.io/rest/v1/user
|
|
|
|
#' Get currently authenticated user details
|
|
#'
|
|
#' @export
|
|
get_user <- function(api_key = raindrop_api_token()) {
|
|
|
|
httr::GET(
|
|
url = "https://api.raindrop.io/rest/v1/user",
|
|
.RAINDROP_UA,
|
|
raindrop_auth()
|
|
) -> res
|
|
|
|
httr::stop_for_status(res)
|
|
|
|
out <- httr::content(res, as = "text")
|
|
|
|
out <- jsonlite::fromJSON(out)
|
|
|
|
out
|
|
|
|
}
|
|
|
|
|
|
|