KogLeaguesService
A list of all methods in the KogLeaguesService
service. Click on the method name to view detailed information about that method.
Methods | Description |
---|---|
get_kog_leagues | List King of Glory leagues |
get_kog_leagues
List King of Glory leagues
- HTTP Method:
GET
- Endpoint:
/kog/leagues
Parameters
Name | Type | Required | Description |
---|---|---|---|
filter | FilterOverKogLeagues | ❌ | Options to filter results. String fields are case sensitive For more information on filtering, see docs. |
range | RangeOverKogLeagues | ❌ | 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 | SearchOverKogLeagues | ❌ | 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 {
FilterOverKogLeagues,
Page,
PandascoreClient,
RangeOverKogLeagues,
SearchOverKogLeagues,
} from 'pandascore_client';
(async () => {
const pandascoreClient = new PandascoreClient({
token: 'YOUR_TOKEN',
});
const filterOverKogLeagues: FilterOverKogLeagues = {
id: [2],
modifiedAt: ['dolor dolore et'],
name: ['quis aliquip '],
slug: ['8vznaumh'],
url: ['ullamco adipi'],
};
const rangeOverKogLeagues: RangeOverKogLeagues = {
id: [9],
modifiedAt: ['qui Duis'],
name: ['sunt c'],
slug: ['t'],
url: ['ea fug'],
};
const searchOverKogLeagues: SearchOverKogLeagues = {
name: 'ut id',
slug: '6nz1_90t',
url: 'do ullamco labo',
};
const page = 1;
const { data } = await pandascoreClient.kogLeagues.getKogLeagues({
filter: filterOverKogLeagues,
range: rangeOverKogLeagues,
sort: [[]],
search: searchOverKogLeagues,
page: page,
perPage: 50,
});
console.log(data);
})();
Build Your Own SDKs with liblab
Build developer friendly SDKs in minutes from your APIs