pub struct BpiClient { /* private fields */ }
Expand description
使用示例:
use bpi_rs::{ Account, BpiClient };
#[tokio::main]
async fn main() {
let bpi = BpiClient::new();
bpi.set_account(Account {
dede_user_id: "".to_string(),
dede_user_id_ckmd5: "".to_string(),
sessdata: "".to_string(),
bili_jct: "".to_string(),
buvid3: "".to_string(),
});
// bpi.set_account_from_cookie_str("dede_user_id=123;bili_jct=456...");
let result = bpi.bangumi_info(28220978).await;
match result {
Ok(result) => {
tracing::info!("{:#?}", result.data);
}
Err(e) => {
tracing::error!("{:#?}", e);
}
}
}
Implementations§
Source§impl BpiClient
impl BpiClient
Sourcepub async fn activity_info(
&self,
sid: u64,
bvid: Option<&str>,
) -> Result<BpiResponse<ActivityInfoData>, BpiError>
pub async fn activity_info( &self, sid: u64, bvid: Option<&str>, ) -> Result<BpiResponse<ActivityInfoData>, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn activity_list(
&self,
plat: Option<&str>,
mold: Option<i32>,
http: Option<i32>,
pn: Option<i32>,
ps: Option<i32>,
) -> Result<BpiResponse<ActivityListData>, BpiError>
pub async fn activity_list( &self, plat: Option<&str>, mold: Option<i32>, http: Option<i32>, pn: Option<i32>, ps: Option<i32>, ) -> Result<BpiResponse<ActivityListData>, BpiError>
Sourcepub async fn activity_list_default(
&self,
) -> Result<BpiResponse<ActivityListData>, BpiError>
pub async fn activity_list_default( &self, ) -> Result<BpiResponse<ActivityListData>, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn article_like(
&self,
id: u64,
like: bool,
) -> Result<BpiResponse<Value>, BpiError>
pub async fn article_like( &self, id: u64, like: bool, ) -> Result<BpiResponse<Value>, BpiError>
Sourcepub async fn article_coin(
&self,
aid: u64,
upid: u64,
multiply: u32,
) -> Result<BpiResponse<CoinResponseData>, BpiError>
pub async fn article_coin( &self, aid: u64, upid: u64, multiply: u32, ) -> Result<BpiResponse<CoinResponseData>, BpiError>
Sourcepub async fn article_favorite(
&self,
id: u64,
) -> Result<BpiResponse<Value>, BpiError>
pub async fn article_favorite( &self, id: u64, ) -> Result<BpiResponse<Value>, BpiError>
Sourcepub async fn article_unfavorite(
&self,
id: i64,
) -> Result<BpiResponse<Value>, BpiError>
pub async fn article_unfavorite( &self, id: i64, ) -> Result<BpiResponse<Value>, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn article_articles_info(
&self,
id: i64,
) -> Result<BpiResponse<ArticlesData>, BpiError>
pub async fn article_articles_info( &self, id: i64, ) -> Result<BpiResponse<ArticlesData>, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn article_cards(&self, ids: &str) -> Result<CardResponse, BpiError>
pub async fn article_cards(&self, ids: &str) -> Result<CardResponse, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn article_info(
&self,
id: i64,
) -> Result<BpiResponse<ArticleInfoData>, BpiError>
pub async fn article_info( &self, id: i64, ) -> Result<BpiResponse<ArticleInfoData>, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn article_view(
&self,
id: i64,
) -> Result<ArticleViewResponse, BpiError>
pub async fn article_view( &self, id: i64, ) -> Result<ArticleViewResponse, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn audio_collection_to_fav(
&self,
rid: u64,
add_media_ids: Option<Vec<&str>>,
del_media_ids: Option<Vec<&str>>,
) -> Result<BpiResponse<PromptData>, BpiError>
pub async fn audio_collection_to_fav( &self, rid: u64, add_media_ids: Option<Vec<&str>>, del_media_ids: Option<Vec<&str>>, ) -> Result<BpiResponse<PromptData>, BpiError>
收藏音频到收藏夹(同视频收藏夹)
§参数
名称 | 类型 | 说明 |
---|---|---|
sid | u64 | 音频 auid |
add_media_ids | Vec<&str> | 添加的合集ids |
del_media_ids | Vec<&str> | 从中删除的合集ids |
与视频收藏几乎一样
Sourcepub async fn audio_collection_to(
&self,
sid: u64,
cids: u64,
) -> Result<BpiResponse<bool>, BpiError>
pub async fn audio_collection_to( &self, sid: u64, cids: u64, ) -> Result<BpiResponse<bool>, BpiError>
Sourcepub async fn audio_collection_status(
&self,
sid: u64,
) -> Result<BpiResponse<bool>, BpiError>
pub async fn audio_collection_status( &self, sid: u64, ) -> Result<BpiResponse<bool>, BpiError>
Sourcepub async fn audio_coin_count(
&self,
sid: u64,
) -> Result<BpiResponse<i32>, BpiError>
pub async fn audio_coin_count( &self, sid: u64, ) -> Result<BpiResponse<i32>, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn audio_info(
&self,
sid: u64,
) -> Result<BpiResponse<AudioInfoData>, BpiError>
pub async fn audio_info( &self, sid: u64, ) -> Result<BpiResponse<AudioInfoData>, BpiError>
Sourcepub async fn audio_members(
&self,
sid: u64,
) -> Result<AudioMemberResponse, BpiError>
pub async fn audio_members( &self, sid: u64, ) -> Result<AudioMemberResponse, BpiError>
Sourcepub async fn audio_lyric(
&self,
sid: u64,
) -> Result<BpiResponse<String>, BpiError>
pub async fn audio_lyric( &self, sid: u64, ) -> Result<BpiResponse<String>, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn audio_collections_list(
&self,
pn: u32,
ps: u32,
) -> Result<BpiResponse<AudioCollectionsListData>, BpiError>
pub async fn audio_collections_list( &self, pn: u32, ps: u32, ) -> Result<BpiResponse<AudioCollectionsListData>, BpiError>
Sourcepub async fn audio_collection_info(
&self,
sid: u64,
) -> Result<BpiResponse<AudioCollection>, BpiError>
pub async fn audio_collection_info( &self, sid: u64, ) -> Result<BpiResponse<AudioCollection>, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn audio_stream_url_web(
&self,
sid: u64,
) -> Result<BpiResponse<AudioStreamUrlWebData>, BpiError>
pub async fn audio_stream_url_web( &self, sid: u64, ) -> Result<BpiResponse<AudioStreamUrlWebData>, BpiError>
Sourcepub async fn audio_stream_url(
&self,
songid: u64,
quality: AudioQuality,
) -> Result<BpiResponse<AudioStreamUrlData>, BpiError>
pub async fn audio_stream_url( &self, songid: u64, quality: AudioQuality, ) -> Result<BpiResponse<AudioStreamUrlData>, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn audio_rank_period(
&self,
list_type: u32,
) -> Result<BpiResponse<AudioRankPeriodData>, BpiError>
pub async fn audio_rank_period( &self, list_type: u32, ) -> Result<BpiResponse<AudioRankPeriodData>, BpiError>
Sourcepub async fn audio_rank_detail(
&self,
list_id: u64,
) -> Result<BpiResponse<AudioRankDetailData>, BpiError>
pub async fn audio_rank_detail( &self, list_id: u64, ) -> Result<BpiResponse<AudioRankDetailData>, BpiError>
Sourcepub async fn audio_rank_music_list(
&self,
list_id: u64,
) -> Result<BpiResponse<AudioRankMusicListData>, BpiError>
pub async fn audio_rank_music_list( &self, list_id: u64, ) -> Result<BpiResponse<AudioRankMusicListData>, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn audio_status_number(
&self,
sid: i64,
) -> Result<BpiResponse<AudioStatusNumberData>, BpiError>
pub async fn audio_status_number( &self, sid: i64, ) -> Result<BpiResponse<AudioStatusNumberData>, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn bangumi_follow(
&self,
season_id: u64,
) -> Result<BpiResponse<BangumiFollowResult>, BpiError>
pub async fn bangumi_follow( &self, season_id: u64, ) -> Result<BpiResponse<BangumiFollowResult>, BpiError>
Sourcepub async fn bangumi_unfollow(
&self,
season_id: u64,
) -> Result<BpiResponse<BangumiFollowResult>, BpiError>
pub async fn bangumi_unfollow( &self, season_id: u64, ) -> Result<BpiResponse<BangumiFollowResult>, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn bangumi_info(
&self,
media_id: u64,
) -> Result<BangumiInfoResponse, BpiError>
pub async fn bangumi_info( &self, media_id: u64, ) -> Result<BangumiInfoResponse, BpiError>
Sourcepub async fn bangumi_detail_by_season_id(
&self,
season_id: u64,
) -> Result<BangumiDetailResponse, BpiError>
pub async fn bangumi_detail_by_season_id( &self, season_id: u64, ) -> Result<BangumiDetailResponse, BpiError>
Sourcepub async fn bangumi_detail_by_epid(
&self,
ep_id: u64,
) -> Result<BangumiDetailResponse, BpiError>
pub async fn bangumi_detail_by_epid( &self, ep_id: u64, ) -> Result<BangumiDetailResponse, BpiError>
Sourcepub async fn bangumi_sections_by_season_id(
&self,
season_id: u64,
) -> Result<BpiResponse<BangumiSectionResult>, BpiError>
pub async fn bangumi_sections_by_season_id( &self, season_id: u64, ) -> Result<BpiResponse<BangumiSectionResult>, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn bangumi_timeline(
&self,
types: BangumiTimelineType,
before: i32,
after: i32,
) -> Result<BpiResponse<Vec<BangumiTimelineDay>>, BpiError>
pub async fn bangumi_timeline( &self, types: BangumiTimelineType, before: i32, after: i32, ) -> Result<BpiResponse<Vec<BangumiTimelineDay>>, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn bangumi_video_stream(
&self,
ep_id: Option<u64>,
cid: Option<u64>,
qn: Option<VideoQuality>,
fnval: Option<Fnval>,
) -> Result<BpiResponse<BangumiVideoStreamData>, BpiError>
pub async fn bangumi_video_stream( &self, ep_id: Option<u64>, cid: Option<u64>, qn: Option<VideoQuality>, fnval: Option<Fnval>, ) -> Result<BpiResponse<BangumiVideoStreamData>, BpiError>
Sourcepub async fn bangumi_video_stream_by_epid(
&self,
ep_id: u64,
qn: Option<VideoQuality>,
fnval: Option<Fnval>,
) -> Result<BpiResponse<BangumiVideoStreamData>, BpiError>
pub async fn bangumi_video_stream_by_epid( &self, ep_id: u64, qn: Option<VideoQuality>, fnval: Option<Fnval>, ) -> Result<BpiResponse<BangumiVideoStreamData>, BpiError>
Sourcepub async fn bangumi_video_stream_by_cid(
&self,
cid: u64,
qn: Option<VideoQuality>,
fnval: Option<Fnval>,
) -> Result<BpiResponse<BangumiVideoStreamData>, BpiError>
pub async fn bangumi_video_stream_by_cid( &self, cid: u64, qn: Option<VideoQuality>, fnval: Option<Fnval>, ) -> Result<BpiResponse<BangumiVideoStreamData>, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn cheese_info(
&self,
season_id: Option<u64>,
ep_id: Option<u64>,
) -> Result<BpiResponse<CourseInfo>, BpiError>
pub async fn cheese_info( &self, season_id: Option<u64>, ep_id: Option<u64>, ) -> Result<BpiResponse<CourseInfo>, BpiError>
Sourcepub async fn cheese_info_by_season_id(
&self,
season_id: u64,
) -> Result<BpiResponse<CourseInfo>, BpiError>
pub async fn cheese_info_by_season_id( &self, season_id: u64, ) -> Result<BpiResponse<CourseInfo>, BpiError>
Sourcepub async fn cheese_info_by_ep_id(
&self,
ep_id: u64,
) -> Result<BpiResponse<CourseInfo>, BpiError>
pub async fn cheese_info_by_ep_id( &self, ep_id: u64, ) -> Result<BpiResponse<CourseInfo>, BpiError>
Sourcepub async fn cheese_ep_list(
&self,
season_id: u64,
ps: Option<u32>,
pn: Option<u32>,
) -> Result<BpiResponse<CourseEpList>, BpiError>
pub async fn cheese_ep_list( &self, season_id: u64, ps: Option<u32>, pn: Option<u32>, ) -> Result<BpiResponse<CourseEpList>, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn cheese_video_stream(
&self,
avid: u64,
ep_id: u64,
cid: u64,
qn: Option<VideoQuality>,
fnval: Option<Fnval>,
) -> Result<BpiResponse<CourseVideoStreamData>, BpiError>
pub async fn cheese_video_stream( &self, avid: u64, ep_id: u64, cid: u64, qn: Option<VideoQuality>, fnval: Option<Fnval>, ) -> Result<BpiResponse<CourseVideoStreamData>, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn clientinfo_ip(
&self,
ip: Option<&str>,
) -> Result<BpiResponse<IpInfo>, BpiError>
pub async fn clientinfo_ip( &self, ip: Option<&str>, ) -> Result<BpiResponse<IpInfo>, BpiError>
Source§impl BpiClient
点赞评论
impl BpiClient
点赞评论
Sourcepub async fn comment_add(
&self,
type: CommentType,
oid: u64,
message: &str,
root: Option<u64>,
parent: Option<u64>,
) -> Result<BpiResponse<CommentData>, BpiError>
pub async fn comment_add( &self, type: CommentType, oid: u64, message: &str, root: Option<u64>, parent: Option<u64>, ) -> Result<BpiResponse<CommentData>, BpiError>
Sourcepub async fn comment_like(
&self,
type: CommentType,
oid: u64,
rpid: u64,
action: u8,
) -> Result<BpiResponse<Value>, BpiError>
pub async fn comment_like( &self, type: CommentType, oid: u64, rpid: u64, action: u8, ) -> Result<BpiResponse<Value>, BpiError>
Sourcepub async fn comment_dislike(
&self,
type: CommentType,
oid: u64,
rpid: u64,
action: u8,
) -> Result<BpiResponse<Value>, BpiError>
pub async fn comment_dislike( &self, type: CommentType, oid: u64, rpid: u64, action: u8, ) -> Result<BpiResponse<Value>, BpiError>
Sourcepub async fn comment_delete(
&self,
type: CommentType,
oid: u64,
rpid: u64,
) -> Result<BpiResponse<Value>, BpiError>
pub async fn comment_delete( &self, type: CommentType, oid: u64, rpid: u64, ) -> Result<BpiResponse<Value>, BpiError>
Sourcepub async fn comment_top(
&self,
type: CommentType,
oid: u64,
rpid: u64,
action: u8,
) -> Result<BpiResponse<Value>, BpiError>
pub async fn comment_top( &self, type: CommentType, oid: u64, rpid: u64, action: u8, ) -> Result<BpiResponse<Value>, BpiError>
Sourcepub async fn comment_report(
&self,
type: CommentType,
oid: u64,
rpid: u64,
reason: ReportReason,
content: Option<&str>,
) -> Result<BpiResponse<Value>, BpiError>
pub async fn comment_report( &self, type: CommentType, oid: u64, rpid: u64, reason: ReportReason, content: Option<&str>, ) -> Result<BpiResponse<Value>, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn comment_list(
&self,
type: i32,
oid: i64,
pn: Option<i32>,
ps: Option<i32>,
sort: Option<i32>,
nohot: Option<i32>,
) -> Result<CommentListResponse, BpiError>
pub async fn comment_list( &self, type: i32, oid: i64, pn: Option<i32>, ps: Option<i32>, sort: Option<i32>, nohot: Option<i32>, ) -> Result<CommentListResponse, BpiError>
Sourcepub async fn comment_replies(
&self,
type: i32,
oid: i64,
root: i64,
pn: Option<i32>,
ps: Option<i32>,
) -> Result<CommentListResponse, BpiError>
pub async fn comment_replies( &self, type: i32, oid: i64, root: i64, pn: Option<i32>, ps: Option<i32>, ) -> Result<CommentListResponse, BpiError>
Sourcepub async fn comment_hot(
&self,
type: i32,
oid: i64,
root: i64,
pn: Option<i32>,
ps: Option<i32>,
) -> Result<BpiResponse<HotCommentData>, BpiError>
pub async fn comment_hot( &self, type: i32, oid: i64, root: i64, pn: Option<i32>, ps: Option<i32>, ) -> Result<BpiResponse<HotCommentData>, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn dynamic_delete(
&self,
dyn_id: &str,
) -> Result<BpiResponse<Value>, BpiError>
pub async fn dynamic_delete( &self, dyn_id: &str, ) -> Result<BpiResponse<Value>, BpiError>
Sourcepub async fn article_delete(
&self,
aid: u64,
) -> Result<BpiResponse<Value>, BpiError>
pub async fn article_delete( &self, aid: u64, ) -> Result<BpiResponse<Value>, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn up_electromagnetic_info(
&self,
) -> Result<BpiResponse<ElectromagneticInfo>, BpiError>
pub async fn up_electromagnetic_info( &self, ) -> Result<BpiResponse<ElectromagneticInfo>, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn season_create(
&self,
title: &str,
desc: Option<&str>,
cover: &str,
season_price: Option<u32>,
) -> Result<BpiResponse<u64>, BpiError>
pub async fn season_create( &self, title: &str, desc: Option<&str>, cover: &str, season_price: Option<u32>, ) -> Result<BpiResponse<u64>, BpiError>
Sourcepub async fn season_delete(
&self,
season_id: u64,
) -> Result<BpiResponse<Value>, BpiError>
pub async fn season_delete( &self, season_id: u64, ) -> Result<BpiResponse<Value>, BpiError>
Sourcepub async fn season_episodes_add(
&self,
section_id: u64,
episodes: Vec<EpisodeAdd>,
) -> Result<BpiResponse<Value>, BpiError>
pub async fn season_episodes_add( &self, section_id: u64, episodes: Vec<EpisodeAdd>, ) -> Result<BpiResponse<Value>, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn season_by_aid(
&self,
aid: u64,
) -> Result<BpiResponse<SeasonInfoData>, BpiError>
pub async fn season_by_aid( &self, aid: u64, ) -> Result<BpiResponse<SeasonInfoData>, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn season_edit(
&self,
season: SeasonEdit,
sorts: Vec<SeasonSectionSort>,
) -> Result<BpiResponse<Value>, BpiError>
pub async fn season_edit( &self, season: SeasonEdit, sorts: Vec<SeasonSectionSort>, ) -> Result<BpiResponse<Value>, BpiError>
Sourcepub async fn season_section_edit(
&self,
section: SeasonSectionEdit,
sorts: Vec<SectionSort>,
) -> Result<BpiResponse<Value>, BpiError>
pub async fn season_section_edit( &self, section: SeasonSectionEdit, sorts: Vec<SectionSort>, ) -> Result<BpiResponse<Value>, BpiError>
Sourcepub async fn season_section_episode_edit(
&self,
section: EpisodeEdit,
sorts: Vec<EpisodeSort>,
) -> Result<BpiResponse<Value>, BpiError>
pub async fn season_section_episode_edit( &self, section: EpisodeEdit, sorts: Vec<EpisodeSort>, ) -> Result<BpiResponse<Value>, BpiError>
Sourcepub async fn season_enable_section(
&self,
season_id: u64,
enable: bool,
) -> Result<BpiResponse<Value>, BpiError>
pub async fn season_enable_section( &self, season_id: u64, enable: bool, ) -> Result<BpiResponse<Value>, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn season_list(
&self,
pn: u32,
ps: u32,
order: Option<&str>,
sort: Option<&str>,
) -> Result<BpiResponse<SeasonListData>, BpiError>
pub async fn season_list( &self, pn: u32, ps: u32, order: Option<&str>, sort: Option<&str>, ) -> Result<BpiResponse<SeasonListData>, BpiError>
Source§impl BpiClient
impl BpiClient
pub async fn season_info( &self, season_id: u64, ) -> Result<BpiResponse<SeasonInfoData>, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn season_section_episodes(
&self,
season_id: u64,
) -> Result<BpiResponse<SeasonSectionEpisodesData>, BpiError>
pub async fn season_section_episodes( &self, season_id: u64, ) -> Result<BpiResponse<SeasonSectionEpisodesData>, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn up_stat(&self) -> Result<BpiResponse<UpStatData>, BpiError>
pub async fn up_stat(&self) -> Result<BpiResponse<UpStatData>, BpiError>
Sourcepub async fn up_archive_compare(
&self,
t: Option<i64>,
size: Option<i64>,
) -> Result<BpiResponse<ArchiveCompareData>, BpiError>
pub async fn up_archive_compare( &self, t: Option<i64>, size: Option<i64>, ) -> Result<BpiResponse<ArchiveCompareData>, BpiError>
Sourcepub async fn up_article_stat(
&self,
) -> Result<BpiResponse<UpArticleStatData>, BpiError>
pub async fn up_article_stat( &self, ) -> Result<BpiResponse<UpArticleStatData>, BpiError>
Sourcepub async fn up_video_trend(
&self,
type_code: i64,
) -> Result<BpiResponse<Vec<VideoTrendItem>>, BpiError>
pub async fn up_video_trend( &self, type_code: i64, ) -> Result<BpiResponse<Vec<VideoTrendItem>>, BpiError>
Sourcepub async fn up_article_trend(
&self,
type_code: i64,
) -> Result<BpiResponse<Vec<ArticleTrendItem>>, BpiError>
pub async fn up_article_trend( &self, type_code: i64, ) -> Result<BpiResponse<Vec<ArticleTrendItem>>, BpiError>
Sourcepub async fn up_viewer_data(&self) -> Result<BpiResponse<ViewerData>, BpiError>
pub async fn up_viewer_data(&self) -> Result<BpiResponse<ViewerData>, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn upload_cover(
&self,
mime_type: &str,
cover: impl AsRef<str>,
) -> Result<BpiResponse<UploadCoverData>, BpiError>
pub async fn upload_cover( &self, mime_type: &str, cover: impl AsRef<str>, ) -> Result<BpiResponse<UploadCoverData>, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn up_archives_list(
&self,
pn: i64,
ps: Option<i64>,
) -> Result<BpiResponse<SpArchivesData>, BpiError>
pub async fn up_archives_list( &self, pn: i64, ps: Option<i64>, ) -> Result<BpiResponse<SpArchivesData>, BpiError>
Sourcepub async fn up_archive_videos(
&self,
aid: i64,
) -> Result<BpiResponse<ArchiveVideosData>, BpiError>
pub async fn up_archive_videos( &self, aid: i64, ) -> Result<BpiResponse<ArchiveVideosData>, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn dynamic_like(
&self,
dyn_id_str: &str,
up: u8,
) -> Result<BpiResponse<Value>, BpiError>
pub async fn dynamic_like( &self, dyn_id_str: &str, up: u8, ) -> Result<BpiResponse<Value>, BpiError>
Sourcepub async fn dynamic_remove_draft(
&self,
draft_id: &str,
) -> Result<BpiResponse<Value>, BpiError>
pub async fn dynamic_remove_draft( &self, draft_id: &str, ) -> Result<BpiResponse<Value>, BpiError>
Sourcepub async fn dynamic_set_top(
&self,
dyn_str: &str,
) -> Result<BpiResponse<Value>, BpiError>
pub async fn dynamic_set_top( &self, dyn_str: &str, ) -> Result<BpiResponse<Value>, BpiError>
Sourcepub async fn dynamic_remove_top(
&self,
dyn_str: &str,
) -> Result<BpiResponse<Value>, BpiError>
pub async fn dynamic_remove_top( &self, dyn_str: &str, ) -> Result<BpiResponse<Value>, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn dynamic_all(
&self,
host_mid: Option<&str>,
offset: Option<&str>,
update_baseline: Option<&str>,
) -> Result<BpiResponse<DynamicAllData>, BpiError>
pub async fn dynamic_all( &self, host_mid: Option<&str>, offset: Option<&str>, update_baseline: Option<&str>, ) -> Result<BpiResponse<DynamicAllData>, BpiError>
Sourcepub async fn dynamic_check_new(
&self,
update_baseline: &str,
type_str: Option<&str>,
) -> Result<BpiResponse<DynamicUpdateData>, BpiError>
pub async fn dynamic_check_new( &self, update_baseline: &str, type_str: Option<&str>, ) -> Result<BpiResponse<DynamicUpdateData>, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn dynamic_repost_detail(
&self,
dynamic_id: &str,
offset: Option<&str>,
) -> Result<BpiResponse<RepostDetailResponseData>, BpiError>
pub async fn dynamic_repost_detail( &self, dynamic_id: &str, offset: Option<&str>, ) -> Result<BpiResponse<RepostDetailResponseData>, BpiError>
Sourcepub async fn dynamic_spec_item_likes(
&self,
dynamic_id: u64,
pn: Option<u64>,
ps: Option<u64>,
) -> Result<BpiResponse<SpecItemLikesResponseData>, BpiError>
pub async fn dynamic_spec_item_likes( &self, dynamic_id: u64, pn: Option<u64>, ps: Option<u64>, ) -> Result<BpiResponse<SpecItemLikesResponseData>, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn dynamic_live_users(
&self,
size: Option<u32>,
) -> Result<BpiResponse<LiveUsersData>, BpiError>
pub async fn dynamic_live_users( &self, size: Option<u32>, ) -> Result<BpiResponse<LiveUsersData>, BpiError>
Sourcepub async fn dynamic_up_users(
&self,
teenagers_mode: Option<u8>,
) -> Result<BpiResponse<DynUpUsersData>, BpiError>
pub async fn dynamic_up_users( &self, teenagers_mode: Option<u8>, ) -> Result<BpiResponse<DynUpUsersData>, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn dynamic_detail(
&self,
id: &str,
features: Option<&str>,
) -> Result<BpiResponse<DynamicDetailData>, BpiError>
pub async fn dynamic_detail( &self, id: &str, features: Option<&str>, ) -> Result<BpiResponse<DynamicDetailData>, BpiError>
Sourcepub async fn dynamic_reactions(
&self,
id: &str,
offset: Option<&str>,
) -> Result<BpiResponse<DynamicReactionData>, BpiError>
pub async fn dynamic_reactions( &self, id: &str, offset: Option<&str>, ) -> Result<BpiResponse<DynamicReactionData>, BpiError>
Sourcepub async fn dynamic_lottery_notice(
&self,
business_id: &str,
) -> Result<BpiResponse<DynamicLotteryData>, BpiError>
pub async fn dynamic_lottery_notice( &self, business_id: &str, ) -> Result<BpiResponse<DynamicLotteryData>, BpiError>
Sourcepub async fn dynamic_forwards(
&self,
id: &str,
offset: Option<&str>,
) -> Result<BpiResponse<DynamicForwardData>, BpiError>
pub async fn dynamic_forwards( &self, id: &str, offset: Option<&str>, ) -> Result<BpiResponse<DynamicForwardData>, BpiError>
Sourcepub async fn dynamic_pics(
&self,
id: &str,
) -> Result<BpiResponse<Vec<DynamicPic>>, BpiError>
pub async fn dynamic_pics( &self, id: &str, ) -> Result<BpiResponse<Vec<DynamicPic>>, BpiError>
Sourcepub async fn dynamic_forward_item(
&self,
id: &str,
) -> Result<BpiResponse<DynamicForwardInfoData>, BpiError>
pub async fn dynamic_forward_item( &self, id: &str, ) -> Result<BpiResponse<DynamicForwardInfoData>, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn dynamic_card_detail(
&self,
dynamic_id: &str,
) -> Result<BpiResponse<DynamicCardData>, BpiError>
pub async fn dynamic_card_detail( &self, dynamic_id: &str, ) -> Result<BpiResponse<DynamicCardData>, BpiError>
Sourcepub async fn dynamic_recent_up_list(
&self,
) -> Result<BpiResponse<RecentUpData>, BpiError>
pub async fn dynamic_recent_up_list( &self, ) -> Result<BpiResponse<RecentUpData>, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn dynamic_upload_pic(
&self,
file_path: &Path,
category: Option<&str>,
) -> Result<BpiResponse<UploadPicData>, BpiError>
pub async fn dynamic_upload_pic( &self, file_path: &Path, category: Option<&str>, ) -> Result<BpiResponse<UploadPicData>, BpiError>
Sourcepub async fn dynamic_create_text(
&self,
content: &str,
) -> Result<BpiResponse<CreateDynamicData>, BpiError>
pub async fn dynamic_create_text( &self, content: &str, ) -> Result<BpiResponse<CreateDynamicData>, BpiError>
Sourcepub async fn dynamic_create_complex(
&self,
scene: u8,
contents: Vec<DynamicContentItem>,
pics: Option<Vec<DynamicPic>>,
topic: Option<DynamicTopic>,
) -> Result<BpiResponse<CreateComplexDynamicData>, BpiError>
pub async fn dynamic_create_complex( &self, scene: u8, contents: Vec<DynamicContentItem>, pics: Option<Vec<DynamicPic>>, topic: Option<DynamicTopic>, ) -> Result<BpiResponse<CreateComplexDynamicData>, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn danmaku_send(
&self,
oid: u64,
msg: &str,
avid: Option<u64>,
bvid: Option<&str>,
mode: Option<u8>,
typ: Option<u8>,
progress: Option<u32>,
color: Option<u32>,
fontsize: Option<u8>,
pool: Option<u8>,
) -> Result<BpiResponse<DanmakuPostData>, BpiError>
pub async fn danmaku_send( &self, oid: u64, msg: &str, avid: Option<u64>, bvid: Option<&str>, mode: Option<u8>, typ: Option<u8>, progress: Option<u32>, color: Option<u32>, fontsize: Option<u8>, pool: Option<u8>, ) -> Result<BpiResponse<DanmakuPostData>, BpiError>
发送视频弹幕
文档: 弹幕相关
§参数
名称 | 类型 | 说明 |
---|---|---|
oid | u64 | 视频 cid |
msg | &str | 弹幕内容 |
avid | Option<u64> | 稿件 aid(avid 与 bvid 二选一) |
bvid | Option<&str> | 稿件 bvid(avid 与 bvid 二选一) |
mode | Option<u8> | 弹幕模式:1 滚动,4 底端,5 顶端,7 高级,9 BAS(pool=2 ) |
typ | Option<u8> | 弹幕类型:1 视频弹幕,2 漫画弹幕 |
progress | Option<u32> | 弹幕出现时间(毫秒) |
color | Option<u32> | 颜色(rgb888),如 16777215 为白色 |
fontsize | Option<u8> | 字号,默认 25(12/16/18/25/36/45/64) |
pool | Option<u8> | 弹幕池:0 普通池,1 字幕池,2 特殊池(代码/BAS) |
Sourcepub async fn danmaku_send_default(
&self,
oid: u64,
msg: &str,
avid: Option<u64>,
bvid: Option<&str>,
) -> Result<BpiResponse<DanmakuPostData>, BpiError>
pub async fn danmaku_send_default( &self, oid: u64, msg: &str, avid: Option<u64>, bvid: Option<&str>, ) -> Result<BpiResponse<DanmakuPostData>, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn danmaku_recall(
&self,
cid: u64,
dmid: u64,
) -> Result<BpiResponse<Value>, BpiError>
pub async fn danmaku_recall( &self, cid: u64, dmid: u64, ) -> Result<BpiResponse<Value>, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn danmaku_buy_adv(
&self,
cid: u64,
) -> Result<BpiResponse<Value>, BpiError>
pub async fn danmaku_buy_adv( &self, cid: u64, ) -> Result<BpiResponse<Value>, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn danmaku_adv_state(
&self,
cid: u64,
) -> Result<BpiResponse<DanmakuAdvState>, BpiError>
pub async fn danmaku_adv_state( &self, cid: u64, ) -> Result<BpiResponse<DanmakuAdvState>, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn danmaku_xml_list_so(
&self,
oid: i64,
) -> Result<DanmakuXml, BpiError>
pub async fn danmaku_xml_list_so( &self, oid: i64, ) -> Result<DanmakuXml, BpiError>
Sourcepub async fn danmaku_xml_list(&self, cid: i64) -> Result<DanmakuXml, BpiError>
pub async fn danmaku_xml_list(&self, cid: i64) -> Result<DanmakuXml, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn danmaku_history_dates(
&self,
oid: i64,
month: &str,
) -> Result<HistoryDatesResponse, BpiError>
pub async fn danmaku_history_dates( &self, oid: i64, month: &str, ) -> Result<HistoryDatesResponse, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn danmaku_snapshot(
&self,
aid_or_bvid: &str,
) -> Result<SnapshotResponse, BpiError>
pub async fn danmaku_snapshot( &self, aid_or_bvid: &str, ) -> Result<SnapshotResponse, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn danmaku_thumbup_stats(
&self,
oid: i64,
ids: &[i64],
) -> Result<ThumbupStatsResponse, BpiError>
pub async fn danmaku_thumbup_stats( &self, oid: i64, ids: &[i64], ) -> Result<ThumbupStatsResponse, BpiError>
查询指定 dmid 的点赞状态与统计
Source§impl BpiClient
impl BpiClient
Sourcepub async fn electric_bcoin_quick_pay(
&self,
bp_num: i32,
is_bp_remains_prior: bool,
up_mid: i64,
otype: &str,
oid: i64,
) -> Result<BpiResponse<BcoinQuickPayData>, BpiError>
pub async fn electric_bcoin_quick_pay( &self, bp_num: i32, is_bp_remains_prior: bool, up_mid: i64, otype: &str, oid: i64, ) -> Result<BpiResponse<BcoinQuickPayData>, BpiError>
新版本B币充电
§参数
bp_num
: 贝壳数量,必须在 2-9999 之间is_bp_remains_prior
: 是否优先扣除 B 币余额true
: B 币充电时请选择 truefalse
: 否则从贝壳余额中扣除
up_mid
: 充电对象用户的 midotype
: 充电来源"up"
: 空间充电"archive"
: 视频充电
oid
: 充电来源代码- 空间充电:传充电对象用户 mid
- 视频充电:传稿件 avid
Source§impl BpiClient
impl BpiClient
Sourcepub async fn electric_month_up_list(
&self,
up_mid: i64,
) -> Result<BpiResponse<ChargeMonthUpData>, BpiError>
pub async fn electric_month_up_list( &self, up_mid: i64, ) -> Result<BpiResponse<ChargeMonthUpData>, BpiError>
获取空间充电公示列表
Sourcepub async fn electric_video_show(
&self,
mid: i64,
aid: Option<i64>,
bvid: Option<&str>,
) -> Result<BpiResponse<VideoElecShowData>, BpiError>
pub async fn electric_video_show( &self, mid: i64, aid: Option<i64>, bvid: Option<&str>, ) -> Result<BpiResponse<VideoElecShowData>, BpiError>
Sourcepub async fn electric_recharge_list(
&self,
page: u64,
page_size: u64,
begin_time: Option<NaiveDate>,
end_time: Option<NaiveDate>,
) -> Result<BpiResponse<RechargeData>, BpiError>
pub async fn electric_recharge_list( &self, page: u64, page_size: u64, begin_time: Option<NaiveDate>, end_time: Option<NaiveDate>, ) -> Result<BpiResponse<RechargeData>, BpiError>
Sourcepub async fn electric_rank_recent(
&self,
pn: Option<u64>,
ps: Option<u64>,
) -> Result<BpiResponse<ElecRankData>, BpiError>
pub async fn electric_rank_recent( &self, pn: Option<u64>, ps: Option<u64>, ) -> Result<BpiResponse<ElecRankData>, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn electric_message_send(
&self,
order_id: &str,
message: &str,
) -> Result<BpiResponse<Value>, BpiError>
pub async fn electric_message_send( &self, order_id: &str, message: &str, ) -> Result<BpiResponse<Value>, BpiError>
Sourcepub async fn electric_remark_list(
&self,
pn: Option<u64>,
ps: Option<u64>,
begin: Option<NaiveDate>,
end: Option<NaiveDate>,
) -> Result<BpiResponse<ElecRemarkList>, BpiError>
pub async fn electric_remark_list( &self, pn: Option<u64>, ps: Option<u64>, begin: Option<NaiveDate>, end: Option<NaiveDate>, ) -> Result<BpiResponse<ElecRemarkList>, BpiError>
Sourcepub async fn electric_remark_detail(
&self,
id: u64,
) -> Result<BpiResponse<ElecRemarkDetail>, BpiError>
pub async fn electric_remark_detail( &self, id: u64, ) -> Result<BpiResponse<ElecRemarkDetail>, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn electric_charge_record(
&self,
page: u64,
charge_type: u32,
) -> Result<BpiResponse<ChargeRecordData>, BpiError>
pub async fn electric_charge_record( &self, page: u64, charge_type: u32, ) -> Result<BpiResponse<ChargeRecordData>, BpiError>
Sourcepub async fn electric_upower_item_detail(
&self,
up_mid: u64,
) -> Result<BpiResponse<UpowerItemDetail>, BpiError>
pub async fn electric_upower_item_detail( &self, up_mid: u64, ) -> Result<BpiResponse<UpowerItemDetail>, BpiError>
Sourcepub async fn electric_charge_follow_info(
&self,
up_mid: u64,
) -> Result<BpiResponse<ChargeFollowInfo>, BpiError>
pub async fn electric_charge_follow_info( &self, up_mid: u64, ) -> Result<BpiResponse<ChargeFollowInfo>, BpiError>
Sourcepub async fn electric_upower_member_rank(
&self,
up_mid: u64,
pn: u64,
ps: u64,
privilege_type: Option<u64>,
) -> Result<BpiResponse<MemberRankData>, BpiError>
pub async fn electric_upower_member_rank( &self, up_mid: u64, pn: u64, ps: u64, privilege_type: Option<u64>, ) -> Result<BpiResponse<MemberRankData>, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn fav_folder_add(
&self,
title: &str,
intro: Option<&str>,
privacy: Option<u8>,
cover: Option<&str>,
) -> Result<BpiResponse<FavFolderInfo>, BpiError>
pub async fn fav_folder_add( &self, title: &str, intro: Option<&str>, privacy: Option<u8>, cover: Option<&str>, ) -> Result<BpiResponse<FavFolderInfo>, BpiError>
Sourcepub async fn fav_folder_edit(
&self,
media_id: u64,
title: &str,
intro: Option<&str>,
privacy: Option<u8>,
cover: Option<&str>,
) -> Result<BpiResponse<FavFolderInfo>, BpiError>
pub async fn fav_folder_edit( &self, media_id: u64, title: &str, intro: Option<&str>, privacy: Option<u8>, cover: Option<&str>, ) -> Result<BpiResponse<FavFolderInfo>, BpiError>
Sourcepub async fn fav_folder_del(
&self,
media_ids: &[u64],
) -> Result<BpiResponse<i32>, BpiError>
pub async fn fav_folder_del( &self, media_ids: &[u64], ) -> Result<BpiResponse<i32>, BpiError>
Sourcepub async fn fav_resource_copy(
&self,
src_media_id: u64,
tar_media_id: u64,
mid: u64,
resources: &str,
) -> Result<BpiResponse<i32>, BpiError>
pub async fn fav_resource_copy( &self, src_media_id: u64, tar_media_id: u64, mid: u64, resources: &str, ) -> Result<BpiResponse<i32>, BpiError>
Sourcepub async fn fav_resource_move(
&self,
src_media_id: u64,
tar_media_id: u64,
mid: u64,
resources: &str,
) -> Result<BpiResponse<i32>, BpiError>
pub async fn fav_resource_move( &self, src_media_id: u64, tar_media_id: u64, mid: u64, resources: &str, ) -> Result<BpiResponse<i32>, BpiError>
Sourcepub async fn fav_resource_batch_del(
&self,
media_id: u64,
resources: &str,
) -> Result<BpiResponse<i32>, BpiError>
pub async fn fav_resource_batch_del( &self, media_id: u64, resources: &str, ) -> Result<BpiResponse<i32>, BpiError>
Sourcepub async fn fav_resource_clean(
&self,
media_id: u64,
) -> Result<BpiResponse<i32>, BpiError>
pub async fn fav_resource_clean( &self, media_id: u64, ) -> Result<BpiResponse<i32>, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn fav_folder_info(
&self,
media_id: u64,
) -> Result<BpiResponse<FavFolderInfo>, BpiError>
pub async fn fav_folder_info( &self, media_id: u64, ) -> Result<BpiResponse<FavFolderInfo>, BpiError>
Sourcepub async fn fav_created_list(
&self,
up_mid: u64,
typ: Option<u8>,
rid: Option<u64>,
) -> Result<BpiResponse<CreatedFolderListData>, BpiError>
pub async fn fav_created_list( &self, up_mid: u64, typ: Option<u8>, rid: Option<u64>, ) -> Result<BpiResponse<CreatedFolderListData>, BpiError>
Sourcepub async fn fav_collected_list(
&self,
up_mid: u64,
pn: u32,
ps: u32,
) -> Result<BpiResponse<CollectedFolderListData>, BpiError>
pub async fn fav_collected_list( &self, up_mid: u64, pn: u32, ps: u32, ) -> Result<BpiResponse<CollectedFolderListData>, BpiError>
Sourcepub async fn fav_resource_infos(
&self,
resources: &str,
) -> Result<BpiResponse<Vec<ResourceInfoItem>>, BpiError>
pub async fn fav_resource_infos( &self, resources: &str, ) -> Result<BpiResponse<Vec<ResourceInfoItem>>, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn fav_list_detail(
&self,
media_id: u64,
tid: Option<u32>,
keyword: Option<&str>,
order: Option<&str>,
typ: Option<u8>,
ps: u32,
pn: Option<u32>,
) -> Result<BpiResponse<FavListDetailData>, BpiError>
pub async fn fav_list_detail( &self, media_id: u64, tid: Option<u32>, keyword: Option<&str>, order: Option<&str>, typ: Option<u8>, ps: u32, pn: Option<u32>, ) -> Result<BpiResponse<FavListDetailData>, BpiError>
Sourcepub async fn fav_resource_ids(
&self,
media_id: u64,
) -> Result<BpiResponse<Vec<FavResourceIdItem>>, BpiError>
pub async fn fav_resource_ids( &self, media_id: u64, ) -> Result<BpiResponse<Vec<FavResourceIdItem>>, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn history_list(
&self,
max: Option<u64>,
business: Option<&str>,
view_at: Option<u64>,
typ: Option<&str>,
ps: Option<u32>,
) -> Result<BpiResponse<HistoryListData>, BpiError>
pub async fn history_list( &self, max: Option<u64>, business: Option<&str>, view_at: Option<u64>, typ: Option<&str>, ps: Option<u32>, ) -> Result<BpiResponse<HistoryListData>, BpiError>
Sourcepub async fn history_delete(
&self,
kid: &str,
) -> Result<BpiResponse<Value>, BpiError>
pub async fn history_delete( &self, kid: &str, ) -> Result<BpiResponse<Value>, BpiError>
Sourcepub async fn history_clear(&self) -> Result<BpiResponse<Value>, BpiError>
pub async fn history_clear(&self) -> Result<BpiResponse<Value>, BpiError>
Sourcepub async fn history_shadow_set(
&self,
switch: bool,
) -> Result<BpiResponse<Value>, BpiError>
pub async fn history_shadow_set( &self, switch: bool, ) -> Result<BpiResponse<Value>, BpiError>
Sourcepub async fn history_shadow_get(&self) -> Result<BpiResponse<bool>, BpiError>
pub async fn history_shadow_get(&self) -> Result<BpiResponse<bool>, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn toview_add_video(
&self,
aid: Option<u64>,
bvid: Option<&str>,
) -> Result<BpiResponse<Value>, BpiError>
pub async fn toview_add_video( &self, aid: Option<u64>, bvid: Option<&str>, ) -> Result<BpiResponse<Value>, BpiError>
Sourcepub async fn toview_list(&self) -> Result<BpiResponse<ToViewListData>, BpiError>
pub async fn toview_list(&self) -> Result<BpiResponse<ToViewListData>, BpiError>
Sourcepub async fn toview_delete(
&self,
aid: Option<u64>,
viewed: Option<bool>,
) -> Result<BpiResponse<Value>, BpiError>
pub async fn toview_delete( &self, aid: Option<u64>, viewed: Option<bool>, ) -> Result<BpiResponse<Value>, BpiError>
Sourcepub async fn toview_clear(&self) -> Result<BpiResponse<Value>, BpiError>
pub async fn toview_clear(&self) -> Result<BpiResponse<Value>, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn live_send_danmu(
&self,
room_id: u64,
message: &str,
color: Option<u32>,
font_size: Option<u32>,
) -> Result<BpiResponse<SendDanmuData>, BpiError>
pub async fn live_send_danmu( &self, room_id: u64, message: &str, color: Option<u32>, font_size: Option<u32>, ) -> Result<BpiResponse<SendDanmuData>, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn live_emoticons(
&self,
room_id: i64,
platform: &str,
) -> Result<EmoticonResponse, BpiError>
pub async fn live_emoticons( &self, room_id: i64, platform: &str, ) -> Result<EmoticonResponse, BpiError>
获取直播间的表情包
Source§impl BpiClient
impl BpiClient
Sourcepub async fn live_follow_up_list(
&self,
page: Option<i32>,
page_size: Option<i32>,
ignore_record: Option<i32>,
hit_ab: Option<bool>,
) -> Result<BpiResponse<FollowUpLiveData>, BpiError>
pub async fn live_follow_up_list( &self, page: Option<i32>, page_size: Option<i32>, ignore_record: Option<i32>, hit_ab: Option<bool>, ) -> Result<BpiResponse<FollowUpLiveData>, BpiError>
Sourcepub async fn live_follow_up_web_list(
&self,
hit_ab: Option<bool>,
) -> Result<BpiResponse<LiveWebListData>, BpiError>
pub async fn live_follow_up_web_list( &self, hit_ab: Option<bool>, ) -> Result<BpiResponse<LiveWebListData>, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn live_room_gift_list(
&self,
room_id: i64,
area_parent_id: Option<i32>,
area_id: Option<i32>,
) -> Result<RoomGiftResponse, BpiError>
pub async fn live_room_gift_list( &self, room_id: i64, area_parent_id: Option<i32>, area_id: Option<i32>, ) -> Result<RoomGiftResponse, BpiError>
Sourcepub async fn live_blind_gift_info(
&self,
gift_id: i64,
) -> Result<BlindGiftResponse, BpiError>
pub async fn live_blind_gift_info( &self, gift_id: i64, ) -> Result<BlindGiftResponse, BpiError>
Source§impl BpiClient
impl BpiClient
Source§impl BpiClient
impl BpiClient
Sourcepub async fn live_room_info(
&self,
room_id: i64,
) -> Result<BpiResponse<RoomInfoData>, BpiError>
pub async fn live_room_info( &self, room_id: i64, ) -> Result<BpiResponse<RoomInfoData>, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn live_area_list(
&self,
) -> Result<BpiResponse<Vec<LiveParentArea>>, BpiError>
pub async fn live_area_list( &self, ) -> Result<BpiResponse<Vec<LiveParentArea>>, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn live_gift_types(
&self,
) -> Result<BpiResponse<Vec<GiftTypeItem>>, BpiError>
pub async fn live_gift_types( &self, ) -> Result<BpiResponse<Vec<GiftTypeItem>>, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn live_replay_list(
&self,
page: Option<i32>,
page_size: Option<i32>,
) -> Result<BpiResponse<ReplayListData>, BpiError>
pub async fn live_replay_list( &self, page: Option<i32>, page_size: Option<i32>, ) -> Result<BpiResponse<ReplayListData>, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn live_stream(
&self,
cid: i64,
platform: Option<&str>,
quality: Option<i32>,
qn: Option<i32>,
) -> Result<BpiResponse<LiveStreamData>, BpiError>
pub async fn live_stream( &self, cid: i64, platform: Option<&str>, quality: Option<i32>, qn: Option<i32>, ) -> Result<BpiResponse<LiveStreamData>, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn live_create_room(
&self,
) -> Result<BpiResponse<CreateRoomData>, BpiError>
pub async fn live_create_room( &self, ) -> Result<BpiResponse<CreateRoomData>, BpiError>
开通直播间
Sourcepub async fn live_update_room_info(
&self,
room_id: u64,
title: Option<&str>,
area_id: Option<u64>,
add_tag: Option<&str>,
del_tag: Option<&str>,
) -> Result<BpiResponse<UpdateRoomData>, BpiError>
pub async fn live_update_room_info( &self, room_id: u64, title: Option<&str>, area_id: Option<u64>, add_tag: Option<&str>, del_tag: Option<&str>, ) -> Result<BpiResponse<UpdateRoomData>, BpiError>
更新直播间信息
§参数
room_id
- 直播间 IDtitle
- 标题,可选area_id
- 分区 ID,可选add_tag
- 要添加的标签,可选del_tag
- 要删除的标签,可选
Sourcepub async fn live_stop(
&self,
room_id: u64,
platform: &str,
) -> Result<BpiResponse<StopLiveData>, BpiError>
pub async fn live_stop( &self, room_id: u64, platform: &str, ) -> Result<BpiResponse<StopLiveData>, BpiError>
Sourcepub async fn live_update_pre_live_info(
&self,
title: Option<&str>,
cover: Option<&str>,
) -> Result<BpiResponse<UpdatePreLiveInfoData>, BpiError>
pub async fn live_update_pre_live_info( &self, title: Option<&str>, cover: Option<&str>, ) -> Result<BpiResponse<UpdatePreLiveInfoData>, BpiError>
Sourcepub async fn live_update_room_news(
&self,
room_id: u64,
uid: u64,
content: &str,
) -> Result<BpiResponse<Value>, BpiError>
pub async fn live_update_room_news( &self, room_id: u64, uid: u64, content: &str, ) -> Result<BpiResponse<Value>, BpiError>
Sourcepub async fn live_version(
&self,
) -> Result<BpiResponse<PcLiveVersionData>, BpiError>
pub async fn live_version( &self, ) -> Result<BpiResponse<PcLiveVersionData>, BpiError>
获取 PC 直播姬版本号
Source§impl BpiClient
impl BpiClient
Sourcepub async fn live_recommend(
&self,
) -> Result<BpiResponse<RecommendData>, BpiError>
pub async fn live_recommend( &self, ) -> Result<BpiResponse<RecommendData>, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn live_lottery_info(
&self,
room_id: i64,
) -> Result<LotteryInfoResponse, BpiError>
pub async fn live_lottery_info( &self, room_id: i64, ) -> Result<LotteryInfoResponse, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn live_add_silent_user(
&self,
room_id: i64,
tuid: i64,
hour: i32,
) -> Result<BpiResponse<Value>, BpiError>
pub async fn live_add_silent_user( &self, room_id: i64, tuid: i64, hour: i32, ) -> Result<BpiResponse<Value>, BpiError>
禁言观众 tuid: 用户uid hour: -1永久 0本场直播
Sourcepub async fn live_list_silent_users(
&self,
room_id: i64,
ps: i32,
) -> Result<BpiResponse<SilentUserListData>, BpiError>
pub async fn live_list_silent_users( &self, room_id: i64, ps: i32, ) -> Result<BpiResponse<SilentUserListData>, BpiError>
查询直播间禁言列表
Sourcepub async fn live_del_block_user(
&self,
roomid: i64,
id: i64,
) -> Result<BpiResponse<Value>, BpiError>
pub async fn live_del_block_user( &self, roomid: i64, id: i64, ) -> Result<BpiResponse<Value>, BpiError>
解除禁言
Source§impl BpiClient
impl BpiClient
Sourcepub async fn live_my_medals(
&self,
page: i32,
page_size: i32,
) -> Result<MyMedalsResponse, BpiError>
pub async fn live_my_medals( &self, page: i32, page_size: i32, ) -> Result<MyMedalsResponse, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn logout_web(
&self,
gourl: Option<&str>,
) -> Result<BpiResponse<LogoutData>, BpiError>
pub async fn logout_web( &self, gourl: Option<&str>, ) -> Result<BpiResponse<LogoutData>, BpiError>
Source§impl BpiClient
impl BpiClient
pub async fn login_generate_captcha(&self) -> Result<GenerateCaptcha, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn login_send_qrcode(
&self,
) -> Result<BpiResponse<GenerateQrCodeData>, BpiError>
pub async fn login_send_qrcode( &self, ) -> Result<BpiResponse<GenerateQrCodeData>, BpiError>
发送二维码请求
Sourcepub async fn login_check_qrcode_status(
&self,
qrcode_key: &str,
) -> Result<BpiResponse<CheckQrCodeStatusData>, BpiError>
pub async fn login_check_qrcode_status( &self, qrcode_key: &str, ) -> Result<BpiResponse<CheckQrCodeStatusData>, BpiError>
检查二维码状态
Source§impl BpiClient
impl BpiClient
Sourcepub async fn login_send_sms_code(
&self,
cid: u32,
tel: u32,
source: &str,
token: &str,
challenge: &str,
validate: &str,
seccode: &str,
) -> Result<BpiResponse<SMSSendData>, BpiError>
pub async fn login_send_sms_code( &self, cid: u32, tel: u32, source: &str, token: &str, challenge: &str, validate: &str, seccode: &str, ) -> Result<BpiResponse<SMSSendData>, BpiError>
发送短信验证码(Web端)
§参数
cid
- 国际冠字码tel
- 手机号码source
- 登录来源 “main_web” 或 “main_mini”token
- 登录 API tokenchallenge
- 极验 challengevalidate
- 极验 resultseccode
- 极验 result + “|jordan”
Source§impl BpiClient
impl BpiClient
Sourcepub async fn login_info_coin(&self) -> Result<BpiResponse<CoinInfo>, BpiError>
pub async fn login_info_coin(&self) -> Result<BpiResponse<CoinInfo>, BpiError>
Source§impl BpiClient
impl BpiClient
获取导航栏用户信息
Sourcepub async fn is_logged_in(&self) -> bool
pub async fn is_logged_in(&self) -> bool
检查是否已登录
Sourcepub async fn login_info_user_info(&self) -> Result<User, BpiError>
pub async fn login_info_user_info(&self) -> Result<User, BpiError>
获取用户基本信息
Source§impl BpiClient
impl BpiClient
Sourcepub async fn login_info_user_stat(
&self,
) -> Result<BpiResponse<UserStat>, BpiError>
pub async fn login_info_user_stat( &self, ) -> Result<BpiResponse<UserStat>, BpiError>
获取登录用户状态数(关注/粉丝/动态)
Source§impl BpiClient
impl BpiClient
Sourcepub async fn login_notice(
&self,
mid: u64,
buvid: Option<&str>,
) -> Result<BpiResponse<LoginNoticeData>, BpiError>
pub async fn login_notice( &self, mid: u64, buvid: Option<&str>, ) -> Result<BpiResponse<LoginNoticeData>, BpiError>
Sourcepub async fn login_log(&self) -> Result<BpiResponse<LoginLogData>, BpiError>
pub async fn login_log(&self) -> Result<BpiResponse<LoginLogData>, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn member_center_account_info(
&self,
) -> Result<BpiResponse<AccountInfo>, BpiError>
pub async fn member_center_account_info( &self, ) -> Result<BpiResponse<AccountInfo>, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn member_center_today_coin_exp(
&self,
) -> Result<BpiResponse<u32>, BpiError>
pub async fn member_center_today_coin_exp( &self, ) -> Result<BpiResponse<u32>, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn member_center_daily_reward(
&self,
) -> Result<BpiResponse<DailyReward>, BpiError>
pub async fn member_center_daily_reward( &self, ) -> Result<BpiResponse<DailyReward>, BpiError>
查询每日奖励状态
Source§impl BpiClient
impl BpiClient
Sourcepub async fn member_center_update_user_sign(
&self,
user_sign: &str,
) -> Result<BpiResponse<Value>, BpiError>
pub async fn member_center_update_user_sign( &self, user_sign: &str, ) -> Result<BpiResponse<Value>, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn member_center_vip_info(
&self,
) -> Result<BpiResponse<VipInfo>, BpiError>
pub async fn member_center_vip_info( &self, ) -> Result<BpiResponse<VipInfo>, BpiError>
查询大会员状态
pub async fn is_vip(&self) -> bool
Source§impl BpiClient
impl BpiClient
Sourcepub async fn manga_clock_in(&self) -> Result<BpiResponse<Value>, BpiError>
pub async fn manga_clock_in(&self) -> Result<BpiResponse<Value>, BpiError>
Sourcepub async fn manga_clock_in_makeup(
&self,
date: &str,
) -> Result<BpiResponse<Value>, BpiError>
pub async fn manga_clock_in_makeup( &self, date: &str, ) -> Result<BpiResponse<Value>, BpiError>
Sourcepub async fn manga_clock_in_info(&self) -> Result<ClockInInfoResponse, BpiError>
pub async fn manga_clock_in_info(&self) -> Result<ClockInInfoResponse, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn manga_buy_episode(
&self,
request: BuyEpisodeRequest,
) -> Result<BpiResponse<Value>, BpiError>
pub async fn manga_buy_episode( &self, request: BuyEpisodeRequest, ) -> Result<BpiResponse<Value>, BpiError>
购买漫画章节
Sourcepub async fn manga_buy_episode_with_coupon(
&self,
ep_id: i32,
coupon_id: i32,
) -> Result<BpiResponse<Value>, BpiError>
pub async fn manga_buy_episode_with_coupon( &self, ep_id: i32, coupon_id: i32, ) -> Result<BpiResponse<Value>, BpiError>
使用漫读券购买漫画章节
Sourcepub async fn manga_buy_episode_with_free(
&self,
comic_id: i32,
ep_id: i32,
) -> Result<BpiResponse<Value>, BpiError>
pub async fn manga_buy_episode_with_free( &self, comic_id: i32, ep_id: i32, ) -> Result<BpiResponse<Value>, BpiError>
使用新人等免购买漫画章节
Sourcepub async fn manga_buy_episode_with_general_coupon(
&self,
ep_id: i32,
pay_amount: i32,
) -> Result<BpiResponse<Value>, BpiError>
pub async fn manga_buy_episode_with_general_coupon( &self, ep_id: i32, pay_amount: i32, ) -> Result<BpiResponse<Value>, BpiError>
使用通用券购买漫画章节
Source§impl BpiClient
impl BpiClient
Sourcepub async fn manga_user_point(&self) -> Result<UserPointResponse, BpiError>
pub async fn manga_user_point(&self) -> Result<UserPointResponse, BpiError>
Sourcepub async fn manga_point_products(
&self,
) -> Result<ProductListResponse, BpiError>
pub async fn manga_point_products( &self, ) -> Result<ProductListResponse, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn manga_season_info(&self) -> Result<SeasonInfoResponse, BpiError>
pub async fn manga_season_info(&self) -> Result<SeasonInfoResponse, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn manga_coupons(
&self,
page_num: i32,
page_size: i32,
) -> Result<BpiResponse<CouponsData>, BpiError>
pub async fn manga_coupons( &self, page_num: i32, page_size: i32, ) -> Result<BpiResponse<CouponsData>, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn message_unread_count(
&self,
) -> Result<BpiResponse<UnreadCountData>, BpiError>
pub async fn message_unread_count( &self, ) -> Result<BpiResponse<UnreadCountData>, BpiError>
Sourcepub async fn message_reply_feed(
&self,
start_id: Option<u64>,
start_time: Option<u64>,
) -> Result<BpiResponse<ReplyFeedData>, BpiError>
pub async fn message_reply_feed( &self, start_id: Option<u64>, start_time: Option<u64>, ) -> Result<BpiResponse<ReplyFeedData>, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn message_single_unread(
&self,
unread_type: Option<u32>,
show_unfollow_list: Option<u32>,
show_dustbin: Option<u32>,
) -> Result<BpiResponse<SingleUnreadData>, BpiError>
pub async fn message_single_unread( &self, unread_type: Option<u32>, show_unfollow_list: Option<u32>, show_dustbin: Option<u32>, ) -> Result<BpiResponse<SingleUnreadData>, BpiError>
Sourcepub async fn message_send(
&self,
receiver_id: u64,
receiver_type: u32,
message_type: MessageType,
) -> Result<BpiResponse<SendMsgData>, BpiError>
pub async fn message_send( &self, receiver_id: u64, receiver_type: u32, message_type: MessageType, ) -> Result<BpiResponse<SendMsgData>, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn misc_b23_short_link(
&self,
aid: u64,
) -> Result<BpiResponse<ShortLinkData>, BpiError>
pub async fn misc_b23_short_link( &self, aid: u64, ) -> Result<BpiResponse<ShortLinkData>, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn misc_buvid3(&self) -> Result<BpiResponse<Buvid3Data>, BpiError>
pub async fn misc_buvid3(&self) -> Result<BpiResponse<Buvid3Data>, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn misc_buvid(&self) -> Result<BpiResponse<BuvidData>, BpiError>
pub async fn misc_buvid(&self) -> Result<BpiResponse<BuvidData>, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn misc_sign_bili_ticket(
&self,
) -> Result<BpiResponse<TicketData>, BpiError>
pub async fn misc_sign_bili_ticket( &self, ) -> Result<BpiResponse<TicketData>, BpiError>
Sourcepub async fn misc_sign_bili_ticket_string(&self) -> Result<String, BpiError>
pub async fn misc_sign_bili_ticket_string(&self) -> Result<String, BpiError>
仅获取 bili_ticket 字符串
Source§impl BpiClient
impl BpiClient
Sourcepub async fn note_add(
&self,
oid: u64,
title: &str,
summary: &str,
content: &str,
note_id: Option<&str>,
tags: Option<&str>,
publish: Option<bool>,
auto_comment: Option<bool>,
) -> Result<BpiResponse<NoteAddResponseData>, BpiError>
pub async fn note_add( &self, oid: u64, title: &str, summary: &str, content: &str, note_id: Option<&str>, tags: Option<&str>, publish: Option<bool>, auto_comment: Option<bool>, ) -> Result<BpiResponse<NoteAddResponseData>, BpiError>
Sourcepub async fn note_add_simple(
&self,
oid: u64,
title: &str,
summary: &str,
content: &str,
note_id: Option<&str>,
) -> Result<BpiResponse<NoteAddResponseData>, BpiError>
pub async fn note_add_simple( &self, oid: u64, title: &str, summary: &str, content: &str, note_id: Option<&str>, ) -> Result<BpiResponse<NoteAddResponseData>, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn note_is_forbid(
&self,
aid: u64,
) -> Result<BpiResponse<NoteIsForbidData>, BpiError>
pub async fn note_is_forbid( &self, aid: u64, ) -> Result<BpiResponse<NoteIsForbidData>, BpiError>
Sourcepub async fn note_get_private_info(
&self,
oid: u64,
note_id: u64,
) -> Result<BpiResponse<PrivateNoteInfoData>, BpiError>
pub async fn note_get_private_info( &self, oid: u64, note_id: u64, ) -> Result<BpiResponse<PrivateNoteInfoData>, BpiError>
Sourcepub async fn note_get_public_info(
&self,
cvid: u64,
) -> Result<BpiResponse<PublicNoteInfoData>, BpiError>
pub async fn note_get_public_info( &self, cvid: u64, ) -> Result<BpiResponse<PublicNoteInfoData>, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn note_list_archive(
&self,
oid: u64,
) -> Result<BpiResponse<NoteListArchiveData>, BpiError>
pub async fn note_list_archive( &self, oid: u64, ) -> Result<BpiResponse<NoteListArchiveData>, BpiError>
Sourcepub async fn note_list_user_private(
&self,
pn: u32,
ps: u32,
) -> Result<BpiResponse<PrivateNoteListData>, BpiError>
pub async fn note_list_user_private( &self, pn: u32, ps: u32, ) -> Result<BpiResponse<PrivateNoteListData>, BpiError>
Sourcepub async fn note_list_public_archive(
&self,
oid: u64,
pn: u32,
ps: u32,
) -> Result<BpiResponse<PublicNoteListArchiveData>, BpiError>
pub async fn note_list_public_archive( &self, oid: u64, pn: u32, ps: u32, ) -> Result<BpiResponse<PublicNoteListArchiveData>, BpiError>
Sourcepub async fn note_list_public_user(
&self,
pn: u32,
ps: u32,
) -> Result<BpiResponse<PublicNoteListUserData>, BpiError>
pub async fn note_list_public_user( &self, pn: u32, ps: u32, ) -> Result<BpiResponse<PublicNoteListUserData>, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn search_default(
&self,
) -> Result<BpiResponse<DefaultSearchData>, BpiError>
pub async fn search_default( &self, ) -> Result<BpiResponse<DefaultSearchData>, BpiError>
Sourcepub async fn search_hotwords(
&self,
) -> Result<BpiResponse<HotWordDataResponse>, BpiError>
pub async fn search_hotwords( &self, ) -> Result<BpiResponse<HotWordDataResponse>, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn search_suggest(
&self,
term: &str,
) -> Result<BpiResponse<SearchSuggest>, BpiError>
pub async fn search_suggest( &self, term: &str, ) -> Result<BpiResponse<SearchSuggest>, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn search_article(
&self,
keyword: &str,
order: Option<SearchOrder>,
category_id: Option<CategoryId>,
page: Option<i32>,
) -> Result<BpiResponse<SearchData<Vec<Article>>>, BpiError>
pub async fn search_article( &self, keyword: &str, order: Option<SearchOrder>, category_id: Option<CategoryId>, page: Option<i32>, ) -> Result<BpiResponse<SearchData<Vec<Article>>>, BpiError>
Sourcepub async fn search_bangumi(
&self,
keyword: &str,
page: Option<i32>,
) -> Result<BpiResponse<SearchData<Vec<Bangumi>>>, BpiError>
pub async fn search_bangumi( &self, keyword: &str, page: Option<i32>, ) -> Result<BpiResponse<SearchData<Vec<Bangumi>>>, BpiError>
Sourcepub async fn search_bili_user(
&self,
keyword: &str,
order_sort: Option<OrderSort>,
user_type: Option<UserType>,
page: Option<i32>,
) -> Result<BpiResponse<SearchData<Vec<BiliUser>>>, BpiError>
pub async fn search_bili_user( &self, keyword: &str, order_sort: Option<OrderSort>, user_type: Option<UserType>, page: Option<i32>, ) -> Result<BpiResponse<SearchData<Vec<BiliUser>>>, BpiError>
Sourcepub async fn search_live(
&self,
keyword: &str,
page: Option<i32>,
) -> Result<BpiResponse<SearchData<LiveData>>, BpiError>
pub async fn search_live( &self, keyword: &str, page: Option<i32>, ) -> Result<BpiResponse<SearchData<LiveData>>, BpiError>
Sourcepub async fn search_live_room(
&self,
keyword: &str,
order: Option<SearchOrder>,
page: Option<i32>,
) -> Result<BpiResponse<SearchData<Vec<LiveRoom>>>, BpiError>
pub async fn search_live_room( &self, keyword: &str, order: Option<SearchOrder>, page: Option<i32>, ) -> Result<BpiResponse<SearchData<Vec<LiveRoom>>>, BpiError>
Sourcepub async fn search_live_user(
&self,
keyword: &str,
order_sort: Option<OrderSort>,
user_type: Option<UserType>,
page: Option<i32>,
) -> Result<BpiResponse<SearchData<Vec<LiveUser>>>, BpiError>
pub async fn search_live_user( &self, keyword: &str, order_sort: Option<OrderSort>, user_type: Option<UserType>, page: Option<i32>, ) -> Result<BpiResponse<SearchData<Vec<LiveUser>>>, BpiError>
Sourcepub async fn search_movie(
&self,
keyword: &str,
page: Option<i32>,
) -> Result<BpiResponse<SearchData<Vec<Movie>>>, BpiError>
pub async fn search_movie( &self, keyword: &str, page: Option<i32>, ) -> Result<BpiResponse<SearchData<Vec<Movie>>>, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn user_name_to_uid(
&self,
names: &[&str],
) -> Result<BpiResponse<NameToUidData>, BpiError>
pub async fn user_name_to_uid( &self, names: &[&str], ) -> Result<BpiResponse<NameToUidData>, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn user_space_info(
&self,
mid: u64,
) -> Result<BpiResponse<UserSpaceInfo>, BpiError>
pub async fn user_space_info( &self, mid: u64, ) -> Result<BpiResponse<UserSpaceInfo>, BpiError>
Sourcepub async fn user_card_info(
&self,
mid: u64,
photo: Option<bool>,
) -> Result<BpiResponse<UserCardInfo>, BpiError>
pub async fn user_card_info( &self, mid: u64, photo: Option<bool>, ) -> Result<BpiResponse<UserCardInfo>, BpiError>
Sourcepub async fn user_card_info_with_photo(
&self,
mid: u64,
) -> Result<BpiResponse<UserCardInfo>, BpiError>
pub async fn user_card_info_with_photo( &self, mid: u64, ) -> Result<BpiResponse<UserCardInfo>, BpiError>
Sourcepub async fn user_card_info_without_photo(
&self,
mid: u64,
) -> Result<BpiResponse<UserCardInfo>, BpiError>
pub async fn user_card_info_without_photo( &self, mid: u64, ) -> Result<BpiResponse<UserCardInfo>, BpiError>
Sourcepub async fn user_cards(
&self,
mids: &[u64],
) -> Result<BpiResponse<Vec<UserCard>>, BpiError>
pub async fn user_cards( &self, mids: &[u64], ) -> Result<BpiResponse<Vec<UserCard>>, BpiError>
批量获取用户卡片(精简信息)
Sourcepub async fn user_infos(
&self,
mids: &[u64],
) -> Result<BpiResponse<Vec<UserInfo>>, BpiError>
pub async fn user_infos( &self, mids: &[u64], ) -> Result<BpiResponse<Vec<UserInfo>>, BpiError>
批量获取用户详细信息(带大会员/认证信息)
Source§impl BpiClient
impl BpiClient
Sourcepub async fn user_medal_wall(
&self,
target_id: u64,
) -> Result<BpiResponse<MedalWallData>, BpiError>
pub async fn user_medal_wall( &self, target_id: u64, ) -> Result<BpiResponse<MedalWallData>, BpiError>
Source§impl BpiClient
impl BpiClient
Source§impl BpiClient
impl BpiClient
Sourcepub async fn user_group_create_tag(
&self,
group_name: &str,
) -> Result<BpiResponse<CreateTagResponseData>, BpiError>
pub async fn user_group_create_tag( &self, group_name: &str, ) -> Result<BpiResponse<CreateTagResponseData>, BpiError>
Sourcepub async fn user_group_update_tag(
&self,
tag_id: i64,
new_name: &str,
) -> Result<BpiResponse<Value>, BpiError>
pub async fn user_group_update_tag( &self, tag_id: i64, new_name: &str, ) -> Result<BpiResponse<Value>, BpiError>
Sourcepub async fn user_group_delete_tag(
&self,
tag_id: i64,
) -> Result<BpiResponse<Value>, BpiError>
pub async fn user_group_delete_tag( &self, tag_id: i64, ) -> Result<BpiResponse<Value>, BpiError>
Sourcepub async fn user_group_remove_users_(
&self,
fids: &[u64],
) -> Result<BpiResponse<Value>, BpiError>
pub async fn user_group_remove_users_( &self, fids: &[u64], ) -> Result<BpiResponse<Value>, BpiError>
Source§impl BpiClient
impl BpiClient
Source§impl BpiClient
impl BpiClient
Sourcepub async fn user_space_notice(
&self,
mid: u64,
) -> Result<BpiResponse<SpaceNoticeResponseData>, BpiError>
pub async fn user_space_notice( &self, mid: u64, ) -> Result<BpiResponse<SpaceNoticeResponseData>, BpiError>
Sourcepub async fn user_space_notice_set(
&self,
notice: Option<&str>,
) -> Result<BpiResponse<()>, BpiError>
pub async fn user_space_notice_set( &self, notice: Option<&str>, ) -> Result<BpiResponse<()>, BpiError>
Sourcepub async fn user_bangumi_follow_list(
&self,
mid: u64,
pn: Option<u32>,
ps: Option<u32>,
list_type: u8,
) -> Result<BpiResponse<BangumiFollowListResponseData>, BpiError>
pub async fn user_bangumi_follow_list( &self, mid: u64, pn: Option<u32>, ps: Option<u32>, list_type: u8, ) -> Result<BpiResponse<BangumiFollowListResponseData>, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn user_relation_stat(
&self,
vmid: u64,
) -> Result<BpiResponse<RelationStatResponseData>, BpiError>
pub async fn user_relation_stat( &self, vmid: u64, ) -> Result<BpiResponse<RelationStatResponseData>, BpiError>
Sourcepub async fn user_up_stat(
&self,
mid: u64,
) -> Result<BpiResponse<UpstatResponseData>, BpiError>
pub async fn user_up_stat( &self, mid: u64, ) -> Result<BpiResponse<UpstatResponseData>, BpiError>
Sourcepub async fn user_album_count(
&self,
uid: u64,
) -> Result<BpiResponse<AlbumCountResponseData>, BpiError>
pub async fn user_album_count( &self, uid: u64, ) -> Result<BpiResponse<AlbumCountResponseData>, BpiError>
Source§impl BpiClient
impl BpiClient
Source§impl BpiClient
impl BpiClient
Sourcepub async fn collection_create_and_add_archives(
&self,
mid: u64,
name: &str,
keywords: Option<&str>,
description: Option<&str>,
aids: Option<&str>,
) -> Result<BpiResponse<CreateSeriesResponseData>, BpiError>
pub async fn collection_create_and_add_archives( &self, mid: u64, name: &str, keywords: Option<&str>, description: Option<&str>, aids: Option<&str>, ) -> Result<BpiResponse<CreateSeriesResponseData>, BpiError>
Sourcepub async fn collection_delete_series(
&self,
mid: u64,
series_id: u64,
) -> Result<BpiResponse<Value>, BpiError>
pub async fn collection_delete_series( &self, mid: u64, series_id: u64, ) -> Result<BpiResponse<Value>, BpiError>
Sourcepub async fn collection_delete_archives_from_series(
&self,
mid: u64,
series_id: u64,
aids: &str,
) -> Result<BpiResponse<Value>, BpiError>
pub async fn collection_delete_archives_from_series( &self, mid: u64, series_id: u64, aids: &str, ) -> Result<BpiResponse<Value>, BpiError>
Sourcepub async fn collection_add_archives_to_series(
&self,
mid: u64,
series_id: u64,
aids: &str,
) -> Result<BpiResponse<Value>, BpiError>
pub async fn collection_add_archives_to_series( &self, mid: u64, series_id: u64, aids: &str, ) -> Result<BpiResponse<Value>, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn video_seasons_list(
&self,
mid: u64,
season_id: u64,
sort_reverse: Option<bool>,
page_num: Option<u64>,
page_size: Option<u64>,
) -> Result<BpiResponse<GetSeasonsArchivesData>, BpiError>
pub async fn video_seasons_list( &self, mid: u64, season_id: u64, sort_reverse: Option<bool>, page_num: Option<u64>, page_size: Option<u64>, ) -> Result<BpiResponse<GetSeasonsArchivesData>, BpiError>
获取视频合集信息
此接口用于获取特定UP主某个视频合集的详细信息,包括合集内的所有视频列表和元数据。
§参数
mid
- 用户 mid,必填。season_id
- 视频合集 ID,必填。sort_reverse
- 排序方式,可选。true
: 升序排序,false
: 默认排序。page_num
- 页码索引,可选,默认为 1。page_size
- 单页内容数量,可选,默认为 30。
Sourcepub async fn video_series_list(
&self,
mid: u64,
page_num: u64,
page_size: u64,
) -> Result<BpiResponse<GetSeasonsSeriesData>, BpiError>
pub async fn video_series_list( &self, mid: u64, page_num: u64, page_size: u64, ) -> Result<BpiResponse<GetSeasonsSeriesData>, BpiError>
Sourcepub async fn video_seasons_series_list(
&self,
mid: u64,
page_num: Option<u64>,
page_size: Option<u64>,
) -> Result<BpiResponse<GetSeasonsSeriesData>, BpiError>
pub async fn video_seasons_series_list( &self, mid: u64, page_num: Option<u64>, page_size: Option<u64>, ) -> Result<BpiResponse<GetSeasonsSeriesData>, BpiError>
获取系列和合集视频列表
此接口用于获取特定UP主创建的系列和合集视频列表,返回结果包含两种类型。
§参数
mid
- 用户 mid,必填。page_num
- 页码索引,可选,默认为 1。page_size
- 每页数量,可选,默认为 20。
Sourcepub async fn video_series_info(
&self,
series_id: u64,
) -> Result<BpiResponse<GetSeriesData>, BpiError>
pub async fn video_series_info( &self, series_id: u64, ) -> Result<BpiResponse<GetSeriesData>, BpiError>
Sourcepub async fn video_series_archives(
&self,
mid: u64,
series_id: u64,
only_normal: Option<bool>,
sort: Option<&str>,
page_num: Option<u64>,
page_size: Option<u64>,
) -> Result<BpiResponse<GetSeriesArchivesData>, BpiError>
pub async fn video_series_archives( &self, mid: u64, series_id: u64, only_normal: Option<bool>, sort: Option<&str>, page_num: Option<u64>, page_size: Option<u64>, ) -> Result<BpiResponse<GetSeriesArchivesData>, BpiError>
获取指定系列视频列表
此接口用于获取指定系列内的所有视频列表,支持分页和排序。
§参数
mid
- 用户 mid,必填。series_id
- 系列ID,必填。only_normal
- 作用尚不明确,可选,默认为 true。sort
- 排序方式,可选。desc
: 默认排序,asc
: 升序排序。page_num
- 页码索引,可选,默认为 1。page_size
- 每页数量,可选,默认为 20。
Source§impl BpiClient
impl BpiClient
Sourcepub async fn video_interactive_video_info(
&self,
aid: Option<u64>,
bvid: Option<&str>,
graph_version: u64,
edge_id: Option<u64>,
) -> Result<BpiResponse<InteractiveVideoInfoResponseData>, BpiError>
pub async fn video_interactive_video_info( &self, aid: Option<u64>, bvid: Option<&str>, graph_version: u64, edge_id: Option<u64>, ) -> Result<BpiResponse<InteractiveVideoInfoResponseData>, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn video_online_total(
&self,
aid: Option<u64>,
bvid: Option<&str>,
cid: u64,
) -> Result<BpiResponse<OnlineTotalResponseData>, BpiError>
pub async fn video_online_total( &self, aid: Option<u64>, bvid: Option<&str>, cid: u64, ) -> Result<BpiResponse<OnlineTotalResponseData>, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn video_player_info_v2(
&self,
aid: Option<u64>,
bvid: Option<&str>,
cid: u64,
season_id: Option<u64>,
ep_id: Option<u64>,
) -> Result<BpiResponse<PlayerInfoResponseData>, BpiError>
pub async fn video_player_info_v2( &self, aid: Option<u64>, bvid: Option<&str>, cid: u64, season_id: Option<u64>, ep_id: Option<u64>, ) -> Result<BpiResponse<PlayerInfoResponseData>, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn video_homepage_recommendations(
&self,
ps: Option<u8>,
fresh_idx: Option<u32>,
fetch_row: Option<u32>,
) -> Result<BpiResponse<RcmdFeedResponseData>, BpiError>
pub async fn video_homepage_recommendations( &self, ps: Option<u8>, fresh_idx: Option<u32>, fetch_row: Option<u32>, ) -> Result<BpiResponse<RcmdFeedResponseData>, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn video_ai_summary(
&self,
aid: Option<u64>,
bvid: Option<&str>,
cid: u64,
up_mid: u64,
) -> Result<BpiResponse<AiSummaryResponseData>, BpiError>
pub async fn video_ai_summary( &self, aid: Option<u64>, bvid: Option<&str>, cid: u64, up_mid: u64, ) -> Result<BpiResponse<AiSummaryResponseData>, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn video_playurl(
&self,
aid: Option<u64>,
bvid: Option<&str>,
cid: u64,
qn: Option<u64>,
fnval: Option<u64>,
fnver: Option<u64>,
fourk: Option<u8>,
platform: Option<&str>,
high_quality: Option<u8>,
try_look: Option<u8>,
) -> Result<BpiResponse<PlayUrlResponseData>, BpiError>
pub async fn video_playurl( &self, aid: Option<u64>, bvid: Option<&str>, cid: u64, qn: Option<u64>, fnval: Option<u64>, fnver: Option<u64>, fourk: Option<u8>, platform: Option<&str>, high_quality: Option<u8>, try_look: Option<u8>, ) -> Result<BpiResponse<PlayUrlResponseData>, BpiError>
获取视频流地址(web端)
§文档
§参数
名称 | 类型 | 说明 |
---|---|---|
aid | Option<u64> | 稿件 avid,可选 |
bvid | Option<&str> | 稿件 bvid,可选 |
cid | u64 | 视频 cid |
qn | Option<u64> | 清晰度选择,可选 |
fnval | Option<u64> | 流格式标识,可选,默认1(MP4) |
fnver | Option<u64> | 流版本标识,可选,默认0 |
fourk | Option<u8> | 是否允许4K,可选,默认0 |
platform | Option<&str> | 平台标识,可选,默认“pc“ |
high_quality | Option<u8> | 是否高画质,可选 |
try_look | Option<u8> | 是否可不登录拉取高画质,可选 |
aid
和 bvid
必须提供一个。
Source§impl BpiClient
impl BpiClient
Sourcepub async fn video_region_dynamic(
&self,
rid: u32,
pn: Option<u32>,
ps: Option<u32>,
) -> Result<BpiResponse<RegionArchivesData>, BpiError>
pub async fn video_region_dynamic( &self, rid: u32, pn: Option<u32>, ps: Option<u32>, ) -> Result<BpiResponse<RegionArchivesData>, BpiError>
Sourcepub async fn video_region_tag_dynamic(
&self,
rid: u32,
tag_id: u64,
pn: Option<u32>,
ps: Option<u32>,
) -> Result<BpiResponse<RegionArchivesData>, BpiError>
pub async fn video_region_tag_dynamic( &self, rid: u32, tag_id: u64, pn: Option<u32>, ps: Option<u32>, ) -> Result<BpiResponse<RegionArchivesData>, BpiError>
Sourcepub async fn video_region_newlist(
&self,
rid: u32,
pn: Option<u32>,
ps: Option<u32>,
typ: Option<u32>,
) -> Result<BpiResponse<RegionArchivesData>, BpiError>
pub async fn video_region_newlist( &self, rid: u32, pn: Option<u32>, ps: Option<u32>, typ: Option<u32>, ) -> Result<BpiResponse<RegionArchivesData>, BpiError>
Sourcepub async fn video_region_newlist_rank(
&self,
cate_id: u32,
order: Option<&str>,
page: Option<u32>,
pagesize: u32,
time_from: &str,
time_to: &str,
) -> Result<BpiResponse<NewListRankData>, BpiError>
pub async fn video_region_newlist_rank( &self, cate_id: u32, order: Option<&str>, page: Option<u32>, pagesize: u32, time_from: &str, time_to: &str, ) -> Result<BpiResponse<NewListRankData>, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn video_popular_list(
&self,
pn: Option<u32>,
ps: Option<u32>,
) -> Result<BpiResponse<PopularListData>, BpiError>
pub async fn video_popular_list( &self, pn: Option<u32>, ps: Option<u32>, ) -> Result<BpiResponse<PopularListData>, BpiError>
Sourcepub async fn video_popular_series_list(
&self,
) -> Result<BpiResponse<PopularSeriesListData>, BpiError>
pub async fn video_popular_series_list( &self, ) -> Result<BpiResponse<PopularSeriesListData>, BpiError>
Sourcepub async fn video_popular_series_one(
&self,
number: u32,
) -> Result<BpiResponse<PopularSeriesOneData>, BpiError>
pub async fn video_popular_series_one( &self, number: u32, ) -> Result<BpiResponse<PopularSeriesOneData>, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn video_popular_precious(
&self,
) -> Result<BpiResponse<PreciousVideoData>, BpiError>
pub async fn video_popular_precious( &self, ) -> Result<BpiResponse<PreciousVideoData>, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn video_ranking_list(
&self,
rid: Option<u32>,
type_name: Option<&str>,
) -> Result<BpiResponse<RankingListData>, BpiError>
pub async fn video_ranking_list( &self, rid: Option<u32>, type_name: Option<&str>, ) -> Result<BpiResponse<RankingListData>, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn vip_receive_privilege(
&self,
type_: u8,
) -> Result<BpiResponse<Value>, BpiError>
pub async fn vip_receive_privilege( &self, type_: u8, ) -> Result<BpiResponse<Value>, BpiError>
Sourcepub async fn vip_add_experience(
&self,
) -> Result<BpiResponse<VipExperienceData>, BpiError>
pub async fn vip_add_experience( &self, ) -> Result<BpiResponse<VipExperienceData>, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn vip_center_info(
&self,
) -> Result<BpiResponse<VipCenterData>, BpiError>
pub async fn vip_center_info( &self, ) -> Result<BpiResponse<VipCenterData>, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn wallet_info(&self) -> Result<BpiResponse<UserWallet>, BpiError>
pub async fn wallet_info(&self) -> Result<BpiResponse<UserWallet>, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn web_widget_header_page(
&self,
) -> Result<BpiResponse<HeaderData>, BpiError>
pub async fn web_widget_header_page( &self, ) -> Result<BpiResponse<HeaderData>, BpiError>
Source§impl BpiClient
impl BpiClient
Sourcepub async fn web_widget_online(
&self,
) -> Result<BpiResponse<OnlineData>, BpiError>
pub async fn web_widget_online( &self, ) -> Result<BpiResponse<OnlineData>, BpiError>
获取分区当日投稿稿件数
Source§impl BpiClient
impl BpiClient
Sourcepub fn set_account(&self, account: Account)
pub fn set_account(&self, account: Account)
设置账号信息
Sourcepub fn clear_account(&self)
pub fn clear_account(&self)
清除账号信息
检查是否有登录 cookies
Sourcepub fn get_account(&self) -> Option<Account>
pub fn get_account(&self) -> Option<Account>
获取当前账号信息
Sourcepub fn get(&self, url: &str) -> RequestBuilder
pub fn get(&self, url: &str) -> RequestBuilder
reqwest的get请求包装, 自带user_agent
Sourcepub fn post(&self, url: &str) -> RequestBuilder
pub fn post(&self, url: &str) -> RequestBuilder
reqwest的post请求包装, 自带user_agent
Auto Trait Implementations§
impl !Freeze for BpiClient
impl !RefUnwindSafe for BpiClient
impl Send for BpiClient
impl Sync for BpiClient
impl Unpin for BpiClient
impl !UnwindSafe for BpiClient
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more