{"id":19381863,"url":"https://github.com/pearxteam/kpastebin","last_synced_at":"2025-07-18T15:34:32.736Z","repository":{"id":57737574,"uuid":"287910512","full_name":"pearxteam/kpastebin","owner":"pearxteam","description":"Multiplatform Kotlin library to interact with the pastebin.com API.","archived":false,"fork":false,"pushed_at":"2020-08-29T22:15:26.000Z","size":156,"stargazers_count":10,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-23T20:47:37.811Z","etag":null,"topics":["gradle-kotlin-dsl","kotlin","kotlin-coroutines","kotlin-multiplatform","kotlin-multiplatform-library","ktor","ktor-client","pastebin","pastebin-api","pastebin-client"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pearxteam.png","metadata":{"files":{"readme":"README.MD","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.TXT","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-08-16T09:13:39.000Z","updated_at":"2022-10-03T15:51:47.000Z","dependencies_parsed_at":"2022-08-24T10:52:21.312Z","dependency_job_id":null,"html_url":"https://github.com/pearxteam/kpastebin","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":"pearxteam/multigradle-library-template","purl":"pkg:github/pearxteam/kpastebin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pearxteam%2Fkpastebin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pearxteam%2Fkpastebin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pearxteam%2Fkpastebin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pearxteam%2Fkpastebin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pearxteam","download_url":"https://codeload.github.com/pearxteam/kpastebin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pearxteam%2Fkpastebin/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265786577,"owners_count":23828289,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gradle-kotlin-dsl","kotlin","kotlin-coroutines","kotlin-multiplatform","kotlin-multiplatform-library","ktor","ktor-client","pastebin","pastebin-api","pastebin-client"],"created_at":"2024-11-10T09:18:38.846Z","updated_at":"2025-07-18T15:34:32.713Z","avatar_url":"https://github.com/pearxteam.png","language":"Kotlin","readme":"# KPastebin [![Maven Central](https://img.shields.io/maven-central/v/net.pearx.kpastebin/kpastebin.svg?label=version\u0026logo=kotlin\u0026logoColor=white)](https://search.maven.org/search?q=g:%22net.pearx.kpastebin%22%20AND%20a:%22kpastebin%22) [![Awesome Kotlin Badge](https://kotlin.link/awesome-kotlin.svg)](https://github.com/KotlinBy/awesome-kotlin)\n[![License](https://img.shields.io/github/license/pearxteam/kpastebin.svg)](https://raw.githubusercontent.com/pearxteam/kpastebin/master/LICENSE.TXT)\n[![Discord](https://img.shields.io/discord/136085738151346176.svg?logo=discord\u0026logoColor=white)](https://discord.gg/q9cX9QE)\n![Test \u0026 Deploy | develop](https://github.com/pearxteam/kpastebin/workflows/Test%20\u0026%20Deploy%20%7C%20develop/badge.svg?branch=develop)\n![Test \u0026 Deploy | master](https://github.com/pearxteam/kpastebin/workflows/Test%20\u0026%20Deploy%20%7C%20master/badge.svg?branch=master)\n[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=pearxteam_kpastebin\u0026metric=coverage)](https://sonarcloud.io/dashboard?id=pearxteam_kpastebin)\n\n\nMultiplatform Kotlin library to interact with the pastebin.com API.\n\n# Setup\n1. Add the lib to your project's dependencies:\n\n* Groovy (replace `$kpastebin_version` with the version you want):\n```groovy\n // universal dependency for Gradle 5.3 and above\n // in case of multiplatform project, just specify the dependency for commonMain/commonTest source set\n implementation \"net.pearx.kpastebin:kpastebin:$kpastebin_version\" \n```\n```kotlin\n // for Gradle versions below 5.3:\n implementation \"net.pearx.kpastebin:kpastebin-metadata:$kpastebin_version\" // for Common\n // or\n implementation \"net.pearx.kpastebin:kpastebin-jvm:$kpastebin_version\" // for JVM\n // or\n implementation \"net.pearx.kpastebin:kpastebin-js:$kpastebin_version\" // for JS\n // or\n implementation \"net.pearx.kpastebin:kpastebin-android:$kpastebin_version\" // for Android\n // or\n implementation \"net.pearx.kpastebin:kpastebin-PLATFORM_YOU_WANT:$kpastebin_version\" // for Native\n```\n\n* Kotlin (replace `$kpastebinVersion` with the version you want):\n```kotlin\n // universal dependency for Gradle 5.3 and above\n // in case of multiplatform project, just specify the dependency for commonMain/commonTest source set\n implementation(\"net.pearx.kpastebin:kpastebin:$kpastebinVersion\") \n```\n```kotlin\n // for Gradle versions below 5.3:\n implementation(\"net.pearx.kpastebin:kpastebin-metadata:$kpastebinVersion\") // for Common\n // or\n implementation(\"net.pearx.kpastebin:kpastebin-jvm:$kpastebinVersion\") // for JVM\n // or\n implementation(\"net.pearx.kpastebin:kpastebin-js:$kpastebinVersion\") // for JS\n // or\n implementation(\"net.pearx.kpastebin:kpastebin-android:$kpastebinVersion\") // for Android\n // or\n implementation(\"net.pearx.kpastebin:kpastebin-PLATFORM_YOU_WANT:$kpastebinVersion\") // for Native\n```\n\n2. Add [kotlinx.coroutines](https://github.com/Kotlin/kotlinx.coroutines) and any [Ktor client engine](https://ktor.io/clients/http-client/engines.html) to your project's dependencies.\n\n3. Use the library and have fun! See [net.pearx.kpastebin.PastebinClient](src/commonMain/kotlin/net/pearx/kpastebin/PastebinClient.kt) class KDoc for more info.\n\n# Examples\n```kotlin\nrunBlocking {\n    // see KDoc for more info\n    val client = PastebinClient(\"your dev key\") // create a PastebinClient instance. You can get your dev key here: https://pastebin.com/doc_api#1\n    client.getPaste(\"0b42rwhf\") // getting a paste\n    \n    client.login(\"username\", \"password\") // logging in\n    client.getUserDetails().accountType // getting current user account type\n}\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpearxteam%2Fkpastebin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpearxteam%2Fkpastebin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpearxteam%2Fkpastebin/lists"}