I’ve been trying to figure out how to use the League of Legends live API. I’ve had success using the endpoints like this: /lol/summoner/v4/summoners/by-name/{summonerName}
The first one looks like an API running on the internet on Riot’s servers.
The second one looks like a local server that I guess the LOL game client runs while you’re playing. Do you have the LOL game client running when you’re making this request? There also seem to be some extra requirements like installing/trusting the TLS root cert for the game client. Seems to be documented here: Riot Developer Portal
How do I go about running a TLS root cert for the game client? That is documented there but it’s not very helpful at all. Any clues on where to start? Thanks
using UnityEngine.Networking;
public class BypassCertificate : CertificateHandler
{
protected override bool ValidateCertificate(byte[] certificateData)
{
//Simply return true no matter what
return true;
}
}
and being in an active game in LOL, it still returned the same error as original post.
I suggest trying the curl command from the docs to make sure the game is actually listening before doing more work in Unity: curl --insecure https://127.0.0.1:2999/swagger/v3/openapi.json