Rdocumentation
powered by
Learn R Programming
googleAuthR (version 0.1.1)
doHttrRequest: Get URL content based on if its Shiny or local
Description
This changes the auth type depending on if its local or on Shiny
Usage
doHttrRequest(url, shiny_access_token = NULL, request_type = "GET", the_body = NULL)
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
session
a shiny session object if in a shiny app.
params
A named character vector of other parameters to add to request.
Details
Example of params: c(param1="foo", param2="bar")