OwLeaguesService
A list of all methods in the OwLeaguesService
service. Click on the method name to view detailed information about that method.
Methods | Description |
---|---|
get_ow_leagues | List Overwatch leagues |
get_ow_leagues
List Overwatch leagues
- HTTP Method:
GET
- Endpoint:
/ow/leagues
Parameters
Name | Type | Required | Description |
---|---|---|---|
filter | FilterOverOwLeagues | ❌ | Options to filter results. String fields are case sensitive For more information on filtering, see docs. |
range | RangeOverOwLeagues | ❌ | 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 | SearchOverOwLeagues | ❌ | 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 FilterOverOwLeagues, RangeOverOwLeagues, SearchOverOwLeagues
sdk = PandascoreClient(
access_token="YOUR_ACCESS_TOKEN",
base_url=Environment.DEFAULT.value,
timeout=10000
)
filter=FilterOverOwLeagues(
id_=[
3
],
modified_at=[
"cillum"
],
name=[
"consequat ni"
],
slug=[
"i_j01uy"
],
url=[
"ipsum"
]
)
range=RangeOverOwLeagues(
id_=[
5
],
modified_at=[
"c"
],
name=[
"laborum anim es"
],
slug=[
"cto0"
],
url=[
"cupidatat irur"
]
)
sort=[
""
]
search=SearchOverOwLeagues(
name="dolor mini",
slug="mt_2hbpfj",
url="qui exerci"
)
page=1
result = sdk.ow_leagues.get_ow_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