Account_API::set_account_access_by_id( string $account_id, string $access_token, string $refresh_token, string $expiration )
Set an Account Access Data with the provided id.
Contents
Parameters
- $account_id
-
(string) (Required) The id of the single account to save.
- $access_token
-
(string) (Required) The Zoom Account API access token.
- $refresh_token
-
(string) (Required) The Zoom Account API refresh token.
- $expiration
-
(string) (Required) The expiration in seconds as provided by the server.
Source
File: src/Tribe/Meetings/Zoom/Account_API.php
public function set_account_access_by_id( $account_id, $access_token, $refresh_token, $expiration ) {
$account_data = $this->get_account_by_id( $account_id );
$account_data['access_token'] = $this->encryption->encrypt( $access_token );
$account_data['refresh_token'] = $this->encryption->encrypt( $refresh_token );
$account_data['expiration'] = $expiration;
$this->set_account_by_id( $account_data );
}
Changelog
| Version | Description |
|---|---|
| 1.5.0 | Introduced. |