Skip to content

Repository files navigation

It's Learning API for Java

A complete Java API for the It's Learning platform

Quickstart
publicclassMain {
publicstaticvoidmain(String[] args) {
try {
ItslearningConnectorconnector = newItslearningConnector("organisationName", "username", "password");
HashMap<Integer, Course> courses = connector.getCourses();
for (Coursecourse : courses.values()) {
System.out.println(course.getTitle());
}
for (Tasktask : connector.getTasks().values()) {
if (courses.containsKey(task.getLocationID())) {
System.out.println(task.getTitle());
}
}
for (Notificationnotification : connector.getNotifications().values()) {
if (notification.getType() != Notification.NotificationType.ASSESSMENT) {
System.out.println(notification.getText());
}
}
for (NewsUpdatenewsUpdate : connector.getNews().values()) {
if (newsUpdate.getPublishedDate().isAfter(LocalDateTime.now().minusDays(7))) {
System.out.println(newsUpdate.getText());
}
}
} catch (IOExceptione) {
e.printStackTrace();
}
}
}

Contributing

Any contribution is welcome. If you're not able to code it yourself, perhaps someone else is - so post an issue if there's anything on your mind.

Disclaimer

This project is not in any way affiliated with It's Learning.

About

A complete Java API for the It's Learning platform

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages