Description
JWT query works fine for one endpoint but not for another
Error
With the participants
endpoint I get back:
$code
[1] 124
$message
[1] "Invalid access token."
Which App Type (OAuth / Chatbot / JWT / Webhook)?
The JWT that I generate works perfectly fine for some endpoints but not others.
NOT OK:
https://api.zoom.us/v2/metrics/meetings/{meetingId}/participants
essentially the same code works OK against:
https://api.zoom.us/v2/report/users/{userId}/recordings?from=string&to=string
Which Endpoint/s?
Knowing the API endpoint/s can help us to identify your issue faster. Please link the ones you need help/have a question with.
How To Reproduce (If applicable)
This R function does not work. Essentially the same function against a different end point works fine.
get_participants <- function(meeting_id) {
# Get all the participants from a meeting
# curl https://api.zoom.us/v2/metrics/meetings/{meetingId}/participants
response <- curl_fetch_memory(
paste0(
"https://api.zoom.us/v2/metrics/meetings/",
meeting_id, "/participants",
"&access_token=",
jwt
)
)
response$status_code
response_content <- fromJSON(rawToChar(response$content))
participants <- response_content$participants
response_content
}
What is the difference that I’m not seeing? Is there a different level of authorization? I have a large group of Pro Accounts.