Url::to_authorize()
Returns the URL to authorize the use of the Zoom API.
Return
(string) The request URL.
Source
File: src/Tribe/Meetings/Zoom/Url.php
public function to_authorize() {
$license = get_option( 'pue_install_key_events_virtual' );
$authorize_url = self::$authorize_url;
if ( defined( 'TEC_VIRTUAL_EVENTS_ZOOM_API_AUTHORIZE_URL' ) ) {
$authorize_url = TEC_VIRTUAL_EVENTS_ZOOM_API_AUTHORIZE_URL;
}
$real_url = add_query_arg( [
'key' => $license ? $license : 'no-license',
'redirect_uri' => esc_url( $this->oauth->authorize_url() ),
],
$authorize_url
);
return $real_url;
}
Changelog
| Version | Description |
|---|---|
| 1.4.0 | Add a constant to be able to change the authorize url. |
| 1.0.0 | Introduced. |