html52.com
我爱小程序-开发者交流社区

通过接口:客服接口-发消息发送的消息无法获取聊天记录?

客服接口-发消息

接口调用请求说明

http请求方式: POST https://api.weixin.qq.com/cgi-bin/message/custom/send?access_token=ACCESS_TOKEN
{
    "touser":"OPENID",
    "msgtype":"text",
    "text":
    {
         "content":"Hello World"
    },
    "customservice":
    {
         "kf_account": "test1@kftest"
    }
}

这里有传customservice

获取聊天记录

http请求方式: POST https://api.weixin.qq.com/customservice/msgrecord/ getmsglist ?access_token=ACCESS_TOKEN POST数据示例如下:
   {
      "starttime" : 987654321,
      "endtime" : 987654321,
      "msgid" : 1,
      "number" : 10000 
} 

获取聊天记录的时候,获取不到通过API发送的信息,通过WEB网页版客服发送的消息可以获取到

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

真正的个人免签约支付接口

云免签H5支付