cancel
Showing results for 
Search instead for 
Did you mean: 
The Zoom Community will be placed in read-only mode January 9th, 2026 through January 22nd, 2026 to deliver you a new and improved community experience!

The community will still be accessible, however, the creation of any new discussions or replies will be temporarily unavailable. We appreciate your patience during this time.

Unable to find out "users/me" details in Web zoom Apps

ayushrajput-k1w
Newcomer
Newcomer
var clientId = 'XXXXXXXXXX';
    var clientSecret = 'XXXXXXXXXXXXXXXXX';
    var encodedData = Buffer.from(clientId + ':' + clientSecret).toString('base64');
    var authorizationHeaderString = 'Authorization: Basic ' + encodedData;
   
    let options = {
        method: 'POST',
        headers: {
            Authorization: `Basic ${encodedData}`,
        },
    };
    request(options, (error, response) => {
        var rs = JSON.parse(response.body);
        var access_token = rs.access_token;
        console.log(access_token);
    //----------------------
        const options1 = {
            uri: 'https://api.zoom.us/v2/users/me',
            qs: {
                'status': 'active'
            },
            auth: {
                'bearer': access_token
            },
            headers: {
                "alg": "HS256",
                "typ": "JWT"
              },
            json: true // Parse the JSON string in the response
        };    
          request(options1, function (error, response, body) {
            console.log(body);
          });
       
    //------------------------

   });
 
 
In valid token problem
1 REPLY 1

Bort
Zoom Employee
Zoom Employee

Hi @ayushrajput-k1w 

 

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/