1.0.1 • Published 6 years ago
covid19-api-pt v1.0.1
Covid19 API PT Wapper
An API wrapper to get information about the Covid19 from Portugal.
wraps open API DSSG Portugal / VOST REST API by dssg-pt
Installation
Npm:
npm i covid19-api-ptYarn:
yarn add covid19-api-ptUsage
JavaScript:
const { CovidPT } = require("covid19-api-pt");
const track = new CovidPT();TypeScript:
import { CovidPT } from "covid19-api-pt";
const track = new CovidPT();Methods
Status
.status(); // For State of the APIAll
.all(); // For Full DatasetLast Update
.last(); // For Last Updated EntryGet Update
.get('date'); // For Specific Date.get('date1', 'date2'); // For Specific Range of DatesThanks!