doHttrRequest function

Get URL content based on if its Shiny or local

Get URL content based on if its Shiny or local

This changes the auth type depending on if its local or on Shiny

doHttrRequest( url, request_type = "GET", the_body = NULL, customConfig = NULL, simplifyVector = getOption("googleAuthR.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

  • customConfig: list of httr options such as httr::use_proxy

    or httr::add_headers that will be added to the request.

  • simplifyVector: Passed to jsonlite::fromJSON

Details

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

  • Maintainer: Erik Grönroos
  • License: MIT + file LICENSE
  • Last published: 2024-05-22