kpastebin

Multiplatform Kotlin library to interact with the pastebin.com API.

Лицензия

Лицензия

Категории

Категории

Сеть
Группа

Группа

net.pearx.kpastebin
Идентификатор

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

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

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

1.0.0
Дата

Дата

Тип

Тип

pom
Описание

Описание

kpastebin
Multiplatform Kotlin library to interact with the pastebin.com API.
Ссылка на сайт

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

https://github.com/pearxteam/kpastebin
Организация-разработчик

Организация-разработчик

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

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

https://github.com/pearxteam/kpastebin

Скачать kpastebin

Имя Файла Размер
kpastebin-1.0.0.pom
kpastebin-1.0.0.module 2 KB
Обзор

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

<!-- https://jarcasting.com/artifacts/net.pearx.kpastebin/kpastebin/ -->
<dependency>
    <groupId>net.pearx.kpastebin</groupId>
    <artifactId>kpastebin</artifactId>
    <version>1.0.0</version>
    <type>pom</type>
</dependency>
// https://jarcasting.com/artifacts/net.pearx.kpastebin/kpastebin/
implementation 'net.pearx.kpastebin:kpastebin:1.0.0'
// https://jarcasting.com/artifacts/net.pearx.kpastebin/kpastebin/
implementation ("net.pearx.kpastebin:kpastebin:1.0.0")
'net.pearx.kpastebin:kpastebin:pom:1.0.0'
<dependency org="net.pearx.kpastebin" name="kpastebin" rev="1.0.0">
  <artifact name="kpastebin" type="pom" />
</dependency>
@Grapes(
@Grab(group='net.pearx.kpastebin', module='kpastebin', version='1.0.0')
)
libraryDependencies += "net.pearx.kpastebin" % "kpastebin" % "1.0.0"
[net.pearx.kpastebin/kpastebin "1.0.0"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

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

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

KPastebin Maven Central Awesome Kotlin Badge

License Discord Test & Deploy | develop Test & Deploy | master Coverage

Multiplatform Kotlin library to interact with the pastebin.com API.

Setup

  1. Add the lib to your project's dependencies:
  • Groovy (replace $kpastebin_version with the version you want):
 // universal dependency for Gradle 5.3 and above
 // in case of multiplatform project, just specify the dependency for commonMain/commonTest source set
 implementation "net.pearx.kpastebin:kpastebin:$kpastebin_version" 
 // for Gradle versions below 5.3:
 implementation "net.pearx.kpastebin:kpastebin-metadata:$kpastebin_version" // for Common
 // or
 implementation "net.pearx.kpastebin:kpastebin-jvm:$kpastebin_version" // for JVM
 // or
 implementation "net.pearx.kpastebin:kpastebin-js:$kpastebin_version" // for JS
 // or
 implementation "net.pearx.kpastebin:kpastebin-android:$kpastebin_version" // for Android
 // or
 implementation "net.pearx.kpastebin:kpastebin-PLATFORM_YOU_WANT:$kpastebin_version" // for Native
  • Kotlin (replace $kpastebinVersion with the version you want):
 // universal dependency for Gradle 5.3 and above
 // in case of multiplatform project, just specify the dependency for commonMain/commonTest source set
 implementation("net.pearx.kpastebin:kpastebin:$kpastebinVersion") 
 // for Gradle versions below 5.3:
 implementation("net.pearx.kpastebin:kpastebin-metadata:$kpastebinVersion") // for Common
 // or
 implementation("net.pearx.kpastebin:kpastebin-jvm:$kpastebinVersion") // for JVM
 // or
 implementation("net.pearx.kpastebin:kpastebin-js:$kpastebinVersion") // for JS
 // or
 implementation("net.pearx.kpastebin:kpastebin-android:$kpastebinVersion") // for Android
 // or
 implementation("net.pearx.kpastebin:kpastebin-PLATFORM_YOU_WANT:$kpastebinVersion") // for Native
  1. Add kotlinx.coroutines and any Ktor client engine to your project's dependencies.

  2. Use the library and have fun! See net.pearx.kpastebin.PastebinClient class KDoc for more info.

Examples

runBlocking {
    // see KDoc for more info
    val client = PastebinClient("your dev key") // create a PastebinClient instance. You can get your dev key here: https://pastebin.com/doc_api#1
    client.getPaste("0b42rwhf") // getting a paste
    
    client.login("username", "password") // logging in
    client.getUserDetails().accountType // getting current user account type
}
net.pearx.kpastebin

PearX Team

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

Версия
1.0.0