Steam WebAPI wrapper written in Kotlin and Ktor.
dependencies {
implementation("com.github.j4ckofalltrades:steam-webapi-kt:1.2.2")
}
dependencies {
implementation "com.github.j4ckofalltrades:steam-webapi-kt:1.2.2"
}
<dependency>
<groupId>com.github.j4ckofalltrades</groupId>
<artifactId>steam-webapi-kt</artifactId>
<version>1.2.2</version>
</dependency>
Add the JitPack repository to the list of repositories, and then add the package as a dependency.
Sample using Kotlin DSL:
repositories {
maven(url="https://jitpack.io")
}
dependencies {
implementation("com.github.j4ckofalltrades:steam-webapi-kt:1.2.2")
}
-
Authenticate to GitHub Packages. For more information, see "Authenticating to GitHub Packages".
-
Add the package as a dependency.
dependencies {
implementation("com.github.j4ckofalltrades:steam-webapi-kt:1.2.2")
}
- (Optional) If using Gradle, add the
maven
plugin to your build file.
plugins {
`maven`
}
This requires a Steam WebAPI Key, you can get one at https://steamcommunity.com/dev/apikey
You can use either the provided SteamWebApi
wrapper
import io.github.j4ckofalltrades.steam_webapi.core.SteamWebApi
val steamWebApi = SteamWebApi("web_api_key")
steamWebApi.userApi().getPlayerSummaries(listOf("steam_ids"))
or with a specific interface e.g. ISteamUserWrapper
import io.github.j4ckofalltrades.steam_webapi.wrapper.ISteamUserWrapper
val steamUserApi = new ISteamUserWrapper("web_api_key")
steamUserApi.getPlayerSummaries(listOf("steam_ids"))