LoLPlayersService
A list of all methods in the LoLPlayersService
service. Click on the method name to view detailed information about that method.
Methods | Description |
---|---|
get_lol_players | List players for the League of Legends videogame |
get_lol_players
List players for the League of Legends videogame
- HTTP Method:
GET
- Endpoint:
/lol/players
Parameters
Name | Type | Required | Description |
---|---|---|---|
filter | FilterOverLoLPlayers | ❌ | Options to filter results. String fields are case sensitive For more information on filtering, see docs. |
range | RangeOverLoLPlayers | ❌ | 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 | SearchOverLoLPlayers | ❌ | 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
Player[]
Example Usage Code Snippet
import {
FilterOverLoLPlayers,
Page,
PandascoreClient,
RangeOverLoLPlayers,
SearchOverLoLPlayers,
VideogameId,
} from 'pandascore_client';
(async () => {
const pandascoreClient = new PandascoreClient({
token: 'YOUR_TOKEN',
});
const videogameId = VideogameId._1;
const filterOverLoLPlayers: FilterOverLoLPlayers = {
active: true,
birthday: ['quis exercita'],
firstName: ['enimconsec'],
id: [7],
lastName: ['Excepte'],
modifiedAt: ['culpa'],
name: ['sit commodo a'],
nationality: ['sed aliquip ut'],
role: ['enim nulla'],
slug: ['4'],
teamId: [9],
videogameId: [videogameId],
};
const rangeOverLoLPlayers: RangeOverLoLPlayers = {
birthday: ['proiden'],
firstName: ['esse officia m'],
id: [2],
lastName: ['Ut lab'],
modifiedAt: ['aute do volup'],
name: ['nostrud'],
nationality: ['velit pari'],
role: ['exercit'],
slug: ['bs51gp'],
};
const searchOverLoLPlayers: SearchOverLoLPlayers = {
birthday: 'dolore',
firstName: 'adipi',
lastName: 'conse',
name: 'dolore',
nationality: 'sunt Duis',
role: 'animno',
slug: 'd-',
};
const page = 1;
const { data } = await pandascoreClient.loLPlayers.getLolPlayers({
filter: filterOverLoLPlayers,
range: rangeOverLoLPlayers,
sort: [[]],
search: searchOverLoLPlayers,
page: page,
perPage: 50,
});
console.log(data);
})();
Build Your Own SDKs with liblab
Build developer friendly SDKs in minutes from your APIs