Description
I’m trying to integrate the Meeting API (create a meeting, get a meeting, delete meeting) using PHP 7 and yii2 advanced.
I’ve registered app on Zoom APP Marketplace, got the credentials and using them I’m requesting access tokens for users on my platform. I believe I’m getting correct access tokens, I store them in DB and then when user wants to create zoom meeting I’m calling this endpoint /v2/users/me/meetings and I’m passing user’s token in the Authorization header like this “headers” => [“Authorization” => “Bearer $accessToken”] but I always get a 401 Unauthorized response: “code”:124,“message”:"Invalid access token.
Error
401 Unauthorized response: “code”:124,“message”:"Invalid access token.
Which App Type (OAuth / Chatbot / JWT / Webhook)?
OAuth
Which Endpoint/s?
/v2/users/me/meetings
How To Reproduce (If applicable)
Steps to reproduce the behavior:
$client = new Client([‘base_uri’ => ‘https://api.zoom.us’]);
$client->request(‘POST’, ‘/v2/users/me/meetings’, [
“headers” => [
“Authorization” => “Bearer $accessToken”
],
‘json’ => [
“topic” => $meeting,
“type” => 2,
“start_time” => $meetingStartTime,
“duration” => $meetingDuration,
“password” => “”
],
]);
Additional context
I’ve checked every similar topic to my issue but still I wasn’t able to resolve it. Thanks.