概述
Channels 模块提供账号功能,包括搜索账号、关注/取消关注账号。search()
根据条件搜索账号。string
搜索账号名关键词或者账号链接(现在支持公众号文章链接)
number
当前页码,默认值为
1number
每页条目数,默认值为
10Promise<SearchResponse>
包含
page_num, page_size, total_page, total_count, channels 的对象POST /v1/channels/search
followings()
获取当前用户关注的账号列表。number
当前页码,默认值为
1number
每页条目数,默认值为
10Promise<FollowingsResponse>
包含
page_num, page_size, total_page, total_count, channels 的对象GET /v1/channels/followings
follow()
关注一个账号。string
账号 ID
Promise<StatusResponse>
操作结果
POST /v1/channels/follow
unfollow()
取消关注一个账号。string
账号 ID
Promise<StatusResponse>
操作结果
POST /v1/channels/unfollow
getDocs()
获取关注账号的文档列表。string
账号 ID 列表,用逗号分隔
number
当前页码,默认值为
1number
每页条目数,默认值为
10Promise<DocsResponse>
包含
page_num, page_size, total_page, total_count, docs 的对象GET /v1/channels/docs
createFollowGroup()
创建一个新的关注组。string
组名称
Array<{ follow_type: number; follow_value: string }>
关注项列表,每个元素包含
follow_type 和 follow_valuePromise<{ group_id: string; name: string; count: number }>
POST /v1/channels/follow-groups
getFollowGroups()
获取当前用户的所有关注组。Promise<Array<{ group_id: string; name: string; count: number }>>
GET /v1/channels/follow-groups
getFollowGroup()
根据 ID 获取一个关注组的详细信息。string
关注组 ID
Promise<{ group_id: string; name: string; count: number; follow_values: Array<{ follow_type: number; follow_value: string }> }>
GET /v1/channels/follow-groups/{groupId}
updateFollowGroup()
更新一个关注组的名称。string
关注组 ID
string
新的组名称
Promise<{ group_id: string; name: string; count: number }>
POST /v1/channels/follow-groups/{groupId}