Skip to content

LOL STATUS V3

Chau Nguyen edited this page May 26, 2017 · 9 revisions

docs

Because Status only has 1 endpoint, I decided to make get work if you just pass in a REGION as well.

Get League of Legends status for the given shard.

/lol/status/v3/shard-data

Standard Params

  • getShardStatus([region], [cb])
  • Namespaced Functions: Status.getShardStatus, Status.getStatus, Status.get
k.Status.get()
        .then(data => console.log(data))
        .catch(error => console.error(error))

Object Param + Callback

  • getShardStatus({ region }, cb)
  • Namespaced Functions: Status.getShardStatus, Status.getStatus, Status.get
const config = {
    region: REGIONS.KOREA
}

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

k.Status.get(KindredAPI.print)