LoLMasteriesService
A list of all methods in the LoLMasteriesService
service. Click on the method name to view detailed information about that method.
Methods | Description |
---|---|
get_lol_masteries | List masteries |
get_lol_masteries_lolMasteryId | Get a single mastery by ID |
get_lol_masteries
List masteries
- HTTP Method:
GET
- Endpoint:
/lol/masteries
Parameters
Name | Type | Required | Description |
---|---|---|---|
filter | FilterOverLoLMasteries | ❌ | Options to filter results. String fields are case sensitive For more information on filtering, see docs. |
range | RangeOverLoLMasteries | ❌ | 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 | SearchOverLoLMasteries | ❌ | 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
LoLMastery[]
Example Usage Code Snippet
import {
FilterOverLoLMasteries,
Page,
PandascoreClient,
RangeOverLoLMasteries,
SearchOverLoLMasteries,
} from 'pandascore_client';
(async () => {
const pandascoreClient = new PandascoreClient({
token: 'YOUR_TOKEN',
});
const filterOverLoLMasteries: FilterOverLoLMasteries = {
id: [4],
name: ['sunt velit'],
};
const rangeOverLoLMasteries: RangeOverLoLMasteries = {
id: [3],
name: ['mollit pa'],
};
const searchOverLoLMasteries: SearchOverLoLMasteries = {
name: 'eiusmod',
};
const page = 1;
const { data } = await pandascoreClient.loLMasteries.getLolMasteries({
filter: filterOverLoLMasteries,
range: rangeOverLoLMasteries,
sort: [[]],
search: searchOverLoLMasteries,
page: page,
perPage: 50,
});
console.log(data);
})();
get_lol_masteries_lolMasteryId
Get a single mastery by ID
- HTTP Method:
GET
- Endpoint:
/lol/masteries/{lol_mastery_id}
Parameters
Name | Type | Required | Description |
---|---|---|---|
lolMasteryId | number | ✅ | A mastery ID |
Return Type
LoLMastery
Example Usage Code Snippet
import { PandascoreClient } from 'pandascore_client';
(async () => {
const pandascoreClient = new PandascoreClient({
token: 'YOUR_TOKEN',
});
const { data } = await pandascoreClient.loLMasteries.getLolMasteriesLolMasteryId(10);
console.log(data);
})();
Build Your Own SDKs with liblab
Build developer friendly SDKs in minutes from your APIs