Warning: Array to string conversion in /home/customer/www/docs.automatorplugin.com/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 825
Zoom_Helpers::get_client()

get_client

Contents


Return Return

(void|bool)


Source Source

File: src/integrations/zoom/helpers/zoom-helpers.php

	public function get_client() {
		$client = get_option( '_uncannyowl_zoom_settings' );
		if ( ! $client || empty( $client['access_token'] ) ) {
			return false;
		}
		if ( empty( $client['expires'] ) || $client['expires'] < time() ) {
			return $this->refresh_token();
		}
		return $client;
	}