Account_API::get_list_of_accounts( boolean $all_data = false )
Get the listing of Zoom Accounts.
Contents
Parameters
- $all_data
-
(boolean) (Optional) Whether to return all account data, default is only name and status.
Default value: false
Return
(TribeEventsVirtualMeetingsZoomarray<string|TribeEventsVirtualMeetingsZoomstring>) $list_of_accounts An array of all the Zoom accounts.
Source
File: src/Tribe/Meetings/Zoom/Account_API.php
public function get_list_of_accounts( $all_data = false ) {
// Get list of accounts and decrypt the PII
$list_of_accounts = get_option( $this->all_account_key, [] );
foreach ( $list_of_accounts as $account_id => $account ) {
if ( empty( $account['name'] ) ) {
continue;
}
$list_of_accounts[ $account_id ]['name'] = $this->encryption->decrypt( $account['name'] );
// If false (default ) skip getting all the account data.
if ( empty( $all_data ) ) {
continue;
}
$account_data = $this->get_account_by_id( $account_id );
$list_of_accounts[ $account_id ] = $account_data;
}
return $list_of_accounts;
}
Changelog
| Version | Description |
|---|---|
| 1.5.0 | Introduced. |