WorkOS PHP SDK

DataIntegrationCredentialsResponseCredential
in package
implements JsonSerializable uses JsonSerializableTrait

Read onlyYes

The credential object containing the vended secret.

Table of Contents

Interfaces

JsonSerializable

Properties

$authMethod  : string
The authentication method for this credential. Additional values may be added in the future; handle unknown values gracefully.
$expiresAt  : string|null
The ISO-8601 formatted timestamp indicating when the credential 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 credential object.
$scopes  : array<string|int, string>
The scopes granted to the access token.
$value  : string
The OAuth access token.

Methods

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

Properties

Methods

__construct()

public __construct(string $object, string $authMethod, string $value, string|null $expiresAt, array<string|int, mixed> $scopes, array<string|int, mixed> $missingScopes) : mixed
Parameters
$object : string
$authMethod : string
$value : string
$expiresAt : string|null
$scopes : array<string|int, mixed>
$missingScopes : array<string|int, mixed>

jsonSerialize()

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

Search results