WorkOS PHP SDK

DataIntegrationsListResponseDataConnectedAccount
in package
implements JsonSerializable uses JsonSerializableTrait

Read onlyYes

Table of Contents

Interfaces

JsonSerializable

Properties

$createdAt  : string
The timestamp when the connection was created.
$id  : string
The unique identifier of the connected account.
$object  : string
Distinguishes the connected account object.
$organizationId  : string|null
The [Organization](https://workos.com/docs/reference/organization) identifier associated with this connection, or `null` if not scoped to an organization.
$scopes  : array<string|int, string>
The OAuth scopes granted for this connection.
$state  : ConnectedAccountState
The state of the connected account: - `connected`: The connection is active and tokens are valid.
$updatedAt  : string
The timestamp when the connection was last updated.
$userId  : string|null
The [User](https://workos.com/docs/reference/authkit/user) identifier associated with this connection.
$userlandUserId  : string|null
Use `user_id` instead.

Methods

__construct()  : mixed
fromArray()  : self
jsonSerialize()  : array<string|int, mixed>
toArray()  : array<string|int, mixed>

Properties

$organizationId

The [Organization](https://workos.com/docs/reference/organization) identifier associated with this connection, or `null` if not scoped to an organization.

public string|null $organizationId

$state

The state of the connected account: - `connected`: The connection is active and tokens are valid.

public ConnectedAccountState $state
  • needs_reauthorization: The user needs to reauthorize the connection, typically because required scopes have changed.
  • disconnected: The connection has been disconnected.

Methods

__construct()

public __construct(string $object, string $id, string|null $userId, string|null $organizationId, array<string|int, mixed> $scopes, ConnectedAccountState $state, string $createdAt, string $updatedAt, string|null $userlandUserId) : mixed
Parameters
$object : string
$id : string
$userId : string|null
$organizationId : string|null
$scopes : array<string|int, mixed>
$state : ConnectedAccountState
$createdAt : string
$updatedAt : string
$userlandUserId : string|null

jsonSerialize()

public jsonSerialize() : array<string|int, mixed>
Return values
array<string|int, mixed>

        
On this page

Search results