anliex

1、首先获取access_token

String requestUrl = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=APPID&secret=AppSecret";
String data = HttpUtils.get(requestUrl);
System.out.println(data);
JSONObject json = JSONObject.fromObject(data);
String ACCESS_TOKEN = String.valueOf(json.get("access_token"));
System.out.println(ACCESS_TOKEN);

 

这个时候开始使用postman来获取带参数的二维码

接口:

https://api.weixin.qq.com/cgi-bin/wxaapp/createwxaqrcode?access_token=asdfsadfgadfgasdfgasgsdafgafsgafgadsfgsad

  

 

这里带的参数就在那,post方式请求,收工

 

分类:

技术点:

相关文章:

  • 2022-01-09
  • 2021-08-07
  • 2021-12-15
  • 2021-08-04
  • 2021-11-22
猜你喜欢
  • 2021-10-26
  • 2022-01-01
  • 2021-07-17
  • 2021-08-28
  • 2021-12-12
相关资源
相似解决方案