Skip to content

jan-tennert/Corona-API-Client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Corona-API-Client by Jan

Requirements

  • JDK 11 or higher
  • OkHttp (tested with 4.10.0-RC1)
  • JSON (tested with 20201115)

Installation

Maven:
<repositories>
	<repository>
		<id>jitpack.io</id>
		<url>https://jitpack.io</url>
	</repository>
</repositories>
<dependency>
	<groupId>com.github.jan-tennert</groupId>
	<artifactId>Corona-API-Client</artifactId>
	<version>1.0.0</version>
</dependency>
JAR Download: Click Here

Examples

CoronaAPIClient client = new CoronaAPIClient();

System.out.println(client.getWorldWideStats().getTotalConfirmed().getCases());

CoronaCountry germany = client.getCountry("DE");
System.out.println(germany.getTotalConfirmed().getCases());
System.out.println(germany.getNewDeathsForToday().getCases());

List<CoronaCountry> countries = client.findCountry("d");

More Information

If you found a bug or you have an idea, please create a new issue: Click here

About

No description, website, or topics provided.

Resources

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages