Dota2AbilitiesService
A list of all methods in the Dota2AbilitiesService
service. Click on the method name to view detailed information about that method.
Methods | Description |
---|---|
get_dota2_abilities | List abilities |
get_dota2_abilities_dota2_ability_id_or_slug | Get a single ability by ID or by slug |
get_dota2_abilities
List abilities
- HTTP Method:
GET
- Endpoint:
/dota2/abilities
Parameters
Name | Type | Required | Description |
---|---|---|---|
filter | FilterOverDota2Abilities | ❌ | Options to filter results. String fields are case sensitive For more information on filtering, see docs. |
range | RangeOverDota2Abilities | ❌ | 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 | SearchOverDota2Abilities | ❌ | 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[Dota2Ability]
Example Usage Code Snippet
from pandascore_client import PandascoreClient, Environment
from pandascore_client.models import FilterOverDota2Abilities, RangeOverDota2Abilities, SearchOverDota2Abilities
sdk = PandascoreClient(
access_token="YOUR_ACCESS_TOKEN",
base_url=Environment.DEFAULT.value,
timeout=10000
)
filter=FilterOverDota2Abilities(
id_=[
10
],
name=[
"mv8o1gq"
]
)
range=RangeOverDota2Abilities(
id_=[
10
],
name=[
"g6tgc"
]
)
sort=[
""
]
search=SearchOverDota2Abilities(
name="a78ls0h8h80"
)
page=1
result = sdk.dota2_abilities.get_dota2_abilities(
filter=filter,
range=range,
sort=sort,
search=search,
page=page,
per_page=50
)
print(result)
get_dota2_abilities_dota2_ability_id_or_slug
Get a single ability by ID or by slug
- HTTP Method:
GET
- Endpoint:
/dota2/abilities/{dota2_ability_id_or_slug}
Parameters
Name | Type | Required | Description |
---|---|---|---|
dota2_ability_id_or_slug | Dota2AbilityIdOrSlug | ✅ | An ability ID or slug |
Return Type
Dota2Ability
Example Usage Code Snippet
from pandascore_client import PandascoreClient, Environment
sdk = PandascoreClient(
access_token="YOUR_ACCESS_TOKEN",
base_url=Environment.DEFAULT.value,
timeout=10000
)
dota2_ability_id_or_slug=2
result = sdk.dota2_abilities.get_dota2_abilities_dota2_ability_id_or_slug(dota2_ability_id_or_slug=dota2_ability_id_or_slug)
print(result)
Build Your Own SDKs with liblab
Build developer friendly SDKs in minutes from your APIs