Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vinceh121/jskolengo
Unofficial Java wrapper for the new Skolengo mobility API
https://github.com/vinceh121/jskolengo
api-wrapper jsonapi skolengo
Last synced: 2 months ago
JSON representation
Unofficial Java wrapper for the new Skolengo mobility API
- Host: GitHub
- URL: https://github.com/vinceh121/jskolengo
- Owner: vinceh121
- License: gpl-3.0
- Created: 2023-04-19T18:41:59.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-08-02T14:13:54.000Z (6 months ago)
- Last Synced: 2024-08-02T15:57:18.829Z (6 months ago)
- Topics: api-wrapper, jsonapi, skolengo
- Language: Java
- Homepage:
- Size: 114 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Unofficial Java wrapper for the new Skolengo mobility API
Part of The Rabbit Team: https://discord.gg/9u69mxsFT6
## Using
Use this [Maven repository](https://maven.vinceh121.me/#/snapshots)
```xmlvinceh121-snapshots
vinceh121's Maven repository
https://maven.vinceh121.me/snapshots```
And add this [dependency](https://maven.vinceh121.me/#/snapshots/me/vinceh121/jskolengo/wrapper)
```xmlme.vinceh121.jskolengo
wrapper
0.0.1-SNAPSHOT```
Example usage:
```java
JSkolengoAnonymous anon = new JSkolengoAnonymous();// Collections by pagination, limit and offset
JSONAPIDocument> schools = anon.searchSchools("Jules Ferry", 0, 10);
System.out.println(schools);// Collections by iterable
for (School sch : anon.searchSchools("Jules Ferry")) {
System.out.println(sch);
}// Collections by Java Stream
anon.searchSchools("Jules Ferry").stream().forEach(System.out::println);// Authenticated endpoints
JSkolengo sko = new JSkolengo();
sko.setBearerToken("aaa.bbb.ccc"); // JWT access token, obtained thought OpenID Connect, see https://github.com/maelgangloff/scolengo-token
sko.setEmsCode("entmip"); // See School#getEmsCodesko.fetchAgendas(LocalDate.now(), LocalDate.now().plusDays(14)).stream().forEach(System.out::println);
```