Generation of Mini Program QR Code

1. Want to see the channel through which users follow Mini Program, so I want to add parameters to the generation of Mini Program QR code. I want to generate the relevant QR code myself, using POST https://api.weixin.qq.com/wxa... but reporting an error

all the time.
var postOptions = {
    url: "https://api.weixin.qq.com/wxa/getwxacodeunlimit?" + post_con,
    method: "POST"
  }
  request.post(postOptions, function (err, response, body) {
    //  console.log(err, response);
    console.log("response", response.body);
  })

the error message is {"errcode": 44002, "errmsg": "empty post data hint: [6SRJrA09672756]"}

  
Apr.03,2022

wx.request Post pass parameters using data: {}


I've implemented it. Take a look at SDK

.
Menu