```javascript
WXAPI.ttaQrcode(paramsJson, expireHours)
```
+ paramsJson Json format string of QR code parameters. For details of the specific parameters, please see the link [https://microapp.bytedance.com/docs/zh-CN/mini-app/develop/server/qr-code/create-qr-code](https://microapp.bytedance.com/docs/zh-CN/mini-app/develop/server/qr-code/create-qr-code)There is no need to pass access_token, the interface will add it for you.+ expireHours is the image expiration time (in hours). If this time is exceeded, the image will be automatically deleted for you, saving your storage space.
```json
{
"code": 0,
"data": "https://7.s2m.cc/cuser/951/2022/03/23/72804fbc-9048-44f1-942d-bc57cdd6c57c.png",
"msg": "success"
}
```
+ data is the image address of the mini program code