Skip to content

SPECTATOR V3

Chau Nguyen edited this page May 12, 2017 · 2 revisions

docs

Get current game information for the given summoner ID.

/lol/spectator/v3/active-games/by-summoner/{summonerId}

Standard Params

N/A

Object Param + Callback

  • getCurrentGame({ region, accountId/accId (int), id/summonerId/playerId (int), name (str) }, cb)
  • Namespaced Functions: CurrentGame.getCurrentGame, CurrentGame.get
k.CurrentGame.get({ name: 'Contractz' }, KindredAPI.print)
k.CurrentGame.get({ id: 32932398 }, KindredAPI.print)

Get list of featured games.

/lol/spectator/v3/featured-games

Standard Params

  • listFeaturedGames([region], [cb])
  • Namespaced Functions: FeaturedGames.list
k.FeaturedGames.list(REGIONS.KOREA, KindredAPI.print)

k.FeaturedGames
 .list()
 .then(data => console.log(data))
 .catch(error => console.error(error))

Object Param + Callback

  • getFeaturedGames({ region }, cb)
  • Namespaced Functions: FeaturedGames.getFeaturedGames, FeaturedGames.get
k.FeaturedGames
 .get()
 .then(data => console.log(data))
 .catch(error => console.error(error))

k.FeaturedGames.get({ region: 'na' }, KindredAPI.print)