Module covid19

ballerinax/covid19 Ballerina library

1.5.1

Overview

This is a generated connector from Novel COVID-19 API v3.0.0 OpenAPI Specification.

Ballerina connector for COVID-19 provides easy access to latest COVID-19 related data across the world. Please refer to API documentation for more detail.

Quickstart

To use the COVID-19 connector in your Ballerina application, update the .bal file as follows:

Step 1: Import connector

Copy
import ballerinax/covid19

Step 2: Create a new connector instance

Copy
covid19:Client covid19Client = check new ();

Step 3: Invoke connector operation

  1. Get COVID-19 status by country
Copy
public function main() {
    covid19:CovidCountry statusByCountry = check covid19Client->getStatusByCountry("sri lanka");
}
  1. Use bal run command to compile and run the Ballerina program.

Import

import ballerinax/covid19;Copy

Metadata

Released date: over 1 year ago

Version: 1.5.1

License: Apache-2.0


Compatibility

Platform: any

Ballerina version: 2201.4.1

GraalVM compatible: Yes


Pull count

Total: 64038

Current verison: 24636


Weekly downloads


Source repository


Keywords

Lifestyle & Entertainment/News & Lifestyle

Cost/Free


Contributors

Other versions

See more...