php 微信客服消息推送,微信客服消息发送接口指定客服发送消息问题

客服接口-发消息

接口调用请求说明

http请求方式: POST

https://api.weixin.qq.com/cgi-bin/message/custom/send?access_token=ACCESS_TOKEN

请注意,如果需要以某个客服帐号来发消息(在微信6.0.2及以上版本中显示自定义头像),则需在JSON数据包的后半部分加入customservice参数,例如发送文本消息则改为:

{

"touser":"OPENID",

"msgtype":"text",

"text":

{

"content":"Hello World"

},

"customservice":

{

"kf_account": "test1@kftest"

}

}

多客服已经添加,添加customservice无效,没有使用指定客服。有谁用过吗,求指教?

找到解决办法了:

customservice放在回复内容前面

{

"touser":"OPENID",

"msgtype":"text",

"customservice":

{

"kf_account": "test1@kftest"

},

"text":

{

"content":"Hello World"

}

}

我也是醉了

回复内容:

客服接口-发消息

接口调用请求说明

http请求方式: POST

https://api.weixin.qq.com/cgi-bin/message/custom/send?access_token=ACCESS_TOKEN

请注意,如果需要以某个客服帐号来发消息(在微信6.0.2及以上版本中显示自定义头像),则需在JSON数据包的后半部分加入customservice参数,例如发送文本消息则改为:

{

"touser":"OPENID",

"msgtype":"text",

"text":

{

"content":"Hello World"

},

"customservice":

{

"kf_account": "test1@kftest"

}

}

多客服已经添加,添加customservice无效,没有使用指定客服。有谁用过吗,求指教?

找到解决办法了:

customservice放在回复内容前面

{

"touser":"OPENID",

"msgtype":"text",

"customservice":

{

"kf_account": "test1@kftest"

},

"text":

{

"content":"Hello World"

}

}

我也是醉了

本文原创发布php中文网,转载请注明出处,感谢您的尊重!