{"errcode":41001,"errmsg":"access_token missing hint: [vqDZeA0872sz12!]"}

ysf0181 2017-05-18 12:36:37
执行结果
{"access_token":"_DxA7FQX9By8dEtqBSiJGZ695SavKrl-B-jvDowqdEX_YNFDPYgzCUqVGONuL2zHgFYu8gSJm74pX00obbGcGo6NpLZkfm_Dqh3-44jfKFu_Ry1zlXfcNPjt2wmPO2o9HFPjAFADBL","expires_in":7200}


_DxA7FQX9By8dEtqBSiJGZ695SavKrl-B-jvDowqdEX_YNFDPYgzCUqVGONuL2zHgFYu8gSJm74pX00obbGcGo6NpLZkfm_Dqh3-44jfKFu_Ry1zlXfcNPjt2wmPO2o9HFPjAFADBL

{"errcode":41001,"errmsg":"access_token missing hint: [vqDZeA0872sz12!]"}



错误提示:{"errcode":41001,"errmsg":"access_token missing hint: [vqDZeA0872sz12!]"}
这个是过期提示啊,我刚获取马上过期,我很糊涂。

这个是asp源码:
shuju = "template_id=1&aa=b"
url = "https://api.weixin.qq.com/cgi-bin/message/template/send?access_token=ACCESS_TOKEN"


'https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=XX&secret=XX

'获取 access_token
shuju = "grant_type=client_credential&appid=XX&secret=XX"
url = "https://api.weixin.qq.com/cgi-bin/token?"



jieguo = PostHTTPPage(url,shuju,"post") '获得 access_token
response.write jieguo & "<br>"

jieguo_er = split(jieguo,",")
jieguo_er2 = jieguo_er(0)
jieguo_er222 = split(jieguo_er2,Chr(34))

response.write "<br><br>"
access_token = jieguo_er222(3)
response.write jieguo_er222(3) '真的,access_token

'https://api.weixin.qq.com/cgi-bin/template/api_set_industry?access_token=ACCESS_TOKEN

response.write "<br><br>"
shuju = "access_token=3O6MBA_7lFQw7gdGbZ33MLSTgm8fYiGCxmfuNThWAntpoeJIksvgmbGYws-YQsMCc_nFYEancPPeDbdo99GA7w5mif2hE6EWd0-3PbMPLsqVtNhZUvJOU-ZD0UWnxjPFSCBhADAGQP"
url = "https://api.weixin.qq.com/cgi-bin/getcallbackip?"

jieguo22 = PostHTTPPage(url,shuju,"get") '获得 access_token
response.write jieguo22 & "<br>"

'shuju = "access_token=RTxWjwYCXKgoeiS74gqkZauP4TfaOQLByNwPxqFU_CPuX6_z_dg7w_O_K3s3-Zpu_RmEQ9DqpLPSAgj_oHfpKh12QR8NsZ56NaSD-KGtRNlAM3WtGwHmlRBySN5D6OyIYAQjAFAQSI"
'url = "https://api.weixin.qq.com/cgi-bin/message/template/send?"

function BytesToBstr(body,Cset)
dim objstream
set objstream = Server.CreateObject("adodb.stream")
objstream.Type = 1
objstream.Mode =3
objstream.Open
objstream.Write body
objstream.Position = 0
objstream.Type = 2
objstream.Charset = Cset
BytesToBstr = objstream.ReadText
objstream.Close
set objstream = nothing
End function



function PostHTTPPage(url,data,fangshi)
dim Http
set Http=server.createobject("MSXML2.SERVERXMLHTTP.3.0")
Http.open fangshi,url,false
Http.setRequestHeader "CONTENT-TYPE", "application/x-www-form-urlencoded"
Http.send(data)
if Http.readystate<>4 then
exit function
End if
PostHTTPPage=bytesToBSTR(Http.responseBody,"utf-8")
set http=nothing
if err.number<>0 then err.Clear
End function
...全文
18642 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
WXG_xiaoyan 2017-05-18
  • 打赏
  • 举报
回复
如下链接,按照提示解决,
https://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1443433542&token=&lang=zh_CN


3,143

社区成员

发帖
与我相关
我的任务
社区描述
微信开发即微信公众平台开发,将企业信息、服务、活动等内容通过微信网页的方式进行表现,通过二次开发可以将公众账号由一个媒体型营销工具转化成提供服务的产品。
社区管理员
  • 微信开发
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧