LoLSpellsService
A list of all methods in the LoLSpellsService
service. Click on the method name to view detailed information about that method.
Methods | Description |
---|---|
get_lol_spells | List spells |
get_lol_spells_lolSpellId | Get a single spell by ID |
get_lol_spells
List spells
- HTTP Method:
GET
- Endpoint:
/lol/spells
Parameters
Name | Type | Required | Description |
---|---|---|---|
filter | FilterOverLoLSpells | ❌ | Options to filter results. String fields are case sensitive For more information on filtering, see docs. |
range | RangeOverLoLSpells | ❌ | Options to select results within ranges For more information on ranges, see docs. |
sort | any[] | ❌ | Options to sort results For more information on sorting, see docs. |
search | SearchOverLoLSpells | ❌ | Options to search results For more information on searching, see docs. |
page | Page | ❌ | Pagination in the form of page=2 or page[size]=30&page[number]=2 |
perPage | number | ❌ | Equivalent to page[size] |
Return Type
LoLSpell[]
Example Usage Code Snippet
import {
FilterOverLoLSpells,
Page,
PandascoreClient,
RangeOverLoLSpells,
SearchOverLoLSpells,
} from 'pandascore_client';
(async () => {
const pandascoreClient = new PandascoreClient({
token: 'YOUR_TOKEN',
});
const filterOverLoLSpells: FilterOverLoLSpells = {
id: [8],
name: ['laborum dolor'],
videogameVersion: [],
};
const rangeOverLoLSpells: RangeOverLoLSpells = {
id: [2],
name: ['dolore com'],
};
const searchOverLoLSpells: SearchOverLoLSpells = {
name: 'veniam ea',
};
const page = 1;
const { data } = await pandascoreClient.loLSpells.getLolSpells({
filter: filterOverLoLSpells,
range: rangeOverLoLSpells,
sort: [[]],
search: searchOverLoLSpells,
page: page,
perPage: 50,
});
console.log(data);
})();
get_lol_spells_lolSpellId
Get a single spell by ID
- HTTP Method:
GET
- Endpoint:
/lol/spells/{lol_spell_id}
Parameters
Name | Type | Required | Description |
---|---|---|---|
lolSpellId | number | ✅ | A spell ID |
Return Type
LoLSpell
Example Usage Code Snippet
import { PandascoreClient } from 'pandascore_client';
(async () => {
const pandascoreClient = new PandascoreClient({
token: 'YOUR_TOKEN',
});
const { data } = await pandascoreClient.loLSpells.getLolSpellsLolSpellId(8);
console.log(data);
})();
Build Your Own SDKs with liblab
Build developer friendly SDKs in minutes from your APIs