KebsCS / KBotExt

All-in-one application that sends custom requests to League of Legends LCU api
465 stars 76 forks source link

issue with custom requests #238

Closed arthures11 closed 7 months ago

arthures11 commented 7 months ago

any example of how to do this? no matter how i try(ive tried with port/headers as well) it will return :

{ "errorCode" : "RESOURCE_NOT_FOUND", "httpStatus" : 404, "message" : "Invalid function" }

or

{ "errorCode" : "RESOURCE_NOT_FOUND", "httpStatus" : 404, "message" : "Invalid URI format" }

69ab0c6c87b1bb86ce123259db8956d0

KebsCS commented 7 months ago

It is a Riot client endpoint, so collapse the Custom Port/Header, click on 'Riot,' and the URL will be https://127.0.0.1/chat/v4/friends

arthures11 commented 7 months ago

It is a Riot client endpoint, so collapse the Custom Port/Header, click on 'Riot,' and the URL will be https://127.0.0.1/chat/v4/friends

my issue was that i tried the same thing but with adding a port to the url anyways, it has worked, but weirdly it needed like 10 attemps before it worked, first few attempts it showed the same thing - "message" : "Invalid URI format". thank you.

PS. do you know what body do i have to put in POST /chat/v6/friendrequests?

it says body |   | ChatFriendRequestPost

however im unable to find any more info about ChatFriendRequestPost object online

arthures11 commented 7 months ago

bumping since i edited the message quite a bit

KebsCS commented 7 months ago

Looks like I forgot to add parameters to riotclient's data_info.json For now you can use GET https://127.0.0.1/help?target=ChatFriendRequestPost

arthures11 commented 7 months ago

Looks like I forgot to add parameters to riotclient's data_info.json For now you can use GET https://127.0.0.1/help?target=ChatFriendRequestPost

that works, tysm