使用 Postman 生成特定页面带参数小程序码

1. GET方法获取 access_token
https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=[你的appid]
2. POST方法获取二维码
https://api.weixin.qq.com/wxa/getwxacode?access_token=[刚才取到的access_token]

选择进入bodyrawjson,添加

{
 "path":"pages/yourpage/yourpage?para1=xxx¶2=xxx",
 "width":800
}

其中path是页面目录,width是二维码尺寸,填好后点击 send 即可生成特定页面带参数小程序码

后续

后来发现还有个更方便的办法,使用微信公众平台提供的工具即可生成430px的图片格式的小程序码,如果图片质量要求不高建议使用这个工具。


你可能感兴趣的:(使用 Postman 生成特定页面带参数小程序码)