cancel
Showing results for 
Search instead for 
Did you mean: 

Use account credentials to get an access token

ranran2121
Listener

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 1

Bort
Community Champion | Zoom Employee
Community Champion | Zoom Employee

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/