Skip to main content

LoLSpellsService

A list of all methods in the LoLSpellsService service. Click on the method name to view detailed information about that method.

MethodsDescription
get_lol_spellsList spells
get_lol_spells_lolSpellIdGet a single spell by ID

get_lol_spells

List spells

  • HTTP Method: GET
  • Endpoint: /lol/spells

Parameters

NameTypeRequiredDescription
filterFilterOverLoLSpellsOptions to filter results. String fields are case sensitive
For more information on filtering, see docs.
rangeRangeOverLoLSpellsOptions to select results within ranges
For more information on ranges, see docs.
sortany[]Options to sort results
For more information on sorting, see docs.
searchSearchOverLoLSpellsOptions to search results
For more information on searching, see docs.
pagePagePagination in the form of page=2 or page[size]=30&page[number]=2
perPagenumberEquivalent 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

NameTypeRequiredDescription
lolSpellIdnumberA 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

Start for Free →