stirante / lol-client-java-api

Simple library which provides access to internal League of Legends Client API.
GNU General Public License v3.0
67 stars 14 forks source link

Perks endpoint #17

Closed OlivierMary closed 4 years ago

OlivierMary commented 4 years ago

Hi,

I tried to use lol-perks endpoint, but got error each times:

            println(api.executePost("/lol-perks/v1/pages", perks))

got false each time

and on client logs:

005764.665|  ERROR|                   Remoting| HTTP Response 400 to POST '/lol-perks/v1/pages'

Any idea to get more information why I got HTTP 400 ?

issue-label-bot[bot] commented 4 years ago

Issue Label Bot is not confident enough to auto-label this issue. See dashboard for more details.

stirante commented 4 years ago

HTTP code 400 means, that the request is invalid. I don't know what perks variable has, so I can't really help.

In my own project, I use it like this https://github.com/stirante/RuneChanger/blob/master/src/main/java/com/stirante/runechanger/client/Runes.java#L122

OlivierMary commented 4 years ago

It's good, I find why