Skip to main content

CodmwLeaguesService

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

MethodsDescription
get_codmw_leaguesList CODMW leagues

get_codmw_leagues

List CODMW leagues

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

Parameters

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

League[]

Example Usage Code Snippet

import {
FilterOverCodmwLeagues,
Page,
PandascoreClient,
RangeOverCodmwLeagues,
SearchOverCodmwLeagues,
} from 'pandascore_client';

(async () => {
const pandascoreClient = new PandascoreClient({
token: 'YOUR_TOKEN',
});

const filterOverCodmwLeagues: FilterOverCodmwLeagues = {
id: [4],
modifiedAt: ['sunt magna'],
name: ['eu inc'],
slug: ['7pqnq'],
url: ['tempor sint Exc'],
};

const rangeOverCodmwLeagues: RangeOverCodmwLeagues = {
id: [9],
modifiedAt: ['ex laboru'],
name: ['et consectetur '],
slug: ['gprmck'],
url: ['laboris moll'],
};

const searchOverCodmwLeagues: SearchOverCodmwLeagues = {
name: 'Ut mollit',
slug: 'su',
url: 'cillum',
};
const page = 1;

const { data } = await pandascoreClient.codmwLeagues.getCodmwLeagues({
filter: filterOverCodmwLeagues,
range: rangeOverCodmwLeagues,
sort: [[]],
search: searchOverCodmwLeagues,
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 →