Skip to content

PotatoCurry/Kwizlet

Repository files navigation

Kwizlet

Build Status Release Issues License

Simple Quizlet API wrapper

Using Kwizlet

Gradle

allprojects {
    repositories {
        maven { url 'https://jitpack.io' }
    }
}
dependencies {
    implementation 'com.github.PotatoCurry:Kwizlet:Tag'
}

Maven

<repositories>
    <repository>
        <id>jitpack.io</id>
        <url>https://jitpack.io</url>
    </repository>
</repositories>
<dependency>
    <groupId>com.github.PotatoCurry</groupId>
    <artifactId>Kwizlet</artifactId>
    <version>Tag</version>
</dependency>

Additional instructions can be found here

Examples

Print set contents

import io.github.potatocurry.kwizlet.api.Kwizlet

val clientID = "CLIENT_ID"
val setID = "SET_ID"

fun main() {
    val kwizlet = Kwizlet(clientID)
    val set = kwizlet.getSet(setID)
    for ((term, definition) in set.termPairs)
        println("$term: $definition")
}