WorkOS PHP SDK

PipeConnectedAccount
in package
implements JsonSerializable uses JsonSerializableTrait

Read onlyYes

Table of Contents

Interfaces

JsonSerializable

Properties

$createdAt  : DateTimeImmutable
An ISO 8601 timestamp.
$dataIntegrationId  : string
The unique ID of the data integration.
$id  : string
The unique ID of the connected account.
$object  : string
The connected account object.
$organizationId  : string|null
The ID of the Organization the connected account belongs to.
$providerSlug  : string
The provider slug for this connected account.
$scopes  : array<string|int, string>
The OAuth scopes granted for this connected account.
$state  : PipeConnectedAccountState
The state of the connected account.
$updatedAt  : DateTimeImmutable
An ISO 8601 timestamp.
$userId  : string|null
The ID of the User the connected account belongs to.

Methods

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

Properties

$dataIntegrationId

The unique ID of the data integration.

public string $dataIntegrationId

$organizationId

The ID of the Organization the connected account belongs to.

public string|null $organizationId

$scopes

The OAuth scopes granted for this connected account.

public array<string|int, string> $scopes

Methods

__construct()

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

fromArray()

public static fromArray(array<string|int, mixed> $data) : self
Parameters
$data : array<string|int, mixed>
Return values
self

jsonSerialize()

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

toArray()

public toArray() : array<string|int, mixed>
Return values
array<string|int, mixed>
On this page

Search results