需要两个参数:
小程序appid,小程序 appsecret;
接下来把这两个参数传到服务器的接口中执行https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=(传来的appid)&secret=(传来的appsecret)接口;
执行接口方法:file_get_contents();(php)
返回json就搞定啦!!
需要两个参数:
小程序appid,小程序 appsecret;
接下来把这两个参数传到服务器的接口中执行https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=(传来的appid)&secret=(传来的appsecret)接口;
执行接口方法:file_get_contents();(php)
返回json就搞定啦!!