SkillAgentSearch skills...

Gofile.kt

Kotlin wrapper for the Gofile.io API

Install / Use

/learn @sya-ri/Gofile.kt
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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

Kotlin GitHub License Maven Central KDoc link Build status

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
  • 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

View on GitHub
GitHub Stars5
CategoryDevelopment
Updated1y ago
Forks0

Languages

Kotlin

Security Score

75/100

Audited on Jun 22, 2024

No findings