Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/seggan/kasey
A Stack Exchange chat library for Kotlin
https://github.com/seggan/kasey
Last synced: about 2 months ago
JSON representation
A Stack Exchange chat library for Kotlin
- Host: GitHub
- URL: https://github.com/seggan/kasey
- Owner: Seggan
- License: lgpl-3.0
- Created: 2024-07-25T01:10:52.000Z (6 months ago)
- Default Branch: master
- Last Pushed: 2024-08-01T01:37:24.000Z (5 months ago)
- Last Synced: 2024-08-02T03:11:43.276Z (5 months ago)
- Language: Kotlin
- Size: 104 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# kasey
![Maven Central Version](https://img.shields.io/maven-central/v/io.github.seggan/kasey)
[![Docs](https://img.shields.io/badge/docs-gh--pages-blue)](https://seggan.github.io/kasey/)A modern Stack Exchange client for Kotlin.
## Add as dependency
### Gradle
```kotlin
repositories {
mavenCentral()
}dependencies {
implementation("io.github.seggan:kasey:VERSION")
}
```### Maven
```xmlio.github.seggan
kasey
VERSION```
## Example
```kotlin
suspend fun main() {
val client = Client()
client.login("[email protected]", "password")
val room = client.joinRoom(1) // Sandbox
val message = room.sendMessage("Hello, world!")
println(message.content)
message.edit("Hello, world! (edited)")
client.close()
}
```## Credits
The work of having to reverse engineer the chat API was saved by looking at the various different
existing libraries, particularly [chatexchange](https://github.com/SOBotics/chatexchange) (public domain)
and [sechat](https://github.com/gingershaped/sechat) (LGPL-2.1).