Skip to content

Latest commit

 

History

History
31 lines (25 loc) · 662 Bytes

USAGE.md

File metadata and controls

31 lines (25 loc) · 662 Bytes
declare(strict_types=1);

require 'vendor/autoload.php';

use Speakeasy\SpeakeasyClientSDK;
use Speakeasy\SpeakeasyClientSDK\Models\Operations;
use Speakeasy\SpeakeasyClientSDK\Models\Shared;

$sdk = SpeakeasyClientSDK\SDK::builder()
    ->setSecurity(
        new Shared\Security(
            apiKey: '<YOUR_API_KEY_HERE>',
        )
    )
    ->build();

$request = new Operations\ArchiveNamespaceRequest(
    namespaceName: '<value>',
);

$response = $sdk->artifacts->setArchived(
    request: $request
);

if ($response->statusCode === 200) {
    // handle response
}