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 | List[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 |
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 FilterOverDota2Leagues, RangeOverDota2Leagues, SearchOverDota2Leagues
sdk = PandascoreClient(
access_token="YOUR_ACCESS_TOKEN",
base_url=Environment.DEFAULT.value,
timeout=10000
)
filter=FilterOverDota2Leagues(
id_=[
3
],
modified_at=[
"proident labo"
],
name=[
"dolor proid"
],
slug=[
"_lxx"
],
url=[
"anim ea est U"
]
)
range=RangeOverDota2Leagues(
id_=[
8
],
modified_at=[
"aliqua aute"
],
name=[
"aliqua ea "
],
slug=[
"uic"
],
url=[
"in aute elit"
]
)
sort=[
""
]
search=SearchOverDota2Leagues(
name="Excepteur ip",
slug="pu97glcez",
url="dolore ipsum d"
)
page=1
result = sdk.dota2_leagues.get_dota2_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