Makes an HTTP GET request to the specified URL and retrieves the content.
Usage
get_data(url, headers = NULL, params = NULL)
Arguments
- url
A character string specifying the URL to fetch data from.
A named character vector of HTTP headers to include in the
request. Default is NULL
.
- params
Parameters to include in the request.
Value
The content of the HTTP response. The type of content depends on the
response from the server.