cancel
Showing results for 
Search instead for 
Did you mean: 
Important updates from Zoom Support:
  • Starting February 3, 2025, Zoom Phone customers must add their phone numbers to an approved 10DLC campaign in order to use SMS/MMS capabilities on their numbers.

  • Introducing more live support options! More Zoom customers now have access to live agent chat support. Sign in and visit our Contact Support page to see all your available support options. We’re here to help!

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/