File size: 564 Bytes
0aee47a |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
"""
bilibili_api.client
IP 终端相关
"""
from .utils.utils import get_api
from .utils.network import Api
API = get_api("client")
async def get_zone() -> dict:
"""
通过 IP 获取地理位置
Returns:
dict: 调用 API 返回的结果
"""
api = API["zone"]
return await Api(**api).result
# async def get_client_info() -> dict:
# """
# 获取 IP 信息
# Returns:
# dict: 调用 API 返回的结果
# """
# api = API["info"]
# return await Api(**api).result
|