Skip to main content

Moment 结构

属性名类型说明版本
momentIdString朋友圈 ID,全局唯一1.8.30
contentString朋友圈的文字内容1.8.30
mediaListList<MomentMedia>朋友圈的媒体文件链接列表(图片/视频等),详细请参考下方 MomentMedia 结构1.8.30
userInfoUserInfo发布朋友圈的用户1.8.30
commentListList<MomentComment>前 20 条评论列表,详细请参考下方 MomentComment 结构1.8.30
reactionListList<MomentReaction>朋友圈的点赞或其他自定义交互列表,详细请参考下方 MomentReaction 结构1.8.30
createTimelong朋友圈创建时间, 单位: 毫秒1.8.30

MomentMedia 结构

属性名类型说明版本
typeMomentMediaType朋友圈媒体类型1.8.30
urlString图片朋友圈的原图链接或者视频链接1.8.30
snapshotUrlString图片朋友圈的缩略图,视频朋友圈首帧缩略图1.8.30
heightint图片或者视频的高度1.8.30
widthint图片或者视频的宽度1.8.30
durationint视频的时长,仅视频朋友圈时有效1.8.30

MomentComment 结构

属性名类型说明版本
commentIdString评论唯一标识 Id1.8.30
momentIdString朋友圈 Id1.8.30
parentCommentIdString父评论 Id,回复评论时为回复的评论 Id,无父评论时为空字符串1.8.30
contentString评论文本内容1.8.30
userInfoUserInfo评论用户信息1.8.30
parentUserInfoUserInfo父评论用户信息(无父评论时为空对象)1.8.30
createTimelong评论发布时间, 单位: 毫秒1.8.30

MomentReaction 结构

属性名类型说明版本
keyString点赞或自定义互动值,例如 likedislikecollect1.8.30
userListList<UserInfo>点赞操作的用户列表1.8.30