fanProfile
-- import "."
Usage
type DouYinConnectionFanProfileClient
go
type DouYinConnectionFanProfileClient struct {
*kernel.BaseClient
}
DouYinConnectionFanProfileClient 抖音粉丝关系数据接口。 提供与抖音粉丝画像数据相关的接口封装
func NewClient
go
func NewClient(c *kernel.BaseClient) *DouYinConnectionFanProfileClient
NewClient 初始化并返回一个新的 DouYinConnectionFanProfileClient 实例 参数:
c - 基础客户端实例
返回值:
*DouYinConnectionFanProfileClient: 新的抖音粉丝关系数据客户端实例
func (*DouYinConnectionFanProfileClient) FansComment
go
func (c *DouYinConnectionFanProfileClient) FansComment(ctx context.Context) (*schema.DouYinConnectionFanProfileFansCommentRes, error)
FansComment 获取用户粉丝热评
参数:
ctx - 请求上下文
返回值:
*schema.DouYinConnectionFanProfileFansCommentRes 包含以下字段:
• Extra: 通用返回信息(log_id、now、error_code 等)
• Data:
- List: 粉丝热评列表,包含评论内容和热度值
- ErrorCode: 错误码,0 表示成功,其他为失败
- Description: 错误描述或状态说明
error 调用过程中遇到的错误(如有)
func (*DouYinConnectionFanProfileClient) FansFavourite
go
func (c *DouYinConnectionFanProfileClient) FansFavourite(ctx context.Context) (*schema.DouYinConnectionFanProfileFansFavouriteRes, error)
FansFavourite 获取用户粉丝喜好
参数:
ctx - 请求上下文
返回值:
*schema.DouYinConnectionFanProfileFansFavouriteRes 包含以下字段:
• Extra: 通用返回信息(log_id、now、error_code 等)
• Data:
- List: 粉丝喜好数据列表,包含关键词、排名和热度值
- ErrorCode: 错误码,0 表示成功,其他为失败
- Description: 错误描述或状态说明
error 调用过程中遇到的错误(如有)
func (*DouYinConnectionFanProfileClient) FansSource
go
func (c *DouYinConnectionFanProfileClient) FansSource(ctx context.Context) (*schema.DouYinConnectionFanProfileFansSourceRes, error)
GetUserFansSource 获取用户粉丝来源
参数:
ctx - 请求上下文
返回值:
*schema.DouYinConnectionFanProfileFansSourceRes 包含以下字段:
• Extra: 通用返回信息(log_id、now、error_code 等)
• Data:
- List: 粉丝来源列表,包含来源类型及其占比
- ErrorCode: 错误码,0 表示成功,其他为失败
- Description: 错误描述或状态说明
error 调用过程中遇到的错误(如有)
func (*DouYinConnectionFanProfileClient) GetUserFansData
go
func (c *DouYinConnectionFanProfileClient) GetUserFansData(ctx context.Context) (*schema.DouYinConnectionFanProfileGetUserFansDataRes, error)
GetUserFansData 获取用户粉丝数据
参数:
ctx - 请求上下文
返回值:
*schema.DouYinConnectionFanProfileGetUserFansDataRes 包含以下字段:
• Extra: 通用返回信息(log_id、now、error_code 等)
• Data:
- FansData: 粉丝画像数据,包含活跃天数分布、年龄分布、设备分布等信息
- ErrorCode: 错误码,0 表示成功,其他为失败
- Description: 错误描述或状态说明
error 调用过程中遇到的错误(如有)