Can someone please provide me PHP code for generating JWTKey

@tommy Thanks for the reply. I looked into https://jwt.io/ but it had many libraries. I’m confused to pick the correct one suitable for my requirement.

In this post Help with api create meeting with php @mike1 posted below code for generating JWT but it didn’t have full code like JWT::encode function. Looking for full working code
//function to generate JWT
private function generateJWTKey() {
$key = $this->zoom_api_key;
$secret = $this->zoom_api_secret;
$token = array(
“iss” => $key,
“exp” => time() + 3600 //60 seconds as suggested
);
return JWT::encode( $token, $secret );
}

1 Like