EnkaNetwork.py/example/assets/namecard.py
xSTACIA fc4c09ae0b renamed __pydantic_self__ to self
remove PyPEP8 E501
example `asyncio.loop` to `asyncio.run`

examples: pass all
2022-08-17 11:54:16 +07:00

19 lines
490 B
Python

import asyncio
from enkanetwork import Assets
assets = Assets(lang="th")
async def main():
namecard = assets.namecards(210059)
name = assets.get_hash_map(namecard.hash_id)
print("=== Asset character ===")
print(f"ID: {namecard.id}")
print(f"Name (Hash ID): {namecard.hash_id}")
print(f"Name (Hashed): {name}")
print(f"Icon: {namecard.icon}")
print(f"Banner URL: {namecard.banner}")
print(f"Navbar (Alpha) URL: {namecard.navbar}")
asyncio.run(main())