Generate applet code interface

API call address

{域名地址}/api/weapp/qrcode

illustrate:{域名地址}You need to replace it with your domain address, such as/api/weapp/qrcode

Calling methods

POST

Request parameters

Field name type Required illustrate
path string yes Mini Program Path
scene string yes scene

Return parameters

Field name type illustrate
code int Error code
msg string Error Cause Description
data string QR code picture address

Request data example

parameter value
path /pages/index/index
scene

Return to the data example

{
    "code": 0,
    "msg": "",
    "data": "https://...",
}

Error code

Error code illustrate
0 OK
-1 Error, the cause of the error is pointed out in msg
1001 Not logged in
1002 Unauthorized
200 API request OK