ats_post: POST

ats_postR Documentation

POST

Description

Submit an http POST request to the ATS website

Usage

ats_post(path, body = list(), task = "download data", ...)

Arguments

path

Character or list for the request path

body

Named list of query parameters

task

Character describing the purpose of the current request. If the request fails the message 'Failed to [task]' is displayed.

...

Additional options passed to httr::POST

Value

Response object

See Also

POST

Examples

## Not run: 

ats_login("mary", ".")

ats_select_collars("044286")

ats_post(
  path = "Servidor.ashx",
  body = list(
    consulta = "download_trans_collars"
  ),
  task = "download transmission data"
) %>%
  ats_parse_xml()


## End(Not run)


Huh/collar documentation built on Aug. 5, 2022, 11:02 p.m.