Template_Modifications::get_api_authorize_fields( TribeEventsVirtualMeetingsWebexApi $api, TribeEventsVirtualMeetingsWebexUrl $url )

Adds Webex authorize fields to events->settings->api.


Parameters

$api

(TribeEventsVirtualMeetingsWebexApi) (Required) An instance of the Webex API handler.

$url

(TribeEventsVirtualMeetingsWebexUrl) (Required) The URLs handler for the integration.


Top ↑

Return

(string) HTML for the authorize fields.


Top ↑

Source

File: src/Tribe/Meetings/Webex/Template_Modifications.php

	public function get_api_authorize_fields( Api $api, Url $url ) {
		/** @var \Tribe__Cache $cache */
		$cache    = tribe( 'cache' );
		$message = $cache->get_transient( Settings::$option_prefix . 'account_message' );
		if ( $message ) {
			$cache->delete_transient( Settings::$option_prefix . 'account_message' );
		}

		$args = [
			'api'     => $api,
			'url'     => $url,
			'message' => $message,
		];

		return $this->admin_template->template( 'webex/api/authorize-fields', $args, false );
	}

Top ↑

Changelog

Changelog
Version Description
1.9.0 Introduced.