Hey,
I have a problem with the access token and can’t find the problem. Hopefully one of you can help me.
First of all, I am using the free account for testing.
I have created a new app in the Marketplace (Server to Server OAuth App) and entered all the relevant details.
The necessary entries are set under Scopes.
The app is activated in the account.
I generate my OAuth token using the following endpoint (account ID from the created app - checked and it is complete).
https://zoom.us/oauth/token?grant_type=account_credentials&account_id=OAPWRo5cQtiFZ9GMIV-86A
The Response I get back is the following:
{
"access_token": "eyJzdi...4g",
"token_type": "bearer",
"expires_in": 3599,
"scope": "user:read:list_users:admin clips:write:upload_file:admin",
"api_url": "https://api.zoom.us"
}
I use the access token specified here to call up an endpoint that is shared in the app via Scope.
In this case /clips/files
So I perform a POST request to https://fileapi.zoom.us/v2/clips/files
.
I have entered the following
Content-Type: multipart/form-data
Authorization: "Bearer " + msg.resp_auth.access_token (references the previously generated access token - is transferred correctly)
the body contains:
{
"file": "@\\\\DiskStation_923\\Automation\\Zoom\\komodo-unlimited-screen-recording-and-sharing.mp4"
}
As a Response I then get back:
resp: Object
code: 124
message: "Invalid access token."
Where is my error?
Why do I get “Invalid access token” as a response? I have tried the GET /users endpoint - it returns data as expected.
I’ve already invested some time in it, but unfortunately I can’t find the problem.
Would be great if someone could tell me exactly where the error exactly is.
Thanks already in advance.
Kind regards,
Ben
P.S.: I removed all “https://” from the requests and responses because it won’t let me create this topic otherwise. In my requests