From a13c2abd01a6cc68d3aa8c374c31b917373f8cbb Mon Sep 17 00:00:00 2001 From: Jonttuuu <50843099+Jonttuuu@users.noreply.github.com> Date: Sun, 30 Jul 2023 19:48:56 +0300 Subject: [PATCH] Update Readme --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e749a8c..0053127 100644 --- a/README.md +++ b/README.md @@ -36,12 +36,16 @@ Java Wrapper for FlexPlex API ```java // Instantiate FlexLib, this should be done only once and instance saved. -final FlexLib flexLib = new FlexLib("token", Logger.getGlobal()); +final FlexLib flexLib = new FlexLib() + .setToken("a06ccc622e2976b1d1e28145ebdc2ab408f3fc5ca0f5f4ee09d40b91ba0e903c") + .addListener(new FlexLibAdapter()); + +flexLib.start(); // Get friends API if its available final Optional playerFriends = getPlayerFriends("a2a20f04-b722-4192-b184-8e41f1080ead"); if (playerFriends.isPresent()) { - final Set friends = playerFriends.getFriends(); + final Set friends = playerFriends.getFriends(); } // Disables FlexLib