An intuitive and lightweight Kotlin wrapper for the Revolt API.
implementation 'com.github.ted3x:revolt-kotlin-api:v0.0.1-beta'
- Seamless integration with the Revolt platform.
- Supports all major authentication methods including MFA.
- Efficient error handling with comprehensive messages.
- Lazy initialization for better performance.
- Modular design for easy maintenance and updates.
// Sample code to illustrate authentication
val api = RevoltApi(API_KEY)
api.auth.login("username", "password")
// Sample code to illustrate how to fetch data using the wrapper
val user = api.auth.account.fetchSelf()
Our wrapper provides intuitive error messages to ease the debugging process. In case of an error, the library will throw a RevoltApiException
with a detailed message.
try {
val user = api.auth.account.fetchSelf()
} catch (e: RevoltApiException) {
println(e.message)
}
We welcome contributions! Please see our CONTRIBUTING.md file for details.
This project is licensed under the MIT License. See the LICENSE.md file for details.