Skip to content

MASTERIES V3

Chau Nguyen edited this page May 8, 2017 · 1 revision

docs

Get mastery pages for a given summoner ID.

/lol/platform/v3/masteries/by-summoner/{summonerId}

Object Param + Callback

  • getMasteries({ region, accountId/accId (int), id/summonerId/playerId (int), name (str) }, cb)
  • Namespaced Functions: Masteries.get, Summoner.getMasteries, Summoner.masteries
k.Masteries.get({ id: 20026563 }, KindredAPI.print)

k.Masteries.get({ name: 'Contractz' }, KindredAPI.print)

k.Masteries.get({ accId: 47776491 }, KindredAPI.print)

const config = {
    name: 'sktt1pEaNuT',
    region: REGIONS.KOREA
}

k.Masteries.get(config)
           .then(data => console.log(data))
           .catch(error => console.error(error))

Standard Params

  • getMasteriesById(id, [region], [cb])
  • Namespaced Functions: Masteries.by.name
k.Masteries.by.id(32932398, KindredAPI.print)

k.Masteries.by.id(32932398, REGIONS.NORTH_AMERICA)
           .then(data => console.log(data))
           .catch(error => console.error(error))
  • getMasteriesByAccountId(accId, [region], [cb])
  • Namespaced Functions: Masteries.by.account
k.Masteries.by.account(47776491, KindredAPI.print)
  • getMasteriesByName(name, [region], [cb])
  • Namespaced Functions: Masteries.by.name
k.Masteries.by.name('Contractz')
           .then(data => console.log(data))
           .catch(error => console.error(error))