This library is a Mastodon client library designed for Kotlin Multiplatform. It depends on khttpclient and uses Ktor Client internally. Therefore, this library is available on platforms supported by Kotlin Multiplatform and Ktor Client. The behavior on each platform depends on khttpclient.
Below is how to use it with Gradle in Kotlin on the respective platforms. If you want to use it on Apple platforms, please refer to ktumblr-cocoapods. For usage in JavaScript, please refer to ktumblr.js. Refer to the test code for how to call each API.
repositories {
mavenCentral()
+ maven { url = uri("https://repo.repsy.io/mvn/uakihir0/public") }
}
dependencies {
+ implementation("work.socialhub.ktumblr:core:0.0.1-SNAPSHOT")
}
First, create an application and request a URL for the user to authenticate.
WIP
After the user authenticates, the code is passed via the query in the redirected URL, so use it to obtain the access token as follows.
WIP
WIP
MIT License