lunar-client-metadata
An easy-to-use wrapper for Lunar Client's game api.
Maven
pom.xml
<repositories>
<repository>
<id>jitpack.ioid>
<url>https://jitpack.iourl>
repository>
repositories>
<dependencies>
<dependency>
<groupId>com.github.devrawrgroupId>
<artifactId>lunar-client-metadataartifactId>
<version>f45666a0baversion>
dependency>
dependencies>
Gradle
build.gradle
def lcMetaHash = "f45666a0ba"
repositories {
maven { url "https://jitpack.io" }
}
dependencies {
api "com.github.devrawr:lunar-client-metadata:$lcMetaHash"
}
Usage:
Since all of the game metadata is mapped, you're able to do anything with the data returned.
Get the latest blog post:
fun latestBlogPost()
{
val metadata = LunarClientMetadata
.parseMetadata()
val latestBlogPost = metadata
.getLatestBlogPost()
println(
"excerpt: ${latestBlogPost.excerpt}",
"wow!"
)
}
For more possible use cases, take a look at the data provided in our LunarClientMetadata class.
Notice:
Lunar Client's developers may decide to restrict access to this endpoint as this was never intended to be exposed to the public. This project may not work in the future.
- In addition to this, the content returned from the metadata endpoint may change, so our mappings might not be accurate in the future.