api class

class async_bgm_api.api.BgmApi(mirror=False)[源代码]
参数

mirror -- if use mirror mirror.api.bgm.rin.cat

async get_subject_large(subject_id: int) → async_bgm_api.models.subject.SubjectLarge[源代码]

get subject info with response group large

参数

subject_id --

async get_subject_media(subject_id: int) → async_bgm_api.models.subject.SubjectMedia[源代码]

get subject info with response group medium, medium should be typo I guess.

参数

subject_id --

async get_subject_small(subject_id: int) → async_bgm_api.models.subject.SubjectSmall[源代码]

get subject info with response group small

参数

subject_id --

async get_subject_with_eps(subject_id: int) → async_bgm_api.models.SubjectWithEps[源代码]

https://bangumi.github.io/api/#/条目/get_subject__subject_id__ep

参数

subject_id --

async get_user_collection(user_id: Union[str, int], cat: async_bgm_api.models.CollectionCat) → List[async_bgm_api.models.UserCollection][源代码]

https://bangumi.github.io/api/#/用户/get_user__username__collection

参数
  • user_id --

  • cat -- watching or all_watching

async get_user_info(user_id: Union[str, int]) → async_bgm_api.models.UserInfo[源代码]

https://bangumi.github.io/api/#/用户/get_user__username_

参数

user_id --