获取直播列表出错?
我的云函数代码
const cloud = require('wx-server-sdk')
const rp = require('request-promise')
cloud.init()
exports.main = async (event, context) => {
const options = {
method: 'POST',
url: 'https://api.weixin.qq.com/wxa/business/getliveinfo' ,
qs: {
access_token:event.token,
start:0,
limit:50,
},
json: true
};
//获取AccessToken
return await rp(options);
}
调用该云函数返回{errcode: 41001, errmsg: “access_token missing rid: 5fa3d9a2-477a4656-7f17fd9e”}
