doHttrRequest: Get URL content based on local

View source: R/requestHandling.R

doHttrRequestR Documentation

Get URL content based on local

Description

This changes the auth type depending on if its local

Usage

doHttrRequest(
  url,
  request_type = "GET",
  the_body = NULL,
  encode = "json",
  config = NULL,
  simplifyVector = getOption("EventStudy.jsonlite.simplifyVector")
)

Arguments

url

the url of the page to retrieve

request_type

the type of httr request function: GET, POST, PUT, DELETE etc.

the_body

body of POST request

simplifyVector

Passed to jsonlite::fromJSON

params

A named character vector of other parameters to add to request.

customConfig

list of httr options such as httr::use_proxy or httr::add_headers that will be added to the request.

Details

Example of params: c(param1="foo", param2="bar")


EventStudy documentation built on March 31, 2023, 5:43 p.m.