cdr_call_vec_api: A basic call to the Vectronics API

Description Usage Arguments Details Value Examples

View source: R/call_api.R

Description

A basic call to the Vectronics API

Usage

1

Arguments

url

a character string representing the url to query

Details

At the time of this writing the API does not return any data.

Value

A tibble...eventually

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
#  Build url from base url, collar id, collar key and data type
url <- cdr_build_vec_urls(
  base_url = NULL,
  collar_id = cdr_get_id_from_key(
    system.file("extdata", package = "CollarDownloadeR")
  ),
  collar_key = cdr_get_keys(
    system.file(
      "extdata",
      package = "CollarDownloadeR"
    )
  ),
  type = "act"
)
# Call API - This will not work without a valid key and collar id
#cdr_call_vec_api(url)

Huh/CollarDownloadeR documentation built on May 27, 2019, 11:47 p.m.