get_content_parsed: Get content and parse it

View source: R/api.R

get_content_parsedR Documentation

Get content and parse it

Description

Sends a GET request to https://api.covid19tracker.ca/. If the request is successful and the returned content is JSON, formats it and returns it parsed (via jsonlite::fromJSON).

Usage

get_content_parsed(url)

Arguments

url

A string URL linking to the API. If it does not contain the base "https://api.covid19tracker.ca", then url will be combined with the base to attempt to make a valid URL (and return a warning).

Value

A list.

Examples


get_content_parsed("https://api.covid19tracker.ca/provinces")


canadacovid documentation built on Aug. 23, 2022, 1:06 a.m.