Unofficial DSBmobile API for Java.
A simple Java library for DSBmobile.
try {
DSBMobile dsbMobile = new DSBMobile("username", "password");
ArrayList<TimeTable> timeTables = dsbMobile.getTimeTables();
for (TimeTable timeTable : timeTables) {
String date = timeTable.getDate();
String groupName = timeTable.getGroupName();
String id = timeTable.getId();
String title = timeTable.getTitle();
String url = timeTable.getUrl();
}
} catch (IllegalArgumentException e) {
// Wrong username or password!
}
Note: The try-catch block is not necessary.
Note: News are not yet implemented in the new api.
Gradle:
Step 1. Add the JitPack repository to your build file Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Step 2. Add the dependency
dependencies {
implementation 'com.github.LCLPYT:DSBmobile-API:1.6f'
}
Maven:
Step 1. Add the JitPack repository to your build file
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
<dependency>
<groupId>com.github.LCLPYT</groupId>
<artifactId>DSBmobile-API</artifactId>
<version>1.6f</version>
</dependency>
- 1.5f
- Now using the app interface.
- Huge performance update.
- 1.4f
- removed due to malfunction
- 1.3
- removed due to malfunction
- 1.2
- Maven implementation
- 1.1
- Code cleanup
- Readme update
- 1.0
- Initial version
Fork by LCLPYT 2019
© Sematre 2018
Distributed under the MIT License. See LICENSE
for more information.