评论点赞
小提示:
- 该接口用于评论或者点赞
- 注意:评论谁或点赞谁就把对方的wxid带上
- 功能可在新设备首次登录24小时后正常使用。新设备功能不可用期间,你可在常用设备上进行发表
请求URL:
- http://域名地址/api/sns/comment
请求方式:
请求头:
- Content-Type:application/json
参数:
参数名 | 必填 | 数据类型 | 说明 |
---|
appid | 是 | string | 设备id |
content | 是 | string | 评论内容 |
id | 是 | string | 朋友圈ID |
reply_commnet_id | 是 | string | 回复的评论ID |
to_wxid | 是 | string | 朋友圈内容所属的wxid |
type | 是 | string | 操作类型 1:点赞 2:评论 |
返回数据:
参数名 | 数据类型 | 说明 |
---|
ret | number | 0:成功 |
msg | string | 反馈信息 |
data | object | |
data.snsObject | object | 朋友圈信息 |
data.snsObject.Id | number | 朋友圈id |
data.snsObject.Username | string | 朋友圈用户id |
data.snsObject.Nickname | string | 朋友圈用户昵称 |
data.snsObject.ObjectDesc | object | 朋友圈内容信息 buffer字段 可用于转发 |
data.snsObject.LikeUserListCount | number | 朋友圈点赞人数 |
data.snsObject.LikeUserList | array | 朋友圈点赞列表 |
请求参数示例:
{
"appid": "wxid_p3r6ddddvqcl22",
"content": "",
"id": "14176095465480589934",
"reply_commnet_id": 0,
"to_wxid": "wxid_4bxxxxxxxxxxx22",
"type": 1
}
成功返回示例:
{
"ret": 0,
"msg": "success",
"data": {
"BaseResponse": {
"ret": 0,
"errMsg": {}
},
"snsObject": {
"Id": 14160275825405145693,
"Username": "wxid_p3r6ddddvqcl22",
"Nickname": "私人订制半永久定妆~红梅",
"CreateTime": 1688036421,
"ObjectDesc": {
"iLen": 1882,
"buffer": "\u003cTimelineObject\u003e\u003cid\u003e14160275825405145693\u003c/id\u003e\u003cusername\u003ewxid_p3r6kmxrvqcl22\u003c/username\u003e\u003ccreateTime\u003e1688036421\u003c/createTime\u003e\u003ccontentDesc\u003e追求好身材一点不庸俗\u0026#x0A;别人拿不走抢不去\u0026#x0A;光站着不说话 你就赢了\u003c/contentDesc\u003e\u003ccontentDescShowType\u003e0\u003c/contentDescShowType\u003e\u003ccontentDescScene\u003e3\u003c/contentDescScene\u003e\u003cprivate\u003e0\u003c/private\u003e\u003csightFolded\u003e0\u003c/sightFolded\u003e\u003cshowFlag\u003e0\u003c/showFlag\u003e\u003cappInfo\u003e\u003cid\u003e\u003c/id\u003e\u003cversion\u003e\u003c/version\u003e\u003cappName\u003e\u003c/appName\u003e\u003cinstallUrl\u003e\u003c/installUrl\u003e\u003cfromUrl\u003e\u003c/fromUrl\u003e\u003cisForceUpdate\u003e0\u003c/isForceUpdate\u003e\u003cisHidden\u003e0\u003c/isHidden\u003e\u003c/appInfo\u003e\u003csourceUserName\u003e\u003c/sourceUserName\u003e\u003csourceNickName\u003e\u003c/sourceNickName\u003e\u003cstatisticsData\u003e\u003c/statisticsData\u003e\u003cstatExtStr\u003e\u003c/statExtStr\u003e\u003cContentObject\u003e\u003ccontentStyle\u003e1\u003c/contentStyle\u003e\u003ctitle\u003e\u003c/title\u003e\u003cdescription\u003e\u003c/description\u003e\u003cmediaList\u003e\u003cmedia\u003e\u003cid\u003e14160275825856754274\u003c/id\u003e\u003ctype\u003e2\u003c/type\u003e\u003ctitle\u003e\u003c/title\u003e\u003cdescription\u003e追求好身材一点不庸俗\u0026#x0A;别人拿不走抢不去\u0026#x0A;光站着不说话 你就赢了\u003c/description\u003e\u003cprivate\u003e0\u003c/private\u003e\u003cuserData\u003e\u003c/userData\u003e\u003csubType\u003e0\u003c/subType\u003e\u003cvideoSize width=\"1078\" height=\"1511\"\u003e\u003c/videoSize\u003e\u003curl type=\"1\" md5=\"ccc3d43ab535dcb048b123ceca0f389e\" videomd5=\"\"\u003ehttp://shmmsns.qpic.cn/mmsns/7esHDdSePUEAbf5PIgcSw5aKLwftaVMKB7LNeInTf3ZEOOnwzSFOhGMrsibGJjkKpBLDWO4aukkY/0\u003c/url\u003e\u003cthumb type=\"1\"\u003ehttp://shmmsns.qpic.cn/mmsns/7esHDdSePUEAbf5PIgcSw5aKLwftaVMKB7LNeInTf3ZEOOnwzSFOhGMrsibGJjkKpBLDWO4aukkY/150\u003c/thumb\u003e\u003csize width=\"1078.000000\" height=\"1511.000000\" totalSize=\"22768\"\u003e\u003c/size\u003e\u003c/media\u003e\u003c/mediaList\u003e\u003ccontentUrl\u003e\u003c/contentUrl\u003e\u003c/ContentObject\u003e\u003cactionInfo\u003e\u003cappMsg\u003e\u003cmessageAction\u003e\u003c/messageAction\u003e\u003c/appMsg\u003e\u003c/actionInfo\u003e\u003clocation poiClassifyId=\"\" poiName=\"\" poiAddress=\"\" poiClassifyType=\"0\" city=\"\"\u003e\u003c/location\u003e\u003cpublicUserName\u003e\u003c/publicUserName\u003e\u003cstreamvideo\u003e\u003cstreamvideourl\u003e\u003c/streamvideourl\u003e\u003cstreamvideothumburl\u003e\u003c/streamvideothumburl\u003e\u003cstreamvideoweburl\u003e\u003c/streamvideoweburl\u003e\u003c/streamvideo\u003e\u003c/TimelineObject\u003e"
},
"LikeFlag": 1,
"LikeCount": 1,
"LikeUserListCount": 1,
"LikeUserList": [{
"Username": "wxid_8pddddddddt22",
"Nickname": "白开水加糖",
"Source": 0,
"Type": 1,
"CreateTime": 1688090072,
"CommentId": 0,
"ReplyCommentId": 0,
"IsNotRichText": 0,
"ReplyCommentId2": 0,
"CommentId2": 0,
"DeleteFlag": 0,
"CommentFlag": 0
}],
"CommentCount": 0,
"CommentUserListCount": 0, //评论人数
"CommentUserList":[] //评论列表
"WithUserCount": 0,
"WithUserListCount": 0,
"ExtFlag": 1,
"NoChange": 0,
"GroupCount": 0,
"IsNotRichText": 1,
"ReferId": 0,
"BlackListCount": 0,
"DeleteFlag": 0,
"GroupUserCount": 0,
"ObjectOperations": [{
"iLen": 2,
"buffer": "CAA="
}],
"SnsRedEnvelops": {
"RewardCount": 0,
"ReportId": 0,
"ReportKey": 0,
"ResourceId": 0
},
"PreDownloadInfo": {
"PreDownloadPercent": 0,
"PreDownloadNetType": 0
},
"WeAppInfo": {
"AppId": 0,
"ShowType": 0,
"RScore": 0
}
}
}
}
错误返回示例:
{
"ret": 0,
"msg": "success",
"data": {
"BaseResponse": {
"ret": -2,
"errMsg": {}
},
"snsObject": {
"Id": 0,
"CreateTime": 0,
"ObjectDesc": {
"iLen": 0
},
"LikeFlag": 0,
"LikeCount": 0,
"LikeUserListCount": 0,
"CommentCount": 0,
"CommentUserListCount": 0,
"WithUserCount": 0,
"WithUserListCount": 0,
"ExtFlag": 0,
"NoChange": 0,
"GroupCount": 0,
"IsNotRichText": 0,
"ReferId": 0,
"BlackListCount": 0,
"DeleteFlag": 0,
"GroupUserCount": 0,
"ObjectOperations": [
{
"iLen": 0
}
],
"SnsRedEnvelops": {
"RewardCount": 0,
"ReportId": 0,
"ReportKey": 0,
"ResourceId": 0
},
"PreDownloadInfo": {
"PreDownloadPercent": 0,
"PreDownloadNetType": 0
},
"WeAppInfo": {
"AppId": 0,
"ShowType": 0,
"RScore": 0
}
}
}
}
朋友圈功能操作
小提示:
- 该接口用于操作评特殊功能
- 注意:详情请阅读文档
- 功能可在新设备首次登录24小时后正常使用。新设备功能不可用期间,你可在常用设备上进行发表
请求URL:
- http://域名地址/api/sns/funcop
请求方式:
请求头:
- Content-Type:application/json
参数:
参数名 | 必填 | 数据类型 | 说明 |
---|
appid | 是 | string | 设备id |
commnet_id | 是 | number | 评论id |
id | 是 | string | 朋友圈ID |
type | 是 | string | 操作类型: 1删除朋友圈 2设为隐私 3设为公开 4删除评论 5取消点赞 |
返回数据:
参数名 | 数据类型 | 说明 |
---|
ret | number | 0:成功 |
msg | string | 反馈信息 |
data | object | |
请求参数示例:
{
"appid": "wxid_p3r6ddddvqcl22",
"commnet_id": 0,
"id": "14160275825405145693",
"type": 5
}
成功返回示例:
{
"ret": 0,
"msg": "success",
"data": {
"BaseResponse": {
"ret": 0,
"errMsg": {}
},
"opCount": 0
}
}
错误返回示例:
{
"ret": 0,
"msg": "success",
"data": {
"BaseResponse": {
"ret": -2,
"errMsg": {}
},
"opCount": 0
}
}
隐私设置
小提示:
- 设置自己的朋友圈权限
- 功能可在新设备首次登录24小时后正常使用。新设备功能不可用期间,你可在常用设备上进行发表
- 允许朋友查看朋友圈的范围
id = 6273 Value = 4294967295 全部
id = 6273 Value = 4320 最近半年
id = 6273 Value = 720 最近一个月
id = 6273 Value = 72最近三天 - 允许陌生人查看十条朋友圈
id = 6272 Value = 72 (开启)
id = 6273 Value = 72 (关闭)
请求URL:
- http://域名地址/api/sns/privacyset
请求方式:
请求头:
- Content-Type:application/json
参数:
参数名 | 必填 | 数据类型 | 说明 |
---|
appid | 是 | string | 设备id |
id | 是 | number | 隐私设置类型 |
value | 是 | number | 隐私设置开关 |
返回数据:
参数名 | 数据类型 | 说明 |
---|
ret | number | 0:成功 |
msg | string | 反馈信息 |
data | object | |
请求参数示例:
{
"appid": "wxid_p3r6ddddvqcl22",
"id": 6273,
"value": 72
}
成功返回示例:
{
"ret": 0,
"msg": "success",
"data": {
"ret": 0,
"oplogRet": {
"count": 1,
"ret": "AA=="
}
}
}
错误返回示例:
{
"ret": 0,
"msg": "success",
"data": {
"ret": -2,
"oplogRet": {
"count": 0,
"ret": "AA=="
}
}
}