Skip to main content

OwLeaguesService

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

MethodsDescription
get_ow_leaguesList Overwatch leagues

get_ow_leagues

List Overwatch leagues

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

Parameters

NameTypeRequiredDescription
filterFilterOverOwLeaguesOptions to filter results. String fields are case sensitive
For more information on filtering, see docs.
rangeRangeOverOwLeaguesOptions to select results within ranges
For more information on ranges, see docs.
sortany[]Options to sort results
For more information on sorting, see docs.
searchSearchOverOwLeaguesOptions 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 {
FilterOverOwLeagues,
Page,
PandascoreClient,
RangeOverOwLeagues,
SearchOverOwLeagues,
} from 'pandascore_client';

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

const filterOverOwLeagues: FilterOverOwLeagues = {
id: [3],
modifiedAt: ['cillum'],
name: ['consequat ni'],
slug: ['i_j01uy'],
url: ['ipsum'],
};

const rangeOverOwLeagues: RangeOverOwLeagues = {
id: [5],
modifiedAt: ['c'],
name: ['laborum anim es'],
slug: ['cto0'],
url: ['cupidatat irur'],
};

const searchOverOwLeagues: SearchOverOwLeagues = {
name: 'dolor mini',
slug: 'mt_2hbpfj',
url: 'qui exerci',
};
const page = 1;

const { data } = await pandascoreClient.owLeagues.getOwLeagues({
filter: filterOverOwLeagues,
range: rangeOverOwLeagues,
sort: [[]],
search: searchOverOwLeagues,
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 →