Skip to content
This repository has been archived by the owner on Mar 26, 2023. It is now read-only.

mew/Coronavirus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.