Skip to content
This repository has been archived by the owner on Feb 17, 2023. It is now read-only.

Accounts

Vrekt edited this page Jan 11, 2020 · 3 revisions

The Accounts class provides a wrapper for AccountPublicService. Here is how to use it:

If an account was not found each method will throw EpicGamesErrorException.

Finding an account by display name

final var account = athena.account().findByDisplayName("vrekt_");

Finding an account by ID.

final var account = athena.account().findByAccountId("abc123");

Finding accounts by IDs.

final var accounts = athena.account().findManyByAccountId("abc", "123", "xxx");
final var accounts1 = athena.account().findManyByAccountId(myList);

There are also async methods included within Accounts for each method.

            athena.account().findByDisplayName("vrekt_", (result, failed, error) -> {
                if (failed) {
                    error.printStackTrace();
                    return;
                }
                
                System.err.println(result.accountId());
            });
Clone this wiki locally