https://github.com/cardistymo/itslearningjavaapi
A complete Java API for the It's Learning platform
https://github.com/cardistymo/itslearningjavaapi
api itslearning java
Last synced: over 1 year ago
JSON representation
A complete Java API for the It's Learning platform
- Host: GitHub
- URL: https://github.com/cardistymo/itslearningjavaapi
- Owner: Cardistymo
- Created: 2022-10-05T14:37:55.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-10-09T13:53:55.000Z (over 3 years ago)
- Last Synced: 2025-01-27T14:47:08.163Z (over 1 year ago)
- Topics: api, itslearning, java
- Language: Java
- Homepage:
- Size: 67.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# It's Learning API for Java
A complete Java API for the It's Learning platform
##### Quickstart
```Java
public class Main {
public static void main(String[] args) {
try {
ItslearningConnector connector = new ItslearningConnector("organisationName", "username", "password");
HashMap courses = connector.getCourses();
for (Course course : courses.values()) {
System.out.println(course.getTitle());
}
for (Task task : connector.getTasks().values()) {
if (courses.containsKey(task.getLocationID())) {
System.out.println(task.getTitle());
}
}
for (Notification notification : connector.getNotifications().values()) {
if (notification.getType() != Notification.NotificationType.ASSESSMENT) {
System.out.println(notification.getText());
}
}
for (NewsUpdate newsUpdate : connector.getNews().values()) {
if (newsUpdate.getPublishedDate().isAfter(LocalDateTime.now().minusDays(7))) {
System.out.println(newsUpdate.getText());
}
}
} catch (IOException e) {
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._