Skip to content

LEAGUE V3

Chau Nguyen edited this page May 11, 2017 · 11 revisions

docs

Get the challenger league for a given queue.

/lol/league/v3/challengerleagues/by-queue/{queue}

Standard Params

  • listChallengers([queue], [region], [cb])
  • Namespaced Functions: Challenger.list
  • Default queue: RANKED_SOLO_5x5
k.Challenger.list(KindredAPI.print)
k.Challenger.list('RANKED_FLEX_SR', KindredAPI.print)

k.Challenger.list('RANKED_FLEX_SR')
            .then(data => console.log(data))
            .catch(error => console.error(error))

k.Challenger.list('RANKED_FLEX_SR', REGIONS.KOREA)
            .then(data => console.log(data))
            .catch(error => console.error(error))

k.Challenger.list(REGIONS.KOREA, KindredAPI.print)

Object Param + Callback

  • getChallengers({ region, queue = 'RANKED_SOLO_5x5' } }, cb)
  • Namespaced Functions: League.getChallengers, League.challengers
k.League.challengers(KindredAPI.print)
k.League.challengers({ region: 'na' }, KindredAPI.print)
k.League.challengers({ queue: 'RANKED_FLEX_5x5' }, KindredAPI.print)
  1. /lol/league/v3/leagues/by-summoner/{summonerId}
    • Get leagues in all queues for a given summoner ID.
    • getLeagues({ region, accountId/accId (int), id/summonerId/player/Id (int), name (str) }, cb)
    • Namespaced Functions: League.getLeagues, League.leagues, League.get
    • Example 1: k.League.getLeagues({ summonerId: 20026563 }, KindredAPI.print)
    • Example 2: k.League.get({ summonerId: 20026563 }, KindredAPI.print)
    • Example 3: k.League.get({ id: 20026563 }, KindredAPI.print)
    • Example 4: k.League.get({ name: 'Contractz' }, KindredAPI.print)

Get the master league for a given queue.

/lol/league/v3/masterleagues/by-queue/{queue}

Standard Params

  • listMasters([queue], [region], [cb])
  • Namespaced Functions: Master.list
  • Default queue: RANKED_SOLO_5x5
k.Master.list(KindredAPI.print)
k.Master.list('RANKED_FLEX_SR', KindredAPI.print)

k.Master.list('RANKED_FLEX_SR')
        .then(data => console.log(data))
        .catch(error => console.error(error))

k.Master.list('RANKED_FLEX_SR', REGIONS.KOREA)
        .then(data => console.log(data))
        .catch(error => console.error(error))

k.Master.list(REGIONS.KOREA, KindredAPI.print)

Object Param + Callback

  • getMasters({ region, queue = 'RANKED_SOLO_5x5' } }, cb)
  • Namespaced Functions: League.getMasters, League.masters
k.League.masters(KindredAPI.print)
k.League.masters({ region: 'na' }, KindredAPI.print)
k.League.masters({ queue: 'RANKED_FLEX_5x5' }, KindredAPI.print)
  1. /lol/league/v3/positions/by-summoner/{summonerId}
    • Get league positions in all queues for a given summoner ID.
    • getLeaguePositions({ region, accountId/accId (int), id/summonerId/playerId (int), name (str) }, cb)
    • Namespaced Functions: League.getLeaguePositions, League.getPositions, League.positions
    • Example 1: k.League.positions({ summonerId: 20026563 }, KindredAPI.print)