This commit is contained in:
Cinte 2022-09-17 11:23:55 +08:00 committed by GitHub
parent ec448cfdfb
commit 1174b5cc7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -111,8 +111,16 @@ async def get_videos(
} }
return await get(url, params=params, auth=auth, reqtype=reqtype, **kwargs) return await get(url, params=params, auth=auth, reqtype=reqtype, **kwargs)
async def get_user_card(mid, photo: bool = False): async def get_user_card(mid, photo: bool = False, auth=None, reqtype="both", **kwargs):
from bilireq.utils import get from bilireq.utils import get
url = f"{BASE_URL}/x/web-interface/card" url = f"{BASE_URL}/x/web-interface/card"
r = await get(url, params={"mid":mid, "photo": photo}) return (
return r["card"] await get(
url,
params={"mid": mid, "photo": photo},
auth=auth,
reqtype=reqtype,
**kwargs,
)
)["card"]