A simple Java API Wrapper for the Zermelo API
https://docs.mrwouter.nl/zermelo4j/
Add this repository
<repository>
<id>mrwouter-repo</id>
<url>https://repo.mrwouter.nl</url>
</repository>
And this dependency
<dependency>
<groupId>nl.mrwouter</groupId>
<artifactId>Zermelo4J</artifactId>
<version>2.0</version>
</dependency>
import nl.mrwouter.zermelo4j.ZermeloAPI;
class ZermeloTest {
public static void main(String[] args) {
// Access token can be created by using ZermeloAPI#getAccessToken("[school]", "[koppel app code]");
ZermeloAPI api = ZermeloAPI.getAPI("[school]", "[AccessToken]");
System.out.println(api.getAccessToken());
Date endDate = new Date();
endDate.setTime(endDate.getTime() - 432000000L);
try {
api.getAppointments(endDate, new Date())
.forEach(appointment -> System.out.println(appointment.toString()));
api.getAnnouncements()
.forEach(announcement -> System.out.println(announcement.toString()));
} catch (ZermeloApiException exception) {
exception.printStackTrace();
}
}
}
This project is not created by nor associated in any way with Zermelo Software B.V.