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.

Attributes
#[MapFrom]
'access_token'

$createdAt

public DateTimeImmutable|null $createdAt

Time the bearer token was created.

Attributes
#[CastWith]
\amcintosh\FreshBooks\Model\Caster\TimestampDateTimeImmutableCaster::class
#[MapFrom]
'created_at'

$refreshToken

public string|null $refreshToken

The authorized refresh token from the OAuth2 token response.

Attributes
#[MapFrom]
'refresh_token'

$scopes

public string|null $scopes

The scopes that the token is authorized for.

Attributes
#[MapFrom]
'scope'

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