Skip to content

Biacode/jsportsdb

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 
 
 

jsportsdb

JVM based TheSportsDB HTTP API client https://www.thesportsdb.com/api.php

Java example

public class JavaDemoApp {
    public static void main(String[] args) {
        final SearchTeamClient searchTeamClient = new SearchTeamClientImpl();
        final ResultResponse searchTeamResult = searchTeamClient.byShortCode("Ars");
        System.out.println(searchTeamResult.asMap());
        System.out.println(searchTeamResult.asString());

        final ListSportsClient listSportsClient = new ListSportsClientImpl();
        final ResultResponse listSportsResult = listSportsClient.all();
        System.out.println(listSportsResult.asMap());
        System.out.println(listSportsResult.asString());
    }
}

Kotlin example

object KotlinDemoApp {
    @JvmStatic
    fun main(args: Array<String>) {
        val searchTeamResult = SearchTeamClientImpl().byShortCode("Arsenal")
        println(searchTeamResult.asString())
        println(searchTeamResult.asMap())

        val listSportsResult = ListSportsClientImpl().all()
        println(listSportsResult.asString())
        println(listSportsResult.asMap())
    }
}

About

JVM based TheSportsDB HTTP API client

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published