Dota2LeaguesService
A list of all methods in the Dota2LeaguesService
service. Click on the method name to view detailed information about that method.
Methods | Description |
---|---|
get_dota2_leagues | List Dota2 leagues |
get_dota2_leagues
List Dota2 leagues
- HTTP Method:
GET
- Endpoint:
/dota2/leagues
Parameters
Name | Type | Required | Description |
---|---|---|---|
filter | FilterOverDota2Leagues | ❌ | Options to filter results. String fields are case sensitive For more information on filtering, see docs. |
range | RangeOverDota2Leagues | ❌ | 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 | SearchOverDota2Leagues | ❌ | 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 {
FilterOverDota2Leagues,
Page,
PandascoreClient,
RangeOverDota2Leagues,
SearchOverDota2Leagues,
} from 'pandascore_client';
(async () => {
const pandascoreClient = new PandascoreClient({
token: 'YOUR_TOKEN',
});
const filterOverDota2Leagues: FilterOverDota2Leagues = {
id: [3],
modifiedAt: ['proident labo'],
name: ['dolor proid'],
slug: ['_lxx'],
url: ['anim ea est U'],
};
const rangeOverDota2Leagues: RangeOverDota2Leagues = {
id: [8],
modifiedAt: ['aliqua aute'],
name: ['aliqua ea '],
slug: ['uic'],
url: ['in aute elit'],
};
const searchOverDota2Leagues: SearchOverDota2Leagues = {
name: 'Excepteur ip',
slug: 'pu97glcez',
url: 'dolore ipsum d',
};
const page = 1;
const { data } = await pandascoreClient.dota2Leagues.getDota2Leagues({
filter: filterOverDota2Leagues,
range: rangeOverDota2Leagues,
sort: [[]],
search: searchOverDota2Leagues,
page: page,
perPage: 50,
});
console.log(data);
})();
Build Your Own SDKs with liblab
Build developer friendly SDKs in minutes from your APIs