An corona-warn-app API client. For a documentation on the API see https://github.com/corona-warn-app/cwa-server#service-apis.
Run yarn add corona-warn-app
or npm install corona-warn-app
.
A complete documentation is available at https://ffflorian.github.io/api-clients/packages/corona-warn-app/.
import {CoronaWarnApp} from 'corona-warn-app';
const cwa = new CoronaWarnApp();
cwa.api.diagnosisKeys.getCountries().then(response => {
//
});
cwa.api.diagnosisKeys.getDatesByCountry('DE').then(response => {
//
});