LoLLeaguesService
A list of all methods in the LoLLeaguesService
service. Click on the method name to view detailed information about that method.
Methods | Description |
---|---|
get_lol_leagues | List League of Legends leagues |
get_lol_leagues
List League of Legends leagues
- HTTP Method:
GET
- Endpoint:
/lol/leagues
Parameters
Name | Type | Required | Description |
---|---|---|---|
filter | FilterOverLoLLeagues | ❌ | Options to filter results. String fields are case sensitive For more information on filtering, see docs. |
range | RangeOverLoLLeagues | ❌ | 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 | SearchOverLoLLeagues | ❌ | 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 {
FilterOverLoLLeagues,
Page,
PandascoreClient,
RangeOverLoLLeagues,
SearchOverLoLLeagues,
} from 'pandascore_client';
(async () => {
const pandascoreClient = new PandascoreClient({
token: 'YOUR_TOKEN',
});
const filterOverLoLLeagues: FilterOverLoLLeagues = {
id: [3],
modifiedAt: ['dol'],
name: ['mollit occa'],
slug: ['evf'],
url: ['magna dolor ali'],
};
const rangeOverLoLLeagues: RangeOverLoLLeagues = {
id: [7],
modifiedAt: ['quis'],
name: ['adipisicing'],
slug: ['_l-t'],
url: ['cillum esse al'],
};
const searchOverLoLLeagues: SearchOverLoLLeagues = {
name: 'Lorem de',
slug: ':1pcxkfbh7q',
url: 'labore',
};
const page = 1;
const { data } = await pandascoreClient.loLLeagues.getLolLeagues({
filter: filterOverLoLLeagues,
range: rangeOverLoLLeagues,
sort: [[]],
search: searchOverLoLLeagues,
page: page,
perPage: 50,
});
console.log(data);
})();
Build Your Own SDKs with liblab
Build developer friendly SDKs in minutes from your APIs