StarCraft2LeaguesService
A list of all methods in the StarCraft2LeaguesService
service. Click on the method name to view detailed information about that method.
Methods | Description |
---|---|
get_starcraft_2_leagues | List StarCraft 2 leagues |
get_starcraft_2_leagues
List StarCraft 2 leagues
- HTTP Method:
GET
- Endpoint:
/starcraft-2/leagues
Parameters
Name | Type | Required | Description |
---|---|---|---|
filter | FilterOverStarcraft2Leagues | ❌ | Options to filter results. String fields are case sensitive For more information on filtering, see docs. |
range | RangeOverStarcraft2Leagues | ❌ | 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 | SearchOverStarcraft2Leagues | ❌ | 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 FilterOverStarcraft2Leagues, RangeOverStarcraft2Leagues, SearchOverStarcraft2Leagues
sdk = PandascoreClient(
access_token="YOUR_ACCESS_TOKEN",
base_url=Environment.DEFAULT.value,
timeout=10000
)
filter=FilterOverStarcraft2Leagues(
id_=[
4
],
modified_at=[
"ad"
],
name=[
"utex est"
],
slug=[
"luoez"
],
url=[
"consequat "
]
)
range=RangeOverStarcraft2Leagues(
id_=[
7
],
modified_at=[
"et ex in"
],
name=[
"consectetur e"
],
slug=[
"q"
],
url=[
"veniam ut c"
]
)
sort=[
""
]
search=SearchOverStarcraft2Leagues(
name="in ei",
slug="kb1dlt",
url="aute "
)
page=1
result = sdk.star_craft_2_leagues.get_starcraft_2_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