get_head: Get Head

Description Usage Arguments Value Examples

Description

Request header for the given input arguments (filters, structure, and lastest_by).

Usage

1
get_head(filters, structure)

Arguments

filters

API filters. See the API documentations for additional information.

structure

Structure parameter. See the API documentations for additional information.

Value

list Request headers.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
query_filters <- c(
   "areaType=region"
)

query_structure <- list(
    date = "date", 
    name = "areaName", 
    code = "areaCode", 
    daily = "newCasesBySpecimenDate",
    cumulative = "cumCasesBySpecimenDate"
)

headers <- get_head(filters = query_filters, structure = query_structure)

# We can now access header parameters. For instance, to get the 
# timestamp for the latest update, we do as follows:
print(headers$`last-modified`)

publichealthengland/coronavirus-dashboard-api-R-sdk documentation built on Aug. 26, 2020, 9:40 a.m.