fc_headers | R Documentation |
authentication is done via hmac, see fc_headers()
.
fc_headers(
method = c("GET", "PUT", "POST", "DELETE"),
path = NULL,
public_key = Sys.getenv("FC_PUBLIC_KEY"),
private_key = Sys.getenv("FC_PRIVATE_KEY")
)
fc_request(
method = c("GET", "PUT", "POST", "DELETE"),
path = NULL,
body = NULL,
public_key = Sys.getenv("FC_PUBLIC_KEY"),
private_key = Sys.getenv("FC_PRIVATE_KEY"),
verbose = FALSE,
timeout = 10
)
method |
request method |
path |
request path (required) |
public_key |
public key.
Read by default from env variable |
private_key |
private key.
Read by default from env variable |
body |
request body named list. Will be passed to |
verbose |
logical, should the request be printed? |
timeout |
number of seconds to wait for a response before giving up. |
an object of type "request" as returned by httr::add_headers()
.
a list with the parsed response.
https://api.fieldclimate.com/v2/docs/#authentication-hmac
fc_headers(path = "/user", public_key = "invalid", private_key = "invalid")
## Not run:
fc_request("GET", "/user")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.