This project was started in 2017. Most of the relevant functionality still works. Throughout the years, Duolingo changed their API significantly, rendering some older versions of the code useless.
You can start using DuoApi in your project via JitPack.
First, add the repo
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Then, add the dependency
<dependency>
<groupId>com.github.llusx</groupId>
<artifactId>DuoApi</artifactId>
<version>0.1-beta</version>
</dependency>
Finally, enjoy!
Main class containing functionality for various operations allowed by Duolingo API.
New wrapper dataclass for information extracted from the DuoApi
class.
Singleton class to fetch url of the audio file for a word