Nothing
#' RobinHood API: User
#'
#' Backend function called by get_user() to return user data
#'
#' @param RH object of class RobinHood
#' @import httr magrittr
#' @export
api_user <- function(RH) {
# URL and token
url <- RobinHood::api_endpoints("user")
token <- paste("Bearer", RH$api_response.access_token)
# GET call
dta <- GET(url, add_headers("Accept" = "application/json",
"Authorization" = token))
httr::stop_for_status(dta)
# format return
dta <- RobinHood::mod_json(dta, "fromJSON")
dta <- as.list(dta)
return(dta)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.