Gofile.kt
Kotlin wrapper for the Gofile.io API
Install / Use
/learn @sya-ri/Gofile.ktREADME
<h1 align="center">
<img src="https://gofile.io/dist/img/logo-small-70.png" alt="GoFile logo" width="80rem" />
Gofile.kt
</h1>
<span align="center">
A kotlin wrapper for the Gofile.io API.
</span>Features
- Support multiplatform.
- [x] JVM
- [x] JS
- [x] Native
- Android
- [ ] androidNativeX86 (yet)
- [ ] androidNativeX64 (yet)
- [ ] androidNativeArm32 (yet)
- [ ] androidNativeArm64 (yet)
- Linux
- [x] linuxArm64
- [x] linuxX64
- [x] mingwX64
- MacOS
- [x] macosArm64
- [x] macosX64
- iOS
- [x] iosArm64
- [x] iosSimulatorArm64
- [x] iosX64
- tvOS
- [x] tvosArm64
- [x] tvosSimulatorArm64
- [x] tvosX64
- watchOS
- [x] watchosArm32
- [x] watchosArm64
- [x] watchosSimulatorArm64
- [ ] watchosDeviceArm64 (yet)
- [x] watchosX64
- Android
- Supports all endpoints. (API Version: 2023-04-20)
- [x] getServer
- [x] uploadFile
- [x] getContent
- [x] createFolder
- [x] setOption
- [x] copyContent
- [x] deleteContent
- [x] getAccountDetails
- Support all account tiers.
- [x] Guest (without token)
- [x] Standard
- [x] Donor
- Error handling using Result.
- Asynchronous with Ktor.
Installation
Add dependency
You also need to add Ktor client engine.
build.gradle.kts
repositories {
mavenCentral()
}
dependencies {
implementation("dev.s7a:gofile:1.1.0")
// See also: https://ktor.io/docs/http-client-engines.html
// implementation("io.ktor:ktor-client-???:$ktor_version")
}
build.gradle
repositories {
mavenCentral()
}
dependencies {
implementation "dev.s7a:gofile:1.1.0"
// See also: https://ktor.io/docs/http-client-engines.html
// implementation "io.ktor:ktor-client-???:$ktor_version"
}
Main.kt
import dev.s7a.gofile.GofileClient
fun main() {
val client = GofileClient() // Automatically find the engine
// client.uploadFile(), etc...
}
Documentation
Related Skills
node-connect
351.8kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
110.9kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
351.8kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
351.8kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
