• Home
  • Knowledgebase
  • DevDocs
  • Translations
  • Support
  • Live Preview

logo DevDocs

By The Events Calendar
Filter by type:
Skip to content
Filter by type:
Search
Browse: Home / Classes / Account_API / Account_API::set_account_access_by_id()
Product: Virtual Events

Account_API::set_account_access_by_id( string $account_id, string $access_token, string $refresh_token, string $expiration )

Set an Account Access Data with the provided id.

Contents

  • Parameters
  • Source
  • Changelog

Parameters

$account_id

(string) (Required) The id of the single account to save.

$access_token

(string) (Required) The Zoom Account API access token.

$refresh_token

(string) (Required) The Zoom Account API refresh token.

$expiration

(string) (Required) The expiration in seconds as provided by the server.


Top ↑

Source

File: src/Tribe/Meetings/Zoom/Account_API.php

	public function set_account_access_by_id( $account_id, $access_token, $refresh_token, $expiration ) {
		$account_data                 = $this->get_account_by_id( $account_id );
		$account_data['access_token'] = $this->encryption->encrypt( $access_token );
		$account_data['refresh_token'] = $this->encryption->encrypt( $refresh_token );
		$account_data['expiration']   = $expiration;

		$this->set_account_by_id( $account_data );
	}

Expand full source code Collapse full source code


Top ↑

Changelog

Changelog
Version Description
1.5.0 Introduced.
The Events Calendar
  • Home
  • Products
  • Blog
  • Support
© 2026 The Events Calendar Terms and Conditions Privacy