获取ACCESS_TOKEN接口

1. 获取access_token

access_token是公众号的全局唯一接口调用凭据,公众号调用各接口时都需使用access_token。开发者需要进行妥善保存。access_token的存储至少要保留512个字符空间。     
access_token的有效期目前为2个小时,需定时刷新,重复获取将导致上次获取的access_token失效。

https请求方式: GET
https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=APPID&secret=APPSECRET

 详细参考:

  https://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1421140183

 

猜你喜欢

转载自www.cnblogs.com/szsq/p/9987221.html
今日推荐