cancel
Showing results for 
Search instead for 
Did you mean: 

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
Community Champion | Employee
Community Champion | 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/