hello guys i am trying to create a new Oauth2.0 and create a zoom meeting in zoom integration and i have facing issue { code: 124, message: ‘Invalid access token.’ }
when call the end point – https://api.zoom.us/v2/users/" + ‘kantshri561@gmail.com’ + "/meetings
and this is code --const create= function(req,res){
let data=req.body.access_token;
let body=req.body
var options = {
method: "POST",
uri: "https://api.zoom.us/v2/users/" + 'kantshri561@gmail.com' + "/meetings",
body: req.body,
oauth: {
bearer: `"bearer ${data}"`,
},
headers: {
authoraization: "bearer ${data}"
,
“content-type”: “application/json”,
},
json: true, //Parse the JSON string in the response
};
console.log(“outside req,”)
console.log(data)
request(options, function (error, response,body) {
res.send({body,msg:“process done”})
console.log(body);
if (error){
res.send(error)
throw new Error(error,console.log(“testing”));
}else{
console.log(“in request data”)
//res.send(response)
console.log(data)
}
console.log(“testing–”)
//res.status(200).join("create meeting result: " + response);
//console.log(body.access_token)
})
}