You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -414,6 +418,93 @@ foreach ($responses as $response) {
414
418
```
415
419
<!-- End Pagination [pagination] -->
416
420
421
+
<!-- Start Retries [retries] -->
422
+
## Retries
423
+
424
+
Some of the endpoints in this SDK support retries. If you use the SDK without any configuration, it will fall back to the default retry strategy provided by the API. However, the default retry strategy can be overridden on a per-operation basis, or across the entire SDK.
425
+
426
+
To change the default retry strategy for a single API call, simply provide an `Options` object built with a `RetryConfig` object to the call:
427
+
```php
428
+
declare(strict_types=1);
429
+
430
+
require 'vendor/autoload.php';
431
+
432
+
use StackOne\client;
433
+
use StackOne\client\Models\Components;
434
+
use StackOne\client\Utils\Retry;
435
+
436
+
$sdk = client\StackOne::builder()
437
+
->setSecurity(
438
+
new Components\Security(
439
+
username: '',
440
+
password: '',
441
+
)
442
+
)
443
+
->build();
444
+
445
+
$request = new Components\ConnectSessionAuthenticate(
If you'd like to override the default retry strategy for all operations that support retries, you can pass a `RetryConfig` object to the `SDKBuilder->setRetryConfig` function when initializing the SDK:
467
+
```php
468
+
declare(strict_types=1);
469
+
470
+
require 'vendor/autoload.php';
471
+
472
+
use StackOne\client;
473
+
use StackOne\client\Models\Components;
474
+
use StackOne\client\Utils\Retry;
475
+
476
+
$sdk = client\StackOne::builder()
477
+
->setRetryConfig(
478
+
new Retry\RetryConfigBackoff(
479
+
initialInterval: 1,
480
+
maxInterval: 50,
481
+
exponent: 1.1,
482
+
maxElapsedTime: 100,
483
+
retryConnectionErrors: false,
484
+
)
485
+
)
486
+
->setSecurity(
487
+
new Components\Security(
488
+
username: '',
489
+
password: '',
490
+
)
491
+
)
492
+
->build();
493
+
494
+
$request = new Components\ConnectSessionAuthenticate(
|`value`|[?Components\AdditionalDataValue](../../Models/Components/AdditionalDataValue.md)|:heavy_minus_sign:| The value of the additional data | This is additional data|
6
+
| Field | Type | Required | Description | Example |
|`value`|[string\|array\|null](../../Models/Components/AdditionalDataValue.md)|:heavy_minus_sign:| The value of the additional data | This is additional data |
0 commit comments