Use account credentials to get an access token | Community
Skip to main content
Newcomer
October 27, 2022
Question

Use account credentials to get an access token

  • October 27, 2022
  • 1 reply
  • 4 views

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

    1 reply

    Bort
    Employee
    Employee
    November 28, 2022

    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/