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 | List[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 |
per_page | int | ❌ | Equivalent to page[size] |
Return Type
List[League]
Example Usage Code Snippet
from pandascore_client import PandascoreClient, Environment
from pandascore_client.models import FilterOverLoLLeagues, RangeOverLoLLeagues, SearchOverLoLLeagues
sdk = PandascoreClient(
access_token="YOUR_ACCESS_TOKEN",
base_url=Environment.DEFAULT.value,
timeout=10000
)
filter=FilterOverLoLLeagues(
id_=[
3
],
modified_at=[
"dol"
],
name=[
"mollit occa"
],
slug=[
"evf"
],
url=[
"magna dolor ali"
]
)
range=RangeOverLoLLeagues(
id_=[
7
],
modified_at=[
"quis"
],
name=[
"adipisicing"
],
slug=[
"_l-t"
],
url=[
"cillum esse al"
]
)
sort=[
""
]
search=SearchOverLoLLeagues(
name="Lorem de",
slug=":1pcxkfbh7q",
url="labore"
)
page=1
result = sdk.lo_l_leagues.get_lol_leagues(
filter=filter,
range=range,
sort=sort,
search=search,
page=page,
per_page=50
)
print(result)
Build Your Own SDKs with liblab
Build developer friendly SDKs in minutes from your APIs