OwLeaguesService
A list of all methods in the OwLeaguesService
service. Click on the method name to view detailed information about that method.
Methods | Description |
---|---|
get_ow_leagues | List Overwatch leagues |
get_ow_leagues
List Overwatch leagues
- HTTP Method:
GET
- Endpoint:
/ow/leagues
Parameters
Name | Type | Required | Description |
---|---|---|---|
filter | FilterOverOwLeagues | ❌ | Options to filter results. String fields are case sensitive For more information on filtering, see docs. |
range | RangeOverOwLeagues | ❌ | 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 | SearchOverOwLeagues | ❌ | 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
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