protected function ZoomApiClient::setAuthHeader in Zoom API 8
Same name and namespace in other branches
- 2.0.x src/Client/ZoomApiClient.php \Drupal\zoomapi\Client\ZoomApiClient::setAuthHeader()
Generate JSON Web Token.
TODO: allow for changing expiration.
1 call to ZoomApiClient::setAuthHeader()
- ZoomApiClient::buildOptions in src/
Client/ ZoomApiClient.php - Build options for the client.
File
- src/
Client/ ZoomApiClient.php, line 173
Class
- ZoomApiClient
- Uses http client to interact with the Zoom API.
Namespace
Drupal\zoomapi\ClientCode
protected function setAuthHeader() {
$token = [
'iss' => $this->apiKey,
'exp' => ($this->time
->getRequestTime() + 60) * 1000,
];
return JWT::encode($token, $this->apiSecret);
}