欢迎来到懒人模板!我们专注移动互联网,所有模板永久免费下载!
  • 首 页
  • 当前位置:主页 > 公众号教程 >

    ASP版本微信模板信息发送的代码例子

    2018-04-26 18:12 来源/作者:懒人模板 分类:公众号教程  « »
    Function sendWXTmp(token, wxopenid, tmpid, url, data)
    strpost="{""touser"":"""&wxopenid&""",""template_id"":"""&tmpid&""",""url"":"""&url&""",""topcolor"":""#FF0000"",""data"":"&data&"}"
    set xmlhttp = Server.CreateObject("MSXML2.ServerXMLHTTP")
    resolveTimeout = 10000
    connectTimeout = 10000
    sendTimeout = 120000
    receiveTimeout = 60000
    xmlhttp.setTimeouts resolveTimeout, connectTimeout, sendTimeout, receiveTimeout
    xmlhttp.open "POST","https://api.weixin.qq.com/cgi-bin/message/template/send?access_token="&token,false
    xmlhttp.send strpost
    ret = trim(xmlhttp.ResponseText)
    set xmlhttp = nothing
    sendWXTmp=GetMidStr(ret,"errcode"":""",""",""")
    End Function
    

    点击扫描效果预览免费下载免登陆网盘下载
    标签:
    * 懒人模板承诺:本站所有资源免费下载,无病毒,无弹窗,无干扰链接! 提点建议