postgres_request: Do a Request to the Flusshygiene Postgres API

Description Usage Arguments

View source: R/postgres.R

Description

Do a Request to the Flusshygiene Postgres API

Usage

1
2
3
4
5
6
7
8
postgres_request(
  path,
  type = "GET",
  ...,
  token = NULL,
  config = NULL,
  verbose = FALSE
)

Arguments

path

relative path to endpoint

type

one of "GET", "POST", "DELETE"

...

further arguments passed to one of GET, DELETE, POST, depending on type

token

token required to authenticate for the API. If omitted, a token will be provided by a call to fhpredict:::get_postgres_api_token.

config

optional. Configuration created with add_headers

verbose

if TRUE (the default is FALSE), the result of the request will be printed


KWB-R/fhpredict documentation built on Nov. 1, 2020, 5:58 a.m.