Skip to content

Commit

Permalink
chore: add client cheat sheet
Browse files Browse the repository at this point in the history
  • Loading branch information
pgautier404 committed Jul 16, 2024
1 parent 8524b96 commit 35e1076
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions examples/storage-cheat-sheet.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php
declare(strict_types=1);
require "vendor/autoload.php";

use Momento\Auth\CredentialProvider;
use Momento\Config\Configurations\Storage\Laptop;
use Momento\Storage\PreviewStorageClient;

$storageClient = new PreviewStorageClient(
Laptop::latest(),
CredentialProvider::fromEnvironmentVariable("MOMENTO_API_KEY")
);

0 comments on commit 35e1076

Please sign in to comment.