Skip to content

Endpoint to make the PickIntent in the planning phase. #76

Answered by cactoes
RenzoBeux asked this question in Q&A
Discussion options

You must be logged in to vote
  1. GET all championSelect data "/lol-champ-select/v1/session"

  2. loop through all the actions, then loop through all the pairs in the actions

  3. when you have an action it hold this data: championId, completed, id, isAllyAction, isInProgress, pickTurn, type, actorCellId. (im not explaining that)

  4. 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
}
  1. it doesn't return anything so dont try anyting with the response

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by junlarsen
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
help wanted Extra attention is needed question Further information is requested
3 participants
Converted from issue

This discussion was converted from issue #72 on June 29, 2022 08:30.