I have the following code:
try {
let refreshToken = user.data().zoom_oauth_info.refresh_token;
let accessTokenData = await accessToken(refreshToken, userData);
var config = {
method: 'delete',
url: `https://api.zoom.us/v2/users/me/meetings${data.eventId}`,
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer ' + accessTokenData
},
};
const resData = await axios(config);
return resData.data
} catch (error) {
console.error("Error: " + error.message);
return {
success: false,
message: error.message
};
}
which is called whenever a user wants to delete a meeting. For some reason, Zoom gives me a 200 status code (if I print via axios response data.status) but when I check my account, the meeting still shows up in the upcoming meetings section of my Zoom account?
Any ideas what may be causing this? I use similar code to create meetings which works so what’s the issue? I tested in localhost as well as production.