Temporal Docs PHP SDK API Version 2.20 (latest release) Release notes

Documentation

ServiceCredentials
in package
uses CloneWith

FinalYes

DTO with credential configuration for connecting RoadRunner to the Temporal service.

Table of Contents

Properties

$apiKey  : string

Methods

create()  : self
withApiKey()  : static
Set the authentication token for API calls.
__construct()  : mixed

Properties

Methods

withApiKey()

Set the authentication token for API calls.

public withApiKey(string $key) : static

To update the API key in runtime, call the UpdateAPIKey RPC method with the new key:

 $result = \Temporal\Worker\Transport\Goridge::create()->call(
     'temporal.UpdateAPIKey',
     $newApiKey,
 );
Parameters
$key : string
Tags
link
https://docs.temporal.io/cloud/api-keys
since

SDK 2.12.0

RoadRunner 2024.3.0

Return values
static
On this page

Search results