Skip to content
This repository has been archived by the owner on May 24, 2021. It is now read-only.
/ SketchwareAPI Public archive

Sketchware API Multiplatform Library

Notifications You must be signed in to change notification settings

y9vad9/SketchwareAPI

Repository files navigation

🚀 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).