CodmwPlayersService
A list of all methods in the CodmwPlayersService
service. Click on the method name to view detailed information about that method.
Methods | Description |
---|---|
get_codmw_players | List players for the CODMW videogame |
get_codmw_players
List players for the CODMW videogame
- HTTP Method:
GET
- Endpoint:
/codmw/players
Parameters
Name | Type | Required | Description |
---|---|---|---|
filter | FilterOverCodmwPlayers | ❌ | Options to filter results. String fields are case sensitive For more information on filtering, see docs. |
range | RangeOverCodmwPlayers | ❌ | 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 | SearchOverCodmwPlayers | ❌ | 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 {
FilterOverCodmwPlayers,
Page,
PandascoreClient,
RangeOverCodmwPlayers,
SearchOverCodmwPlayers,
VideogameId,
} from 'pandascore_client';
(async () => {
const pandascoreClient = new PandascoreClient({
token: 'YOUR_TOKEN',
});
const videogameId = VideogameId._1;
const filterOverCodmwPlayers: FilterOverCodmwPlayers = {
active: true,
birthday: ['laboris s'],
firstName: ['ea su'],
id: [4],
lastName: ['nisi '],
modifiedAt: ['sit sed non al'],
name: ['ea occaecat '],
nationality: ['velit i'],
role: ['ut ven'],
slug: ['0x'],
teamId: [2],
videogameId: [videogameId],
};
const rangeOverCodmwPlayers: RangeOverCodmwPlayers = {
birthday: ['exdo aute'],
firstName: ['fugiat D'],
id: [3],
lastName: ['anim e'],
modifiedAt: ['la'],
name: ['ipsum veniam'],
nationality: ['nisi min'],
role: ['anim aliqua'],
slug: ['tdx6k-'],
};
const searchOverCodmwPlayers: SearchOverCodmwPlayers = {
birthday: 'Ut non amet ',
firstName: 'dolore comm',
lastName: 'minim ',
name: 'amet d',
nationality: 'ut minim',
role: 'enimut ex si',
slug: 'mpp4jva',
};
const page = 1;
const { data } = await pandascoreClient.codmwPlayers.getCodmwPlayers({
filter: filterOverCodmwPlayers,
range: rangeOverCodmwPlayers,
sort: [[]],
search: searchOverCodmwPlayers,
page: page,
perPage: 50,
});
console.log(data);
})();
Build Your Own SDKs with liblab
Build developer friendly SDKs in minutes from your APIs