https://github.com/crykn/jpapi
Ein Java Wrapper für die Pewn API
https://github.com/crykn/jpapi
gson pewn pewn-api
Last synced: 10 months ago
JSON representation
Ein Java Wrapper für die Pewn API
- Host: GitHub
- URL: https://github.com/crykn/jpapi
- Owner: crykn
- License: mit
- Created: 2015-06-09T12:52:37.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2018-09-12T22:34:51.000Z (over 7 years ago)
- Last Synced: 2025-03-18T10:47:58.028Z (about 1 year ago)
- Topics: gson, pewn, pewn-api
- Language: Java
- Size: 750 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# jpapi
jpapi ist ein Java Wrapper für die [Pewn API](http://pewn.de/papi/). Ziel ist es, eine möglichst übersichtliche und intuitiv benutzbare Schnittstelle bereitzustellen, die in Java einen einfachen Zugriff auf die Funktionen der API erlaubt.
## Erste Schritte
[Das jpapi Wiki](https://github.com/crykn/jpapi/wiki) enthält ausführliche Informationen zum Aufsetzen eines Projekts, der Funktionsweise des Wrappers und einige aufschlussreiche Beispiele. Die Java Dokumentation lässt sich [hier](http://crykn.github.io/jpapi-javadoc/) finden.
```java
Project project = Project.getByProjectId(8568);
User author = project.getAuthor();
System.out.println(author.getName());
Hashtag[] hashtags = project.getHashtags();
for (Hashtag h : hashtags) {
System.out.println(h.getName());
}
System.out.println(Project.getRandom().getImages()[0].getFileName());
```
## Download
Die aktuellste Version steht [hier](https://github.com/crykn/jpapi/releases/) zum Download bereit.
[](https://jitpack.io/#crykn/jpapi)
## Abhängigkeiten
* [Gson](http://mvnrepository.com/artifact/com.google.code.gson/gson/2.8.5)
* [Retrofit](http://mvnrepository.com/artifact/com.squareup.retrofit2/retrofit/2.4.0)
* [Retrofit Gson Adapter](http://mvnrepository.com/artifact/com.squareup.retrofit2/converter-gson/2.4.0)