Description Usage Arguments Value API Documentation
Send a general request to the OPEN WEATHER API by specifying an endpoint and a sequence
of parameters. The 'openweather_request()' function forms and submits a request to
a specified endpoint of the OPEN WEATHER API. The return is either the 'response'
object from GET
or the response parsed as a 'tibble'.
1 | openweather_request(..., to_frame = TRUE, print_req = FALSE)
|
... |
A series of named parameters to be used in the query. Must be of the form 'param_key = "param_value"'. Acceptable parameters are endpoint-specific. |
to_frame |
A boolean value indicating whether or not the response
should be parsed and formatted as a data frame. If 'FALSE',
a 'response' object is returned and further processing can be done with
|
print_req |
A boolean value indicating whether or not the request should be printed as well. Useful for debugging. Default is 'FALSE'. |
endpoint |
A string representing the OPEN WEATHER API endpoint of interest. _Required parameter._ |
If 'to_frame = TRUE', a 'tibble' containing the parsed response.
If 'to_frame = FALSE', a 'response' object returned directly from
GET
.
[Open Weather Map API](https://openweathermap.org/api)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.