Account_API::get_account_by_id( string $account_id )
Get a Single Zoom Account by id.
Contents
Parameters
- $account_id
-
(string) (Required) The id of the single account.
Return
(TribeEventsVirtualMeetingsZoomarray<string|TribeEventsVirtualMeetingsZoomstring>) $account The Zoom account data.
Source
File: src/Tribe/Meetings/Zoom/Account_API.php
public function get_account_by_id( $account_id ) {
// Get an account and decrypt the PII.
$account = get_option( $this->single_account_prefix . $account_id, [] );
foreach ( $account as $field_key => $value ) {
if ( ! array_key_exists( $field_key, $this->encrypted_fields ) ) {
continue;
}
$account[ $field_key ] = $this->encryption->decrypt( $value, $this->encrypted_fields[ $field_key ] );
}
return $account;
}
Changelog
| Version | Description |
|---|---|
| 1.5.0 | Introduced. |