VRChaKt

VRChat Web API wrapper for Kotlin.

Лицензия

Лицензия

MIT
Группа

Группа

jp.nephy
Идентификатор

Идентификатор

vrchakt
Последняя версия

Последняя версия

2.0.4
Дата

Дата

Тип

Тип

jar
Описание

Описание

VRChaKt
VRChat Web API wrapper for Kotlin.
Ссылка на сайт

Ссылка на сайт

https://github.com/NephyProject/VRChaKt
Система контроля версий

Система контроля версий

https://github.com/NephyProject/VRChaKt

Скачать vrchakt

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/jp.nephy/vrchakt/ -->
<dependency>
    <groupId>jp.nephy</groupId>
    <artifactId>vrchakt</artifactId>
    <version>2.0.4</version>
</dependency>
// https://jarcasting.com/artifacts/jp.nephy/vrchakt/
implementation 'jp.nephy:vrchakt:2.0.4'
// https://jarcasting.com/artifacts/jp.nephy/vrchakt/
implementation ("jp.nephy:vrchakt:2.0.4")
'jp.nephy:vrchakt:jar:2.0.4'
<dependency org="jp.nephy" name="vrchakt" rev="2.0.4">
  <artifact name="vrchakt" type="jar" />
</dependency>
@Grapes(
@Grab(group='jp.nephy', module='vrchakt', version='2.0.4')
)
libraryDependencies += "jp.nephy" % "vrchakt" % "2.0.4"
[jp.nephy/vrchakt "2.0.4"]

Зависимости

compile (4)

Идентификатор библиотеки Тип Версия
org.jetbrains.kotlin : kotlin-stdlib-jdk8 jar 1.3.31
io.ktor : ktor-client-core-jvm jar 1.2.0
jp.nephy : jsonkt jar 4.10
io.github.microutils : kotlin-logging jar 1.6.26

test (7)

Идентификатор библиотеки Тип Версия
io.ktor : ktor-client-apache jar 1.2.0
io.ktor : ktor-client-cio jar 1.2.0
io.ktor : ktor-client-jetty jar 1.2.0
io.ktor : ktor-client-okhttp jar 1.2.0
ch.qos.logback : logback-core jar 1.2.3
ch.qos.logback : logback-classic jar 1.2.3
org.fusesource.jansi : jansi jar 1.17.1

Модули Проекта

Данный проект не имеет модулей.

VRChaKt

VRChat API wrapper for Kotlin. (WIP)

Feature

  • Null-safety. Lightweight. Fast. Written in Kotlin!
  • Supports both of Blocking (Sync) and Non-blocking (Async) execution.
  • Pre-made json models.
  • Endpoint version switch for future api changes.

TODO

  • Support more endpoints.
  • Documentize / Update README.

Usage

import jp.nephy.vrchakt.VRChaKtClient
import jp.nephy.vrchakt.core.EndpointVersion

fun main(args: Array<String>) {
    VRChaKtClient {
        endpointVersion = EndpointVersion.Release
        userAgent = "TestClient (https://github.com/NephyProject/VRChaKt)"
        authentication {
            user("username", "password")
        }
    }.use {
        // Get The Hub world. (Blocking)
        val world = it.world.show("wrld_b51f016d-1073-4c75-930d-9f44222c7fc3").complete()
        println(world.result.description)
        
        // Get friends list. (Async)
        it.friend.list(offline = true).queue { result ->
            result.forEach { friend ->
                println(friend.displayName)
            }
        }
    }
}

License

This project is provided with MIT License.

Версии библиотеки

Версия
2.0.4
2.0.3
2.0.2
2.0.1
2.0.0
1.0.1
1.0.0