微信开发发送链接消息

本文共有405个字,关键词:

问题:使用开发微信公众号时,使用客服接口发送链接消息,总是出链接代码
解决:引号错误引起的
方法:
url = "https://api.weixin.qq.com/cgi-bin/message/custom/send"
headers = {'content-type': 'charset=utf8'}
data = {
"touser":"OPENID",
"msgtype":"text",
"text":
{
"content":'Hello World 小蛮兔'
}
}
注意:链接中href一定是双引号,外面一定是单引号
参考:https://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1421140547

版权声明:本文为作者原创,如需转载须联系作者本人同意,未经作者本人同意不得擅自转载。
添加新评论
暂无评论