Skip to main content

CodmwPlayersService

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

MethodsDescription
get_codmw_playersList players for the CODMW videogame

get_codmw_players

List players for the CODMW videogame

  • HTTP Method: GET
  • Endpoint: /codmw/players

Parameters

NameTypeRequiredDescription
filterFilterOverCodmwPlayersOptions to filter results. String fields are case sensitive
For more information on filtering, see docs.
rangeRangeOverCodmwPlayersOptions to select results within ranges
For more information on ranges, see docs.
sortany[]Options to sort results
For more information on sorting, see docs.
searchSearchOverCodmwPlayersOptions 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

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

Start for Free →