小程序广告数据监控marketing/user_action_sets/add
//点击一个广告进入小程序时候把广告的相关信息再后台做一下记录 wx.request({ url: 'https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=appid&secret='+secret, success:function(res){ console.log(res); //{"access_token":"access_token”} //这里是正常获取到的 const access_token = res.data.access_token; wx.request({ url: 'https://api.weixin.qq.com/marketing/user_action_sets/add?version=v1.0&access_token=' + access_token, method:"POST", header: { 'content-type': 'application/json' // 默认值 }, data:{ "type": "WEB", "name": "wxadtest", "description": "test" }, success:function(res){ console.log(res); //返回码 //{"errcode":48001,"errmsg":"api unauthorized"} } }) } }) 哪位神可以解决一下这个48001?? 相关文档参考https://wximg.qq.com/wxp/pdftool/get.html?id=BkPmceLSG&pa=5&name=miniprogram_conv