概述
该接口用于获得指定员工某时间点后的添加微信好友记录。
请求URL
http://api-hub.mobilegate.net/GetWechatInviteLog
请求方式
POST
请求参数
| 参数名 |
备注 |
| enterpriseId
|
企业账号ID(详见管理控制台->开发信息) |
| saleswxid
|
员工微信账号 |
| timeStamp
|
北京时间所对应的秒级Unix时间戳。(若想获得全量数据,该字段为0即可) |
| requestToken
|
签名(详见 参数签名) |
返回结果
| 参数名 |
备注 |
| ActionType
|
返回类型 |
| Data
|
|
| - InviteDateTime
|
申请时间 |
| - SalesWxid
|
员工微信ID |
| - CustomerAlias
|
客户昵称 |
| - InviteText
|
申请内容 |
| - InviteStatus
|
申请状态 |
| - InviteType
|
申请类别 |
返回格式
JSON
返回示例
{
"ActionType": "Success",
"Data": [
{
"InviteDateTime": "2026/2/28 10:05:31",
"SalesWxid": "wxid_gy5xjk123333",
"CustomerAlias": "raven.At(sunset)",
"InviteText": "我是Montoya",
"InviteStatus": "已同意",
"InviteType": "主动申请"
},
{
"InviteDateTime": "2026/2/28 9:55:02",
"SalesWxid": "wxid_gy5xjk123333",
"CustomerAlias": "Twili9ht",
"InviteText": "我是Montoya",
"InviteStatus": "已同意",
"InviteType": "主动申请"
},
{
"InviteDateTime": "2025/12/1 10:10:41",
"SalesWxid": "wxid_gy5xjk123333",
"CustomerAlias": "www",
"InviteText": "我是Montoya",
"InviteStatus": "未同意",
"InviteType": "收到申请"
}
]
}
异常返回
输入参数错误
{"Result": "-1"}
参数含有非法字符
{"Result": "-2"}
enterpriseID未提供
{"Result": "-3"}
Unix时间戳格式错误
{"Result": "-4"}
参数签名错误
{"Result": "-99"}