Use account credentials to get an access token

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2022-10-27 11:02 AM - edited 2022-10-27 12:25 PM
Hi,
I need to get the access token in order to make further requests to Zoom APIs with S2S app. I started with the request to the following endpoint
const resp = await axios.post(
"https://zoom.us/oauth/token?grant_type=account_credentials&account_id=<myAccountId>";,
{},
{
headers: {
Authorization:
"Basic <myclientId>:<myclientSecret>", //both encoded
},
}
);
however, despite I do NOT get an error back, this is the response
console.log(resp.data);
#{
status: false,
errorCode: -1,
errorMessage: 'Illegal base64 character 3a',
result: null
}
I encoded the <myClientid>:<myClientsecret> on a online tool and pasted the response
Could someone give me some hints about why I get this response back
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2022-11-28 07:32 AM
Hi @ranran2121
This question would be better suited for the Zoom Developer's Forum, a dedicated forum for API, SDK, and other developer's questions. That forum can be found here: https://devforum.zoom.us/
