Account_API::get_exiration_time_stamp( $expires_in )
Get the expiration time stamp.
Contents
Parameters
-
(string) (Required) The amount of time in seconds until the access token expires.
Return
(string) The timestamp when the access token expires.
Source
File: src/Tribe/Meetings/Zoom/Account_API.php
public function get_exiration_time_stamp( $expires_in ) {
// Take the expiration in seconds as provided by the server and remove a minute to pad for save delays.
return ( (int) $expires_in ) - MINUTE_IN_SECONDS + current_time( 'timestamp' );
}
Changelog
| Version | Description |
|---|---|
| 1.5.0 | Introduced. |