PATH:
home
/
letacommog
/
newrdv1
/
wp-content
/
plugins
/
sf-booking
/
payment-gateway
/
MangoPay
/
Libraries
<?php namespace MangoPay\Libraries; /** * OAuthToken */ class OAuthToken extends Dto { /** * Created time * @var int */ public $create_time; /** * Value of token * @var string */ public $access_token; /** * Token type * @var string */ public $token_type; /** * Expires time for the token * @var int */ public $expires_in; /** * Autentication key * @var string */ public $autentication_key; /** * Constructor */ public function __construct() { $this->create_time = time() - 5; } /** * Check that current tokens are expire and return true if yes * @return bool */ public function IsExpired() { return (time() >= ($this->create_time + $this->expires_in)); } public function GetAutenticationKey() { return $this->autentication_key; } }
[+]
..
[-] Error.php
[edit]
[-] ApiOAuth.php
[edit]
[-] ResponseException.php
[edit]
[-] AuthorizationTokenManager.php
[edit]
[-] UrlTool.php
[edit]
[-] HttpResponse.php
[edit]
[-] HttpCurl.php
[edit]
[-] Exception.php
[edit]
[-] Logs.php
[edit]
[-] IStorageStrategy.php
[edit]
[-] OAuthToken.php
[edit]
[-] Dto.php
[edit]
[-] Upload.php
[edit]
[-] HttpBase.php
[edit]
[-] RequestType.php
[edit]
[-] ApiBase.php
[edit]
[-] Configuration.php
[edit]
[-] EntityBase.php
[edit]
[-] RestTool.php
[edit]
[-] AuthenticationHelper.php
[edit]
[-] DefaultStorageStrategy.php
[edit]
[-] Document.php
[edit]