powered by
Parse the results of a call
parse_response(response, format, clean_dates = TRUE)
A response object returned from the API request
character string; format of the content of the response object; either "csv" or "xml"
boolean; whether to clean date/time columns
A tibble if format == "csv", otherwise a list
# NOT RUN { list_example <- parse_response( send_request( build_call("TEMP", api_key = "12345", from_date = "01 Jun 2019", to_date = "10 Jun 2019", service_type = "xml") ), "xml") # }
Run the code above in your browser using DataLab