Hi there, I am planning to create an SDK for our customers. We are a saas company and allowing users to create meeting, webnairs etc and let their users signup in their sites and with the help of web sdk, we will show the meeting in their own website instead in zoom’s website. I created an app in developer account for sdk. I used the client id and secrete id to generate code
but i am not able to get the access key from the code. Here is my request…
const config = {
method: "POST",
url: "https://zoom.us/oauth/token",
headers: {
Host: "zoom.us",
"Content-Type": "application/x-www-form-urlencoded",
Authorization: "Basic" + Buffer.from(
`CLINET_ID:SECRETE_ID`
).toString("base64"),
},
body: {
code: code,
grant_type: "authorization_code",
redirect_uri: `${baseUrl}teacher/payment-gateways/zoom-oauth-callback`,
},
};
try {
const req = await axios(config);
return req
} catch (error) {
return error
}
I am getting 400 bad request. Thank you.