send_emon_request: Send a request to emonCMS

View source: R/util.R

send_emon_requestR Documentation

Send a request to emonCMS

Description

Send a request to emonCMS

Usage

send_emon_request(
  uri,
  params = NULL,
  method = "GET",
  post_body = NULL,
  verbose = FALSE
)

Arguments

uri

Leaf node of API endpoint. Appended to 'emoncms_uri()'.

params

Any additional query parameters to send. Defaults to NULL.

method

Wether to GET (default) or POST the call.

post_body

For POST calls, any fields to specify in the POST body.

verbose

If set (boolean), will warn on the query parameters to be sent

Value

An httr response object content user_agent http_error


davidski/emoncmsr documentation built on April 20, 2022, 6:40 p.m.