query_gideon_api: GIDEON API Query

View source: R/query_gideon_api.R

query_gideon_apiR Documentation

GIDEON API Query

Description

Wrapper to the GIDEON API

Usage

query_gideon_api(path, query = NULL, to_dataframe = TRUE)

Arguments

path

The API path according to the API documentation

query

Additional URL query parameters to send as a named list

to_dataframe

Automatically convert the response to a dataframe.

Value

A dataframe representing the response or a string of the JSON response if to_dataframe is set to FALSE

See Also

https://api-doc.gideononline.com/

Examples

# Most calls only need the path
query_gideon_api("/diseases/10050/incubation-periods")

# Some calls can include a named list to be used as query parameters
query_gideon_api("/diseases/filter",
                 list(agent=1014,
                      vector="T",
                      vehicle="MI",
                      reservoir="A",
                      country="G100"))


gideononline/gideon-api-r documentation built on March 19, 2022, 5:07 p.m.