KogPlayersService
A list of all methods in the KogPlayersService
service. Click on the method name to view detailed information about that method.
Methods | Description |
---|---|
get_kog_players | List players for the King of Glory videogame |
get_kog_players
List players for the King of Glory videogame
- HTTP Method:
GET
- Endpoint:
/kog/players
Parameters
Name | Type | Required | Description |
---|---|---|---|
filter | FilterOverKogPlayers | ❌ | Options to filter results. String fields are case sensitive For more information on filtering, see docs. |
range | RangeOverKogPlayers | ❌ | 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 | SearchOverKogPlayers | ❌ | 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 {
FilterOverKogPlayers,
Page,
PandascoreClient,
RangeOverKogPlayers,
SearchOverKogPlayers,
VideogameId,
} from 'pandascore_client';
(async () => {
const pandascoreClient = new PandascoreClient({
token: 'YOUR_TOKEN',
});
const videogameId = VideogameId._1;
const filterOverKogPlayers: FilterOverKogPlayers = {
active: true,
birthday: ['Duis aute sit'],
firstName: ['occaec'],
id: [6],
lastName: ['mollit'],
modifiedAt: ['in'],
name: ['laboris aliqua '],
nationality: ['proident i'],
role: ['venia'],
slug: ['pdt-82'],
teamId: [7],
videogameId: [videogameId],
};
const rangeOverKogPlayers: RangeOverKogPlayers = {
birthday: ['ad elit '],
firstName: ['tempor'],
id: [6],
lastName: ['aute ali'],
modifiedAt: ['consectetu'],
name: ['sintin'],
nationality: ['elit occaeca'],
role: ['minim '],
slug: ['_qmb96lw89'],
};
const searchOverKogPlayers: SearchOverKogPlayers = {
birthday: 'nisi sed deseru',
firstName: 'cupid',
lastName: 'aliqua magna no',
name: 'in dolore ',
nationality: 'proident',
role: 'magna cu',
slug: 'wiv',
};
const page = 1;
const { data } = await pandascoreClient.kogPlayers.getKogPlayers({
filter: filterOverKogPlayers,
range: rangeOverKogPlayers,
sort: [[]],
search: searchOverKogPlayers,
page: page,
perPage: 50,
});
console.log(data);
})();
Build Your Own SDKs with liblab
Build developer friendly SDKs in minutes from your APIs