R/send.R

Defines functions send_request

Documented in send_request

#' Send an API request to realfavicongenerator.net
#'
#' Send a preconstructed JSON request (as a list) to the realfavicongenerator.net servers
#' @param json_request list; list to be converted to JSON and sent
#' @return \code{response()} object
#' @export
send_request <- function(json_request) {
  httr::POST("https://realfavicongenerator.net/api/favicon",
             body = json_request,
             encode = "json")
}
ARawles/faviconR documentation built on July 23, 2020, 1:30 p.m.