/lost-ark-fetcher

Java library which fetches data from Lost Ark's websites

Primary LanguageJavaApache License 2.0Apache-2.0

Lost Ark Fetcher

Made with Java
License Version

Java library for fetching Lost Ark related things
Made by Mayuna

Instalation

Maven

<dependency>
    <groupId>dev.mayuna</groupId>
    <artifactId>lost-ark-fetcher</artifactId>
    <version>VERSION</version>
</dependency>

<!-- Dependencies -->
<dependency>
    <groupId>dev.mayuna</groupId>
    <artifactId>simple-java-api-wrapper</artifactId>
    <version>1.0.2</version>
</dependency>
<dependency>
    <groupId>org.jsoup</groupId>
    <artifactId>jsoup</artifactId>
    <version>1.14.3</version>
</dependency>
<dependency>
    <groupId>com.google.code.gson</groupId>
    <artifactId>gson</artifactId>
    <version>2.9.0</version>
</dependency>

Gradle

repositories {
    mavenCentral()
}

dependencies {
    // Change 'implementation' to 'compile' in old Gradle versions
    implementation 'dev.mayuna:lost-ark-fetcher:VERSION'
    
    // Dependencies
    implementation 'dev.mayuna:simple-java-api-wrapper:1.0.2'
    implementation 'org.jsoup:jsoup:1.14.3'
    implementation 'com.google.code.gson:gson:2.9.0'
}
  • Replace VERSION with your desired version. (Remove "v" before version number)
  • For version number see latest Maven Repository release (should be same with Github Release though)
  • You can also use GitHub Releases

How to use

// This library is not completed, expect changes

LostArkFetcher lostArkFetcher = new LostArkFetcher();

lostArkFetcher.fetchServers();

lostArkFetcher.fetchNewsTags();
lostArkFetcher.fetchNews();
lostArkFetcher.fetchNews(lostArkNewsTag);

lostArkFetcher.fetchForums(forumCategory);
lostArkFetcher.fetchForumTopic(topic); // LostArkForumTopic contains only few fields - not completed

// Example
lostArkFetcher.fetchServers().execute() // Returns CompletableFuture
        .thenAccept(lostArkServers -> {
            for (LostArkServer server : lostArkServers.get()) {
                System.out.println(server.getName() + " (" + server.getRegion() + "): " + server.getStatus());
            }
        });