Zoom_Webinar_Helpers::get_client()

get_client


Return Return

(void)


Source Source

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

	public function get_client() {

		$client = get_option( '_uncannyowl_zoom_webinar_settings' );

		if ( ! $client || empty( $client['access_token'] ) ) {
			return false;
		}

		if ( empty( $client['expires'] ) || $client['expires'] < time() ) {
			return $this->refresh_token();
		}

		return $client;

	}