Skip to content

Commit a3edfdd

Browse files
feat(api): Update env var name
1 parent 3042a50 commit a3edfdd

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 42
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/imagekit-inc%2Fimagekit-d1a3e6dfc45ae832b6b14a0aef25878985c679fa9f48c1470df188b1578ba648.yml
33
openapi_spec_hash: 1d382866fce3284f26d341f112988d9d
4-
config_hash: 51a9632be24fc533ad69a5bd56934651
4+
config_hash: f1fafe5e607e996b58b67fd1dd3e74fa

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Parameters with a default value must be set by name.
4848
use ImageKit\Client;
4949

5050
$client = new Client(
51-
privateKey: getenv("IMAGEKIT_PRIVATE_API_KEY") ?: "My Private Key",
51+
privateKey: getenv("IMAGEKIT_PRIVATE_KEY") ?: "My Private Key",
5252
password: getenv("OPTIONAL_IMAGEKIT_IGNORES_THIS") ?: "do_not_set",
5353
);
5454

src/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public function __construct(
7070
?string $baseUrl = null,
7171
) {
7272
$this->privateKey = (string) (
73-
$privateKey ?? getenv('IMAGEKIT_PRIVATE_API_KEY')
73+
$privateKey ?? getenv('IMAGEKIT_PRIVATE_KEY')
7474
);
7575
$this->password = (string) (
7676
$password ?? getenv('OPTIONAL_IMAGEKIT_IGNORES_THIS') ?: 'do_not_set'

0 commit comments

Comments
 (0)