X-GEHUB-TOKEN 请在后台「客户端」创建或重置凭据后复制(不是 Client Secret 本身),仅通过 HTTPS 发送。节点由客户端默认绑定决定,appId 为兼容占位,不用于选择节点。写操作必须提供新的 Idempotency-Key(8–128 位字母、数字、点、下划线、冒号或短横线);同一操作重试必须复用原值。危险操作另需 X-Confirm-Risk: destructive。首次微信登录和回调配置请在后台完成。 客户端需启用对应模块权限。
{
"appId": "{{appid}}",
"proxyIp":"",
"keyBuff": ""
}curl --location 'https://wxapi.xiaoyu.fan/gehub/v2/api/finder/syncPrivateLetterMsg' \
--header 'X-GEHUB-TOKEN: {{gehub-token}}' \
--header 'Content-Type: application/json' \
--data '{
"appId": "",
"proxyIp":"",
"keyBuff": ""
}'{
"ret": 200,
"msg": "操作成功",
"data": {
"list": [
{
"syncKeyType": 1,
"itemType": 1,
"content": {
"msg": {
"MsgId": 1,
"FromUserName": {
"string": "wxid_0xsqb3o0tsvz22"
},
"ToUserName": {
"string": "v2_060000231003b20faec8c6e18f10c7d6c903ec3db0776955d3d97c6b329d6aa58693bcdb7ad1@finder"
},
"MsgType": 1,
"Content": {
"string": "1"
},
"Status": 3,
"ImgStatus": 1,
"ImgBuf": {
"iLen": 0
},
"CreateTime": 1706084719,
"MsgSource": "<msgsource><pua>1</pua></msgsource>",
"NewMsgId": 5871873953492478723,
"MsgSeq": 1
},
"msgSessionId": "ee06e16a186756394a271218d7dd31f65d3d6aa43dc02a1ec23758f588836d53@findermsg",
"seq": 1,
"extinfo": "CAEQAQ==",
"isSender": 1
},
"subType": 0
},
{
"syncKeyType": 5,
"itemType": 1,
"content": {
"msg": {
"MsgId": 2,
"FromUserName": {
"string": "v2_060000231003b20faec8c6e18f10c7d6c903ec3db0776955d3d97c6b329d6aa58693bcdb7ad1@finder"
},
"ToUserName": {
"string": "v2_060000231003b20faec8c7e28811c4d5cc0ded37b0779c48c759a7446a87688c2774e5300c32@finder"
},
"MsgType": 1,
"Content": {
"string": "12"
},
"Status": 3,
"ImgStatus": 1,
"ImgBuf": {
"iLen": 0
},
"CreateTime": 1706084785,
"MsgSource": "<msgsource><bizflag>0</bizflag><pua>1</pua></msgsource>",
"NewMsgId": 1054704077635816596,
"MsgSeq": 2
},
"msgSessionId": "3eab1521919d4531c83a166faa56cf844737c4a295b127f3edcb68ed4375d049@findermsg",
"seq": 2,
"extinfo": "CAEQAQ==",
"isSender": 0
},
"subType": 2
},
{
"syncKeyType": 5,
"itemType": 1,
"content": {
"msg": {
"MsgId": 3,
"FromUserName": {
"string": "v2_060000231003b20faec8c7e28811c4d5cc0ded37b0779c48c759a7446a87688c2774e5300c32@finder"
},
"ToUserName": {
"string": "v2_060000231003b20faec8c6e18f10c7d6c903ec3db0776955d3d97c6b329d6aa58693bcdb7ad1@finder"
},
"MsgType": 1,
"Content": {
"string": "文本"
},
"Status": 3,
"ImgStatus": 1,
"ImgBuf": {
"iLen": 0
},
"CreateTime": 1706084840,
"MsgSource": "",
"NewMsgId": 243683914400108292,
"MsgSeq": 3
},
"msgSessionId": "3eab1521919d4531c83a166faa56cf844737c4a295b127f3edcb68ed4375d049@findermsg",
"seq": 3,
"extinfo": "CAIQAw==",
"isSender": 1
},
"subType": 2
},
{
"syncKeyType": 5,
"itemType": 1,
"content": {
"msg": {
"MsgId": 4,
"FromUserName": {
"string": "v2_060000231003b20faec8c7e28811c4d5cc0ded37b0779c48c759a7446a87688c2774e5300c32@finder"
},
"ToUserName": {
"string": "v2_060000231003b20faec8c6e18f10c7d6c903ec3db0776955d3d97c6b329d6aa58693bcdb7ad1@finder"
},
"MsgType": 1,
"Content": {
"string": "文本"
},
"Status": 3,
"ImgStatus": 1,
"ImgBuf": {
"iLen": 0
},
"CreateTime": 1706084898,
"MsgSource": "",
"NewMsgId": 7648226390526412062,
"MsgSeq": 4
},
"msgSessionId": "3eab1521919d4531c83a166faa56cf844737c4a295b127f3edcb68ed4375d049@findermsg",
"seq": 4,
"extinfo": "CAIQAw==",
"isSender": 1
},
"subType": 2
},
{
"syncKeyType": 5,
"itemType": 1,
"content": {
"msg": {
"MsgId": 5,
"FromUserName": {
"string": "v2_060000231003b20faec8c7e28811c4d5cc0ded37b0779c48c759a7446a87688c2774e5300c32@finder"
},
"ToUserName": {
"string": "v2_060000231003b20faec8c6e18f10c7d6c903ec3db0776955d3d97c6b329d6aa58693bcdb7ad1@finder"
},
"MsgType": 3,
"Content": {
"string": "<?xml version=\"1.0\"?>\n<msg>\n\t<img aeskey=\"38bd282fa5b21a42590269084f95975f\" encryver=\"1\" cdnthumbaeskey=\"38bd282fa5b21a42590269084f95975f\" cdnthumburl=\"3057020100044b30490201000204e49785f102032f5b0d0204e0689377020465b0cae1042436626432326532302d363466332d346135612d383238312d6636303061333033623762620204051438010201000405004c4c6d00\" cdnthumblength=\"1315\" cdnthumbheight=\"120\" cdnthumbwidth=\"120\" cdnmidheight=\"0\" cdnmidwidth=\"0\" cdnhdheight=\"0\" cdnhdwidth=\"0\" cdnmidimgurl=\"3057020100044b30490201000204e49785f102032f5b0d0204e0689377020465b0cae1042436626432326532302d363466332d346135612d383238312d6636303061333033623762620204051438010201000405004c4c6d00\" length=\"22001\" cdnbigimgurl=\"3057020100044b30490201000204e49785f102032f5b0d0204e0689377020465b0cae1042436626432326532302d363466332d346135612d383238312d6636303061333033623762620204051438010201000405004c4c6d00\" hdlength=\"1096\" md5=\"704de7ebbc107a51a4f0986253a6d3b6\" />\n\t<platform_signature></platform_signature>\n\t<imgdatahash></imgdatahash>\n</msg>\n"
},
"Status": 3,
"ImgStatus": 2,
"ImgBuf": {
"iLen": 0
},
"CreateTime": 1706085089,
"MsgSource": "<msgsource><bizflag>0</bizflag></msgsource>",
"NewMsgId": 7744705344788546693,
"MsgSeq": 5
},
"msgSessionId": "3eab1521919d4531c83a166faa56cf844737c4a295b127f3edcb68ed4375d049@findermsg",
"seq": 5,
"extinfo": "CAIQAw==",
"isSender": 1
},
"subType": 2
}
],
"keyBuff": "CgQIARABCgQIAhAACgQIAxAACgQIBBAACgQIBRAFCgQIBhAACgQIBxAACgQICBAACgQICRAACgQIDBAAEAA="
}
}