Skip to content

Library to make it easy to work with REST API of official Czech Covid data.

License

Notifications You must be signed in to change notification settings

radekBednarik/covid-czech-data-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wrapper for official Czech COVID data API

This library provides abstraction for the official Czech COVID data API. It is wrapper around the API, which provides a more user-friendly interface.

System requirements

  • have Deno installed. This library is primarily tested against Deno.

  • this library also supports Node.js as well, but only as best effort.

  • have a valid token for the API. You can get it by registering at the API registration page.

Installation

Use JSR offered options to install.

Example of usage

import Client from "@bedna/czech-covid-data-api-lib";

// Client is a singleton
const client = Client.getInstance({ token: "<YOUR TOKEN>" });

const [data, err] = await client.basicOverview.getBasicOverviewV3();

if (!err) {
  console.log(JSON.stringify(data, null, 2));
}

Documentation

  • official API documentation is HERE