y9vad9 / SketchwareAPI

Sketchware API Multiplatform Library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

πŸš€ Sketchware API Library

A multi-platform library for interacting with the Sketchware API. At the moment, not all requests have been implemented, but will be added upon request.

Looks like Sketchware have disabled their API. So it's not relevant yet, but maybe the API will still be restored. We are waiting for news.

πŸ§ͺ Examples

Let's get a list of the latest moreblocks:

client.getRecentSharedMoreblocks(20, 0).success { list: List<BaseShared> ->
    println(list) // successfully loaded
}.error {
    // some error occurred
}

Let's get some moreblock comments:

client.getSharedMoreblockDetails(__moreblockId__).success { body: SharedDetails ->
    println(body)
}.error {
    // an error has occurred
}

πŸ“ Implementation

build.gradle.kts:

repositories {
    maven("https://dl.kotlingang.fun")
}
dependencies {
    implementation("io.sketchware.api:SketchwareAPI:1.0.5")
}

For Java, you also need to add the Java wrapper:

repositories {
    maven { url 'https://dl.kotlingang.fun' }
}
dependencies {
    implementation "io.sketchware.api:SketchwareJavaAPI:1.0.5"
}

You can also check it out.

πŸ“ž Contacts

Below are links to sources where you can contact for questions about the library or just chat ( like @sketchware_community).

About

Sketchware API Multiplatform Library


Languages

Language:Kotlin 100.0%