Learn R Programming

datarobot (version 2.13.0)

MakeDataRobotRequest: Make a HTTP request

Description

Make a HTTP request

Usage

MakeDataRobotRequest(requestMethod, routeString, addUrl = TRUE,
  returnRawResponse = TRUE, as = "json", simplifyDataFrame = TRUE,
  body = NULL, timeout = DefaultHTTPTimeout, encode = NULL, ...)

Arguments

requestMethod

function. A function from httr (e.g., `httr::GET`, `httr::POST`) to use.

routeString

character. The path to make the request on.

addUrl

logical. Should the endpoint be prepended to the routeString? (Default TRUE).

returnRawResponse

logical. Whether to return the raw httr respnose object (as opposed to postprocessing and returning the content of that object, which is the default.)

as

character. What should the resulting data be interpreted as? (default "json").

simplifyDataFrame

logical. Whether to invoke jsonlite::simplifyDataFrame.

body

list. The body of the request.

timeout

numeric. How many seconds before the request times out?

encode

character. What should the body be encoded as for the JSON request?

...

list. Extra arguments to pass to the requestMethod