-
Notifications
You must be signed in to change notification settings - Fork 34
STATIC DATA V3
Chau Nguyen edited this page Jul 19, 2017
·
5 revisions
2.0.67 - All champListData/runeList
-like options has been renamed to tags
.
tags
can take in an array or a single string.
- Retrieves champion list
- Retrieves champion by ID.
- Retrieves item list.
- Retrieves item by ID.
- Retrieve language strings data.
- Retrieve supported languages data.
- Retrieve map data.
- Retrieves mastery list.
- Retrieves mastery item by ID.
- Retrieve profile icons.
- Retrieve realm data.
- Retrieves rune list.
- Retrieves rune by ID.
- Retrieves summoner spell list.
- Retrieves summoner spell by ID.
- Retrieve version data.
/lol/static-data/v3/champions
- getStaticChampionList([options], [region], [cb])
- Namespaced Functions: Static.Champion.list
k.Static.Champion.list({ tags: 'all' }, KindredAPI.print)
k.Static.Champion.list(KindredAPI.print)
k.Static.Champion.list(REGIONS.KOREA, KindredAPI.print)
k.Static.Champion.list({ tags: 'all' }, REGIONS.KOREA, KindredAPI.print)
- getChampionList({ region, options (object) }, cb)
- Namespaced Functions: Static.getChampions, Static.champions
k.Static.champions(KindredAPI.print)
const koreaChampListConfig = {
options: {
tags: 'all'
},
region: REGIONS.KOREA
}
k.Static.champions(koreaChampListConfig)
.then(data => console.log(data))
.catch(error => console.error(error))
k.Static.Champion.list(function (err, data) {
if (err) {
console.error(err);
}
if (data) {
console.log(data);
}
})
/lol/static-data/v3/champions/{id}
- staticGetChampionById(id, [options], [region], [cb])
- Namespaced Functions: Static.Champion.by.id
k.Static.Champion.by.id(497, REGIONS.KOREA, KindredAPI.print)
k.Static.Champion.by.id(497, { tags: 'all' }, KindredAPI.print)
- getChampion({ region, id/championId (int), options (object) }, cb)
- Namespaced Functions: Static.getChampion, Static.champion
k.Static.champion({ id: 131 }, KindredAPI.print)
const config = {
id: 131,
options: {
tags: 'enemytips',
version: '7.7.1'
},
region: REGIONS.KOREA
}
k.Static.champion(config, KindredAPI.print)
const rakanConfig = {
id: 497,
options: {
tags: 'all'
},
region: REGIONS.BRAZIL
}
k.Static.champion(rakanConfig)
.then(data => console.log(data))
.catch(err => console.error(err))
/lol/static-data/v3/items
- getStaticItemList([options], [region], [cb])
- Namespaced Functions: Static.Item.list
k.Static.Item.list(REGIONS.KOREA)
.then(data => console.log(data))
.catch(error => console.log(error))
k.Static.Item.list(KindredAPI.print)
k.Static.Item.list({ tags: 'all' }, KindredAPI.print)
- getItems({ region, options (object) }, cb)
- Namespaced Functions: Static.getItems, Static.items
const config = {
options: {
tags: 'gold'
},
region: REGIONS.KOREA
}
k.Static.items(config, KindredAPI.print)
/lol/static-data/v3/items/{id}
- getStaticItemById(id, [options], [region], [cb])
- Namespaced Functions: Static.Item.by.id
k.Static.Item.by.id(3903)
.then(data => console.log(data))
.catch(error => console.error(error))
- getItem({ region, id/itemId (int), options (object) }, cb)
- Namespaced Functions: Static.getItem, Static.item
k.Static.items(KindredAPI.print)
const config = {
id: 3901,
options: {
tags: ['image', 'gold']
}
}
k.Static.item(config, KindredAPI.print)
/lol/static-data/v3/language-strings
- getStaticLanguageString([options], [region], [cb])
- Namespaced Functions: Static.LanguageString.list
k.Static.LanguageString.list(KindredAPI.print)
- getLanguageStrings({ region, options (object) }, cb)
- Namespaced Functions: Static.getLanguageStrings, Static.languageStrings
k.Static.languageStrings(KindredAPI.print)
/lol/static-data/v3/languages
- getStaticLanguageList([region], [cb])
- Namespaced Functions: Static.Language.list
k.Static.Language.list(KindredAPI.print)
- getLanguages({ region }, cb)
- Namespaced Functions: Static.getLanguages, Static.languages
k.Static.languages()
.then(data => console.log(data))
.catch(err => console.error(err))
/lol/static-data/v3/languages
- getStaticMapList([region], [cb])
- Namespaced Functions: Static.Map.list
k.Static.Map.list(KindredAPI.print)
- getMapData({ region, options (object) }, cb)
- Namespaced Functions: Static.getMapData, Static.mapData, Static.map, Static.maps
k.Static.mapData()
.then(data => console.log(data))
.catch(error => console.error(error))
/lol/static-data/v3/masteries
- getStaticMasteryList([options], [region], [cb])
- Namespaced Functions: Static.Mastery.list
k.Static.Mastery.list(KindredAPI.print)
k.Static.Mastery.list({ tags: 'image' })
.then(data => console.log(data))
.catch(error => console.error(error))
k.Static.Mastery.list({ tags: 'image' }, KindredAPI.print)
k.Static.Mastery.list({ tags: 'image' }, REGIONS.KOREA, KindredAPI.print)
- getMasteryList({ region, options (object) }, cb)
- Namespaced Functions: Static.getMasteries, Static.masteries
k.Static.masteries(KindredAPI.print)
const config = {
region: REGIONS.BRAZIL,
options: {
tags: 'image'
}
}
k.Static.masteries(config, KindredAPI.print)
/lol/static-data/v3/masteries/{id}
- getStaticMasteryById(id, [options], [region], [cb])
- Namespaced Functions: Static.Mastery.by.id
const id = 6323
k.Static.Mastery.by.id(id, { tags: 'image' }, KindredAPI.print)
k.Static.Mastery.by.id(id)
.then(data => console.log(data))
.catch(error => console.error(error))
const options = {
tags: ['image', 'sanitizedDescription']
}
k.Static.Mastery.by.id(id, options, KindredAPI.print)
- getMastery({ region, id/masteryId (int), options (object) }, cb)
- Namespaced Functions: Static.getMastery, Static.mastery
k.Static.mastery({ id: 6323 }, KindredAPI.print)
const config = {
id: 6323,
region: REGIONS.NORTH_AMERICA,
options: {
tags: ['image', 'sanitizedDescription']
}
}
k.Static.mastery(config, KindredAPI.print)
/lol/static-data/v3/profile-icons
- getStaticProfileIconList([options], [region], [cb])
- Namespaced Functions: Static.ProfileIcon.list
k.Static.ProfileIcon.list(KindredAPI.print)
- getProfileIcons({ region, options (object) }, cb)
- Namespaced Functions: Static.getProfileIcons, Static.profileIcons
k.Static.profileIcons(KindredAPI.print)
const config = {
options: {
version: '7.9.1',
locale: 'ko_KR'
}
}
k.Static.profileIcons(config, KindredAPI.print)
/lol/static-data/v3/profile-icons
- getStaticRealmList([region], [cb])
- Namespaced Functions: Static.Realm.list
k.Static.Realm.list(KindredAPI.print)
k.Static.Realm.list(REGIONS.KOREA, KindredAPI.print)
- getRealmData({ region }, cb)
- Namespaced Functions: Static.getRealmData, Static.realmData, Static.realm, Static.realms
k.Static.realmData().then(data => console.log(data))
/lol/static-data/v3/runes
- getStaticRuneList([region], [options], [cb])
- Namespaced Functions: Static.Rune.list
k.Static.Rune.list({ tags: 'image' }, KindredAPI.print)
- getRuneList({ region, options (object) }, cb)
- Namespaced Functions: Static.getRunes, Static.runes
k.Static.runes().then(data => console.log(data))
const config = {
options: {
tags: ['basic', 'sanitizedDescription']
},
region: REGIONS.KOREA
}
k.Static.runes(config, KindredAPI.print)
/lol/static-data/v3/runes/{id}
- getStaticRuneById(id, [region], [options], [cb])
- Namespaced Functions: Static.Rune.by.id
const rune = 10002
k.Static.Rune.by.id(rune, { tags: 'image' }, KindredAPI.print)
k.Static.Rune.by.id(rune)
.then(data => console.log(data))
.catch(error => console.error(error))
- getRune({ region, id/runeId (int), options (object) }, cb)
- Namespaced Functions: Static.getRune, Static.rune
k.Static.rune({ id: 10002 }, KindredAPI.print)
const config = {
id: 10001,
options: {
tags: 'image',
version: '7.9.1'
},
region: REGIONS.KOREA
}
k.Static.rune(config, KindredAPI.print)
/lol/static-data/v3/summoner-spells
- getStaticSummonerSpellList([options], [region], [cb])
- Namespaced Functions: Static.SummonerSpell.list
k.Static.SummonerSpell.list(KindredAPI.print)
k.Static.SummonerSpell.list({ dataById: true }, KindredAPI.print)
k.Static.SummonerSpell.list(REGIONS.KOREA, KindredAPI.print)
k.Static.SummonerSpell.list({ dataById: true }, REGIONS.KOREA, KindredAPI.print)
- getSummonerSpells({ region, options (object) }, cb)
- Namespaced Functions: Static.getSummonerSpells, Static.summonerSpells, Static.spells
k.Static.spells(KindredAPI.print)
const options = {
tags: 'cost',
dataById: true
}
k.Static.spells({ options }, KindredAPI.print)
/lol/static-data/v3/summoner-spells/{id}
- getStaticSummonerSpellById(id, [options], [region], [cb])
- Namespaced Functions: Static.SummonerSpell.by.id
const spell = 3
k.Static.SummonerSpell.by.id(spell, { tags: 'cooldown' }, KindredAPI.print)
k.Static.SummonerSpell.by.id(spell, KindredAPI.print)
k.Static.SummonerSpell.by.id(spell, REGIONS.KOREA, KindredAPI.print)
- getSummonerSpell({ region, id/spellId/summonerSpellId (int), options (object) }, cb)
- Namespaced Functions: Static.getSummonerSpell, Static.summonerSpell, Static.spell
k.Static.spell({ id: 31 }, KindredAPI.print)
const region = REGIONS.BRAZIL
const config = {
id: 31,
region: REGIONS.BRAZIL,
options: {
tags: 'cooldown'
}
}
k.Static.spell(config, KindredAPI.print)
/lol/static-data/v3/versions
- getStaticVersionList([region], [cb])
- Namespaced Functions: Static.Version.list
k.Static.Version.list(KindredAPI.print)
k.Static.Version.list(REGIONS.KOREA, KindredAPI.print)
- getVersionData({ region }, cb)
- Namespaced Functions: Static.getVersionData, Static.versionData, Static.version, Static.versions
k.Static.versions(KindredAPI.print)