Question
Unable to find out "users/me" details in Web zoom Apps
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 = {
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
