OwHeroesService
A list of all methods in the OwHeroesService
service. Click on the method name to view detailed information about that method.
Methods | Description |
---|---|
get_ow_heroes | List heroes |
get_ow_heroes_ow_hero_id_or_slug | Get a single hero by ID or by slug |
get_ow_heroes
List heroes
- HTTP Method:
GET
- Endpoint:
/ow/heroes
Parameters
Name | Type | Required | Description |
---|---|---|---|
filter | FilterOverOwHeroes | ❌ | Options to filter results. String fields are case sensitive For more information on filtering, see docs. |
range | RangeOverOwHeroes | ❌ | 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 | SearchOverOwHeroes | ❌ | 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[OwHero]
Example Usage Code Snippet
from pandascore_client import PandascoreClient, Environment
from pandascore_client.models import FilterOverOwHeroes, RangeOverOwHeroes, SearchOverOwHeroes
sdk = PandascoreClient(
access_token="YOUR_ACCESS_TOKEN",
base_url=Environment.DEFAULT.value,
timeout=10000
)
filter=FilterOverOwHeroes(
difficulty=[
9
],
id_=[
9
],
name=[
"deserunt ex "
],
real_name=[
"cupidat"
],
role=[
"damage"
],
slug=[
"zv5jss750"
]
)
range=RangeOverOwHeroes(
difficulty=[
3
],
id_=[
2
],
name=[
"minim sunt e"
],
real_name=[
"sit e"
],
role=[
"damage"
],
slug=[
"78i6qbl8zdp"
]
)
sort=[
""
]
search=SearchOverOwHeroes(
name="officia",
real_name="fugiat in off",
role="damage",
slug="1xp0s5w9_jk"
)
page=1
result = sdk.ow_heroes.get_ow_heroes(
filter=filter,
range=range,
sort=sort,
search=search,
page=page,
per_page=50
)
print(result)
get_ow_heroes_ow_hero_id_or_slug
Get a single hero by ID or by slug
- HTTP Method:
GET
- Endpoint:
/ow/heroes/{ow_hero_id_or_slug}
Parameters
Name | Type | Required | Description |
---|---|---|---|
ow_hero_id_or_slug | OwHeroIdOrSlug | ✅ | A hero ID or slug |
Return Type
OwHero
Example Usage Code Snippet
from pandascore_client import PandascoreClient, Environment
sdk = PandascoreClient(
access_token="YOUR_ACCESS_TOKEN",
base_url=Environment.DEFAULT.value,
timeout=10000
)
ow_hero_id_or_slug=2
result = sdk.ow_heroes.get_ow_heroes_ow_hero_id_or_slug(ow_hero_id_or_slug=ow_hero_id_or_slug)
print(result)
Build Your Own SDKs with liblab
Build developer friendly SDKs in minutes from your APIs