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

armazi
armazi
    Offline
    99
    Rep
    277
    Likes

    Coming soon ...

Posts: 1072
Threads: 150
Joined: May 27, 2018
Credits: 0

One year 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

?url=https%3A%2F%2Fi.imgur.com%2Fvi7fEYf

Spoiler

#2

NullCheats
NullCheats
    Offline
    232
    Rep
    958
    Likes

    HvH.site | Coder | Leaker

Posts: 2817
Threads: 323
Joined: Sep 05, 2018
Credits: 3

One year 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

C# coding service

YouTube Live view bot -> (up to 3,000 views)

Twitch.tv bot -> (working after latest patch)

SHOP : CLICK HERE


#3

armazi
armazi
    Offline
    99
    Rep
    277
    Likes

    Coming soon ...

Posts: 1072
Threads: 150
Joined: May 27, 2018
Credits: 0

One year 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

?url=https%3A%2F%2Fi.imgur.com%2Fvi7fEYf

Spoiler

#4

NullCheats
NullCheats
    Offline
    232
    Rep
    958
    Likes

    HvH.site | Coder | Leaker

Posts: 2817
Threads: 323
Joined: Sep 05, 2018
Credits: 3

One year registered
#4

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


  • 0

C# coding service

YouTube Live view bot -> (up to 3,000 views)

Twitch.tv bot -> (working after latest patch)

SHOP : CLICK HERE


#5

armazi
armazi
    Offline
    99
    Rep
    277
    Likes

    Coming soon ...

Posts: 1072
Threads: 150
Joined: May 27, 2018
Credits: 0

One year 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

?url=https%3A%2F%2Fi.imgur.com%2Fvi7fEYf

Spoiler

#6

armazi
armazi
    Offline
    99
    Rep
    277
    Likes

    Coming soon ...

Posts: 1072
Threads: 150
Joined: May 27, 2018
Credits: 0

One year registered
#6

help still needed 


  • 0

?url=https%3A%2F%2Fi.imgur.com%2Fvi7fEYf

Spoiler

#7

DarkStarWarden
DarkStarWarden
    Offline
    2
    Rep
    101
    Likes

    Veteran

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

Two 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

Somebody is impersonating me on discord. My discord is keker_keker#0557 and I don't sell anything


#8

armazi
armazi
    Offline
    99
    Rep
    277
    Likes

    Coming soon ...

Posts: 1072
Threads: 150
Joined: May 27, 2018
Credits: 0

One year 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

?url=https%3A%2F%2Fi.imgur.com%2Fvi7fEYf

Spoiler

#9

Thelonewof787
Thelonewof787
    Offline
    0
    Rep
    0
    Likes

    Member

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

#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
#10

help still needed


  • 0


 Users browsing this thread: