Making connecting to the League Of Legends Client API (LCU) easy.
This connector automatically gets the credietials for the API that is launched when the League of Legends client is active.
- GitHub
git clone https://github.com/Vexrax/LCUConnectorJava.git - [Maven] Soon(TM)
- [Compiled Jars] Soon(TM)
The connector uses the Apache HTTPComponent library as a means to execute HTTP requests
LeagueClient leagueClient = new LeagueClient("C:\\Riot Games\\League of Legends\\lockfile") ;
leagueClient.Connect();
JSONObject data = new JSONObject();
data.put("firstPreference", "MIDDLE");
data.put("secondPreference", "TOP");
HttpResponse response = leagueClient.MakeApiRequest(HttpMethod.Put, "/lol-lobby/v1/lobby/members/localMember/position-preferences", data.toJSONString());
Many IDES have problems connecting to the LCU server due to the certificate. A workaround does exist and can be found here: https://intellij-support.jetbrains.com/hc/en-us/community/posts/115000094584-IDEA-Ultimate-2016-3-4-throwing-unable-to-find-valid-certification-path-to-requested-target-when-trying-to-refresh-gradle
LCUConnectorJava isn't endorsed by any of it's content sources or Riot Games and doesn't reflect the views or opinions of them or anyone officially involved in producing or managing League of Legends. League of Legends and Riot Games are trademarks or registered trademarks of Riot Games, Inc. League of Legends ? Riot Games, Inc.