ALERT!
Click here to register with a few steps and explore all our cool stuff we have to offer!

Jump to content



Photo

[C# HTTP REQUESTS] Help needed with C# EUNE LOL Checker im making


  • Please log in to reply
[C# HTTP REQUESTS] Help needed with C# EUNE LOL Checker im making

#1

cardmani
cardmani
    Offline
    220
    Rep
    557
    Likes

    Admin

Posts: 2047
Threads: 213
Joined: May 27, 2018
Credits: 2

Five years registered
#1

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

https://imgur.com/3jOiBoO

 

And this is response 

https://imgur.com/WdoXDZM

 

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

giphy.gif

 


  • 0

WUCjhrZ.gif


#2

NullCheats
NullCheats
Posts: 4248
Threads: 147
Joined: Sep 05, 2018
Credits: 4

Five years registered
#2

I mean it says

 

 

{"type":"error","error":"invalid_request","error_description":"Invalid request: Missing \"client_id\" parameter"}

 

 

missing a CLIENT ID so i am assuming you need to set that in the POST data 

 

 

request.Header = ("client_id" ,"ID OR SOMETHING LIKE DIS");


  • 1

Signature.gif

728_1.jpg


#3

cardmani
cardmani
    Offline
    220
    Rep
    557
    Likes

    Admin

Posts: 2047
Threads: 213
Joined: May 27, 2018
Credits: 2

Five years registered
#3

 

I mean it says

 

 

{"type":"error","error":"invalid_request","error_description":"Invalid request: Missing \"client_id\" parameter"}

 

 

missing a CLIENT ID so i am assuming you need to set that in the POST data 

 

 

request.Header = ("client_id" ,"ID OR SOMETHING LIKE DIS");

I tried to add it but no luck ;/


  • 0

WUCjhrZ.gif


#4

NullCheats
NullCheats
Posts: 4248
Threads: 147
Joined: Sep 05, 2018
Credits: 4

Five years registered
#4

pm me your discord tomorrow ill try and help you / sort it out for you lol 


  • 0

Signature.gif

728_1.jpg


#5

cardmani
cardmani
    Offline
    220
    Rep
    557
    Likes

    Admin

Posts: 2047
Threads: 213
Joined: May 27, 2018
Credits: 2

Five years registered
#5

pm me your discord tomorrow ill try and help you / sort it out for you lol 

:pepolove: Sent a message to you. 

Thanks for that.


  • 0

WUCjhrZ.gif


#6

cardmani
cardmani
    Offline
    220
    Rep
    557
    Likes

    Admin

Posts: 2047
Threads: 213
Joined: May 27, 2018
Credits: 2

Five years registered
#6

help still needed 


  • 0

WUCjhrZ.gif


#7

DarkStarWarden
DarkStarWarden
    Offline
    2
    Rep
    109
    Likes

    Veteran

Posts: 804
Threads: 49
Joined: Nov 06, 2017
Credits: 0

Six years registered
#7

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

https://imgur.com/3jOiBoO

 

And this is response 

https://imgur.com/WdoXDZM

 

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

giphy.gif

I don't know C# but firstly I think it's a PUT request not POST regardless of that I think you should just find a config such as this one: https://www.nulled.t... +euw +configĀ 
and use the same api and post data it uses sorry if I didn't help

edit: don't forget to change: &username=EUW1 to &username=EUN1  
so it works for EUNE instead of EUW


  • 1

#8

cardmani
cardmani
    Offline
    220
    Rep
    557
    Likes

    Admin

Posts: 2047
Threads: 213
Joined: May 27, 2018
Credits: 2

Five years registered
#8

I don't know C# but firstly I think it's a PUT request not POST regardless of that I think you should just find a config such as this one: https://www.nulled.t... +euw +configĀ 
and use the same api and post data it uses sorry if I didn't help

edit: don't forget to change: &username=EUW1 to &username=EUN1  
so it works for EUNE instead of EUW

Everything helps dude. Thanks !


  • 0

WUCjhrZ.gif


#9

Thelonewof787
Thelonewof787
    Offline
    0
    Rep
    0
    Likes

    Member

  • PipPipPip
Posts: 27
Threads: 0
Joined: Sep 20, 2019
Credits: 0

Four years registered
#9

thank you for the tips


  • 0

#10

anas313
anas313
    Offline
    0
    Rep
    1
    Likes

    New Member

  • PipPip
Posts: 12
Threads: 0
Joined: Oct 25, 2019
Credits: 0
Four years registered
#10

help still needed


  • 0


 Users browsing this thread: