Skip to content

uakihir0/kmatrix

Repository files navigation

kmatrix

badge badge badge badge

This library is a Matrix client library that supports Kotlin Multiplatform. It depends on khttpclient and internally uses Ktor Client. Therefore, this library is available on Kotlin Multiplatform and platforms supported by Ktor Client. The behavior on each platform depends on khttpclient.

Usage

Below is how to use it in Kotlin with Gradle on supported platforms.

repositories {
    mavenCentral()
+   maven { url = uri("https://repo.repsy.io/mvn/uakihir0/public") }
}

dependencies {
+   implementation("work.socialhub.kmatrix:core:0.0.1-SNAPSHOT")
+   implementation("work.socialhub.kmatrix:stream:0.0.1-SNAPSHOT")
}

Basic Usage

val matrix = MatrixFactory.instance(
    {{HOST}}, {{ACCESS_TOKEN}}
)

val response = matrix.rooms().getJoinedRooms()
println(response.data.joinedRooms)

License

MIT License

Author

Akihiro Urushihara

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published