Skip to content

LCLPYT/DSBmobile-API

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DSBmobile-API

License

Unofficial DSBmobile API for Java.

A simple Java library for DSBmobile.

Code example

TimeTable

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.

News

Note: News are not yet implemented in the new api.

Implementation

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>

Release History

  • 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

Dependencies

Info

Fork by LCLPYT 2019

© Sematre 2018

Distributed under the MIT License. See LICENSE for more information.

About

A simple Java library for DSBmobile web interface

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • Java 100.0%