lol-lcu-api

LCU-API

获取token

CMD以管理员权限运行,输入如下命令

wmic process where caption='LeagueClientUx.exe' get commandline

得到如下结果

g:/英雄联盟/LeagueClient/LeagueClientUx.exe "--riotclient-auth-token=63-Wr1ACdIS6EfVkuy9gig" "--riotclient-app-port=58789" "--riotclient-tencent" "--no-rads" "--disable-self-update" "--region=TENCENT" "--locale=zh_CN" "--t.lcdshost=hn1-cloud-feapp.lol.qq.com" "--t.chathost=hn1-cloud-ejabberd.lol.qq.com" "--t.lq=https://hn1-cloud-login.lol.qq.com:8443" "--t.storeurl=https://hn1-cloud-sr.lol.qq.com:8443" "--t.rmsurl=wss://hn1-cloud-rms.lol.qq.com" "--rso-auth.url=https://prod-rso.lol.qq.com:3000" "--rso_platform_id=HN1" "--rso-auth.client=lol" "--t.location=loltencent.gz1.HN1" "--tglog-endpoint=https://tglogsz.datamore.qq.com/lolcli/report/" "--ccs=https://hn1-cloud-cc.lol.qq.com:8093" "--entitlements-url=https://hn1-cloud-entitlements.lol.qq.com:28088/api/token/v1" "--dradis-endpoint=http://some.url" "--remoting-auth-token=fBHICcvvUudE4Fij_kpQuA" "--app-port=58831" "--install-directory=g:\鑻遍泟鑱旂洘\LeagueClient" "--app-name=LeagueClient" "--ux-name=LeagueClientUx" "--ux-helper-name=LeagueClientUxHelper" "--log-dir=LeagueClient Logs" "--crash-reporting=" "--crash-environment=HN1" "--app-log-file-path=g:/英雄联盟/LeagueClient/../Game/Logs/LeagueClient Logs/2023-04-23T19-21-31_24144_LeagueClient.log" "--app-pid=24144" "--output-base-dir=g:/鑻遍泟鑱旂洘/LeagueClient/../Game" "--no-proxy-server" "--ignore-certificate-errors"

参数说明

客户端api使用的https协议,认证方式使用的是Basic,用户名为riot

riot-client

riotclient-auth-token token

riotclient-app-port 端口号

eg:

GET https://127.0.0.1:50886/swagger/v2/swagger.json 获取swagger文档说明

GET https://127.0.0.1:58789/swagger/v3/openapi.json

lcu-client

remoting-auth-token token

app-port 端口号

reference

https://127.0.0.1:55205/lol-player-report-sender/v1/end-of-game-reports

{“gameId”:8293338498,”categories”:[“NEGATIVE_ATTITUDE”,”VERBAL_ABUSE”,”HATE_SPEECH”],”offenderSummonerId”:2947216121,”offenderPuuid”:”42924433-abf2-568c-a318-41f80cb50e57”}

https://pengu.lol/guide/lcu-request

https://hextechdocs.dev/getting-started-with-the-lcu-websocket/

https://riot-api-libraries.readthedocs.io/en/latest/lcu.html

https://www.nuget.org/packages/Camille.Lcu/

https://lcu.vivide.re/#operation--lol-chat-v1-me-put

https://developer.riotgames.com/docs/lol