I am able to connect to the Zoom API using the following script
$tokenResponse = Invoke-WebRequest -Uri "https://zoom.us/oauth/token" -Method POST -ContentType 'application/x-www-form-urlencoded' -Body @{
grant_type='account_credentials'
account_id=$AccountID
} -Headers @{
Host='zoom.us'
Authorization="Basic $clientidandsecretconvertedbase64"
}
if ($tokenResponse.StatusCode -eq 200) {
$tokenData = ConvertFrom-Json $tokenResponse.Content
$accessToken = $tokenData.access_token
$listRoomsUrl = "$baseUrl/rooms"
$headers = @{
"Authorization" = "Bearer $accessToken"
}
# Send the GET request to list rooms
$listRoomsResponse = Invoke-WebRequest -Uri $listRoomsUrl -Headers $headers -Method Get
$roomsData = ConvertFrom-Json $listRoomsResponse.Content
}
I am looking for data that shows me the health of the device for the Zoom Rooms. I was only able to see the status of the room but not the Health or Issue of the room. Any idea what URL has this information so I can create a teams webhook to alert when status is “Critical”. Here is the screenshot of the dashboard of what I am trying to find :