From a5312a4625a2ea04b7de2620e47a664934da3f03 Mon Sep 17 00:00:00 2001 From: tonydero Date: Mon, 23 Dec 2024 08:02:06 -0700 Subject: [PATCH] add example from pypi and testing --- example.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 example.py diff --git a/example.py b/example.py new file mode 100644 index 0000000..e832d6e --- /dev/null +++ b/example.py @@ -0,0 +1,16 @@ +from blizzardapi2 import BlizzardApi + +api_client = BlizzardApi("a79bae348867427690ca6df9903e4af0", "8l1KhVr1DkcqpXQl454WZmtlN3LvgBO5") + +# Unprotected API endpoint +categories_index = api_client.wow.game_data.get_achievement_categories_index("us", "en_US") + +# Protected API endpoint +# summary = api_client.wow.profile.get_account_profile_summary("us", "en_US", "access_token") + +# Wow Classic endpoint +connected_realms_index = api_client.wow.game_data.get_connected_realms_index("us", "en_US", is_classic=True) + +print(categories_index) +# print(summary) +print(connected_realms_index)