DataIntegrationAccessTokenResponseAccessToken
in package
implements
JsonSerializable
uses
JsonSerializableTrait
Read onlyYes
The [access token](https://workos.com/docs/reference/pipes/access-token) object, present when `active` is `true`.
Table of Contents
Interfaces
- JsonSerializable
Properties
- $accessToken : string
- The OAuth access token for the connected integration.
- $expiresAt : string|null
- The ISO-8601 formatted timestamp indicating when the access token expires.
- $missingScopes : array<string|int, string>
- If the integration has requested scopes that aren't present on the access token, they're listed here.
- $object : string
- Distinguishes the access token object.
- $scopes : array<string|int, string>
- The scopes granted to the access token.
Methods
- __construct() : mixed
- fromArray() : self
- jsonSerialize() : array<string|int, mixed>
- toArray() : array<string|int, mixed>
Properties
$accessToken
The OAuth access token for the connected integration.
public
string
$accessToken
$expiresAt
The ISO-8601 formatted timestamp indicating when the access token expires.
public
string|null
$expiresAt
$missingScopes
If the integration has requested scopes that aren't present on the access token, they're listed here.
public
array<string|int, string>
$missingScopes
$object
Distinguishes the access token object.
public
string
$object
$scopes
The scopes granted to the access token.
public
array<string|int, string>
$scopes
Methods
__construct()
public
__construct(string $object, string $accessToken, string|null $expiresAt, array<string|int, mixed> $scopes, array<string|int, mixed> $missingScopes) : mixed
Parameters
- $object : string
- $accessToken : string
- $expiresAt : string|null
- $scopes : array<string|int, mixed>
- $missingScopes : array<string|int, mixed>
fromArray()
public
static fromArray(array<string|int, mixed> $data) : self
Parameters
- $data : array<string|int, mixed>
Return values
selfjsonSerialize()
public
jsonSerialize() : array<string|int, mixed>
Return values
array<string|int, mixed>toArray()
public
toArray() : array<string|int, mixed>