Hey guys so i stared making my own league checker, however i reached a point where i dont know what to do next.
I need someone who knows C# Or web requests in general to help me fix this.
So this is my Code for requests
request: try { using (HttpRequest req = new HttpRequest()) { req.Proxy = proxy[new Random().Next(proxy.Count)]; req.Type = proxytype; req.ConnectTimeout = timeout; req.KeepAliveTimeout = timeout; req.ReadWriteTimeout = timeout; req.Referer = "https://auth.riotgames.com/login"; //req.UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.75 Safari/537.36"; req.AddHeader("Content-Type", "application/json"); string response = req.Start(HttpMethod.POST, new Uri("https://auth.riotgames.com/api/v1/authorization"), new BytesContent(Encoding.UTF8.GetBytes("{ \"type\":\"auth\",\"username\":\"" + username + "\",\"password\":\"" + password + "\",\"region\":\"EUN1\",\"remember\":false,\"language\":\"en_US\"}"))).ToString(); Console.WriteLine(response); } } catch { goto request;
This is normally how the request header looks like
And this is response
And this is the issue i have
{"type":"error","error":"invalid_request","error_description":"Invalid request: Missing \"client_id\" parameter"}
All i know is that it requires me to send them client_id however im not sure what it is and how i should send it (add it to the request or response).
Any help highly appreciated