Skip to content

Commit 10f0ef1

Browse files
committed
feat: minor update in example code
1 parent 1f561e3 commit 10f0ef1

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

examples/maplestory.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import asyncio
2+
from devtools import debug
23
from nexon_openapi import NexonOpenAPI, NexonOpenAPIAsync
34

45
if __name__ == "__main__":
@@ -26,26 +27,27 @@
2627
character_hexa_matrix_stat = client.maplestory.get_character_hexa_matrix_stat(ocid=ocid)
2728
character_dojang = client.maplestory.get_character_dojang(ocid=ocid)
2829

29-
# 유니온 정보 조회
30+
# # 유니온 정보 조회
3031
user_union = client.maplestory.get_user_union(ocid=ocid)
3132
user_union_raider = client.maplestory.get_user_union_raider(ocid=ocid)
33+
user_union_artifact = client.maplestory.get_user_union_artifact(ocid=ocid)
3234

33-
# 길드 정보 조회
35+
# # 길드 정보 조회
3436
guild_id = client.maplestory.get_guild_id(world_name="", guild_name="")
3537
guild_basic = client.maplestory.get_guild_basic(guild_id=guild_id)
3638

37-
# 랭킹 정보 조회
39+
# # 랭킹 정보 조회
3840
overall_ranking = client.maplestory.get_overall_ranking()
3941
union_ranking = client.maplestory.get_union_ranking()
4042
guild_ranking = client.maplestory.get_guild_ranking(ranking_type="0")
4143
dojang_ranking = client.maplestory.get_dojang_ranking(difficulty="1")
4244
the_seed_ranking = client.maplestory.get_the_seed_ranking()
4345
achievement_ranking = client.maplestory.get_achievement_ranking()
4446

45-
# 확률 정보 조회
47+
# # 확률 정보 조회
4648
startforce_history = client.maplestory.get_starforce_history(count=10)
4749

48-
# Async
50+
# # Async
4951
async def async_main():
5052
client = NexonOpenAPIAsync()
5153

@@ -74,6 +76,7 @@ async def async_main():
7476
# 유니온 정보 조회
7577
user_union = await client.maplestory.get_user_union(ocid=ocid)
7678
user_union_raider = await client.maplestory.get_user_union_raider(ocid=ocid)
79+
user_union_artifact = await client.maplestory.get_user_union_artifact(ocid=ocid)
7780

7881
# 길드 정보 조회
7982
guild_id = await client.maplestory.get_guild_id(world_name="", guild_name="")

0 commit comments

Comments
 (0)