Description
When using either dynamically created JWT tokens, or even hard-copying the one provided from the App Marketplace for my app, my API requests always fail due to an ‘invalid access token’.
Error
The response from the API is: { code: 124, message: “Invalid access token.” }
Which App Type (OAuth / Chatbot / JWT / Webhook)?
JWT Credentials, Account-level app
Which Endpoint/s?
I am currently working on the Meetings endpoint, specifically trying to create a meeting.
How To Reproduce (If applicable)
Request URL:
https://eu01api-www4local.zoom.us/v2/users/me/meetings
Headers:
CURLOPT_HTTPHEADER => [
"authorization: Bearer " . $this->generate_JWT(),
"content-type: application/json"
]
where…
private function generate_JWT()
{
$payload = [
"iss" => self::ZOOM_API_SECRET,
"exp" => time() + $this->timeout,
];
return JWT::encode($payload, self::ZOOM_API_KEY, 'HS256');
}
using Firebase\JWT\JWT class per jwt.io reference
Am trying to connect from a project I am writing on localhost (so ‘CURLOPT_SSL_VERIFYPEER => false’). Any help you could give is appreciated.