Closed RenzoBeux closed 2 years ago
I've not worked with the Champion Select APIs in a while myself, but I'll keep this open for anyone else who might know something :)
GET all championSelect data "/lol-champ-select/v1/session"
loop through all the actions, then loop through all the pairs in the actions
when you have an action it hold this data: championId, completed, id, isAllyAction, isInProgress, pickTurn, type, actorCellId. (im not explaining that)
when you have confirm that the action is you, the action is not completed and the type is "pick" just send a PATCH request to "/lol-champ-select/v1/session/actions/${actionID}" where action id is the id of the action we just got. make sure to send a body wich contains:
{
"championId": ID_OF_THE_CHAMPION_YOU_WANT_TO_PICK
}
it doesn't return anything so dont try anyting with the response
Hey guys, im writing here cause i tghink is a place where other people may achived this. I want to be able to pre pick, in the messages i have been sniffing on the websocket i think they call pickIntent. Does anybody have any idea of this?
ps if you still cant figure it out, i have a repo with the solution in it ;) @RenzoBeux
Hi! Thank you very much! Not needed, I understood perfectly what you explained.
Hey guys, im writing here cause i tghink is a place where other people may achived this. I want to be able to pre pick, in the messages i have been sniffing on the websocket i think they call pickIntent. Does anybody have any idea of this?