Home >Backend Development >PHP Tutorial >微信客服消息发送接口指定客服发送消息问题

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

WBOY
WBOYOriginal
2016-06-06 20:21:102381browse

客服接口-发消息

接口调用请求说明

http请求方式: POST
https://api.weixin.qq.com/cgi-bin/message/custom/send?access_token=ACCESS_TOKEN

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

<code>"touser":"OPENID",
"msgtype":"text",
"text":
{
     "content":"Hello World"
},
"customservice":
{
     "kf_account": "test1@kftest"
}</code>

}

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

找到解决办法了:
customservice放在回复内容前面
{

<code>"touser":"OPENID",
"msgtype":"text",
"customservice":
{
     "kf_account": "test1@kftest"
},
"text":
{
     "content":"Hello World"
}</code>

}
我也是醉了

回复内容:

客服接口-发消息

接口调用请求说明

http请求方式: POST
https://api.weixin.qq.com/cgi-bin/message/custom/send?access_token=ACCESS_TOKEN

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

<code>"touser":"OPENID",
"msgtype":"text",
"text":
{
     "content":"Hello World"
},
"customservice":
{
     "kf_account": "test1@kftest"
}</code>

}

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

找到解决办法了:
customservice放在回复内容前面
{

<code>"touser":"OPENID",
"msgtype":"text",
"customservice":
{
     "kf_account": "test1@kftest"
},
"text":
{
     "content":"Hello World"
}</code>

}
我也是醉了

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn