freshbooks-php-sdk

AuthorizationToken extends DataTransferObject

Authorization data including the OAuth bearer token, expiry, and refresh token.

Tags
link
https://www.freshbooks.com/api/authentication

Table of Contents

Properties

$accessToken  : string|null
$createdAt  : DateTimeImmutable|null
$expiresIn  : int|null
$refreshToken  : string|null
$scopes  : string|null

Methods

getExpiresAt()  : DateTimeImmutable

Properties

$accessToken

public string|null $accessToken

The authorized bearer token from the OAuth2 token response.

$createdAt

public DateTimeImmutable|null $createdAt

Time the bearer token was created.

$refreshToken

public string|null $refreshToken

The authorized refresh token from the OAuth2 token response.

Methods

getExpiresAt()

public getExpiresAt() : DateTimeImmutable
Tags
see
InvoiceStatus

for a value constants.

Return values
DateTimeImmutable

Time the bearer token expires at.


        
On this page

Search results