/Coronavirus

Java API Wrapper for tracking coronavirus (COVID-19, SARS-CoV-2) via https://git.io/Jvoep

Primary LanguageJavaBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

Coronavirus

License
Java API Wrapper for getting real-time Coronavirus (COVID-19, SARS-CoV-2) statistics via https://git.io/Jvoep.

Example

class Main {
    public static void main(String[] args){
        // Create an instance of the API.
        Coronavirus coronavirus = new Coronavirus();
        // Get latest data.
        Latest latest = coronavirus.getLatest();
        
        System.out.println("Latest Coronavirus Data:");
        System.out.println("Confirmed Cases: " + latest.getConfirmed());
        System.out.println("Deaths: " + latest.getDeaths());
        System.out.println("Recovered: " + latest.getRecovered());
    }
}

Installation

You can add the library to your project via Jitpack.