LoLSpellsService
A list of all methods in the LoLSpellsService
service. Click on the method name to view detailed information about that method.
Methods | Description |
---|---|
get_lol_spells | List spells |
get_lol_spells_lol_spell_id | Get a single spell by ID |
get_lol_spells
List spells
- HTTP Method:
GET
- Endpoint:
/lol/spells
Parameters
Name | Type | Required | Description |
---|---|---|---|
filter | FilterOverLoLSpells | ❌ | Options to filter results. String fields are case sensitive For more information on filtering, see docs. |
range | RangeOverLoLSpells | ❌ | 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 | SearchOverLoLSpells | ❌ | 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[LoLSpell]
Example Usage Code Snippet
from pandascore_client import PandascoreClient, Environment
from pandascore_client.models import FilterOverLoLSpells, RangeOverLoLSpells, SearchOverLoLSpells
sdk = PandascoreClient(
access_token="YOUR_ACCESS_TOKEN",
base_url=Environment.DEFAULT.value,
timeout=10000
)
filter=FilterOverLoLSpells(
id_=[
8
],
name=[
"laborum dolor"
],
videogame_version=""
)
range=RangeOverLoLSpells(
id_=[
2
],
name=[
"dolore com"
]
)
sort=[
""
]
search=SearchOverLoLSpells(
name="veniam ea"
)
page=1
result = sdk.lo_l_spells.get_lol_spells(
filter=filter,
range=range,
sort=sort,
search=search,
page=page,
per_page=50
)
print(result)
get_lol_spells_lol_spell_id
Get a single spell by ID
- HTTP Method:
GET
- Endpoint:
/lol/spells/{lol_spell_id}
Parameters
Name | Type | Required | Description |
---|---|---|---|
lol_spell_id | int | ✅ | A spell ID |
Return Type
LoLSpell
Example Usage Code Snippet
from pandascore_client import PandascoreClient, Environment
sdk = PandascoreClient(
access_token="YOUR_ACCESS_TOKEN",
base_url=Environment.DEFAULT.value,
timeout=10000
)
result = sdk.lo_l_spells.get_lol_spells_lol_spell_id(lol_spell_id=8)
print(result)
Build Your Own SDKs with liblab
Build developer friendly SDKs in minutes from your APIs