View source: R/query_gideon_api.R
| query_gideon_api | R Documentation |
Wrapper to the GIDEON API
query_gideon_api(path, query = NULL, to_dataframe = TRUE)
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. |
A dataframe representing the response or a string of the JSON response if
to_dataframe is set to FALSE
https://api-doc.gideononline.com/
# 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"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.