Description/Error
Caused by: com.zoom.v2client.ApiException: {“code”:124,“message”:“Invalid access token.”}
at com.zoom.v2client.ApiClient.invokeAPI(ApiClient.java:643)
at com.zoom.v2client.api.MeetingsApi.meetings(MeetingsApi.java:940)
Which Endpoint/s?
https://api.zoom.us/v2/users/{userId}/meetings
How To Reproduce (If applicable)
Steps to reproduce the behavior:
- Generate the Java API from the Swagger 2.0 file
- Call the MeetingsApi.meetings(userId, type, 30, 1) method
Screenshots (If applicable)
Additional context
I am using JWT token authentication. Using the same token works fine from the Zoom test site at https://marketplace.zoom.us/docs/api-reference/testing-zoom-apis but fails with the error above when used with the generated API code.
At first I wondered if my account had the correct permissions, but if the call works from the Zoom test site then that shouldn’t be the issue I would think.
Note, this endpoint also works fine with the same JWT token when called using the Unirest Java library.
Why is this error happening?
Thanks.