生成二维码
1,获取token
https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=wxb******&secret=9c74***
2,将拼接好的网址赋值到postman中
{
"access_token": "46*****",
"expires_in": 7200
}
3,参考微信开发文档
https://developers.weixin.qq.com/doc/offiaccount/Account_Management/Generating_a_Parametric_QR_Code.html
拼接网址:
--网址
https://api.weixin.qq.com/cgi-bin/qrcode/create?access_token=TOKEN
--并将下面josn 复制到postman的body中
{"action_name": "QR_LIMIT_STR_SCENE", "action_info": {"scene": {"scene_str": "test"}}}
4,生成结果为
{
"ticket": "gQHc7zw*****",
"url": "http://weixin.qq.com/q/02zYMZltHgcxm10000g07c"
}
5,展示
https://mp.weixin.qq.com/cgi-bin/showqrcode?ticket=g*******
ticket 为 4中生成的那种
代码自动生成二维码
https://blog.csdn.net/baidu_35975930/article/details/88089536
推荐网址,快速生成二维码,解码
https://cli.im/?fromTopNav=1