微信客服消息群发 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中文网