Skip to content

uakihir0/ktumblr

Repository files navigation

日本語

ktumblr

Maven metadata URL

badge badge badge badge

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.

Usage

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")
}

Authentication

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

Create Post

WIP

License

MIT License

Author

Akihiro Urushihara