Skip to content

Commit 1b520d1

Browse files
feat(api): Update env var name
1 parent daaa7f3 commit 1b520d1

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
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: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ import com.imagekit.api.models.files.FileUploadParams;
5252
import com.imagekit.api.models.files.FileUploadResponse;
5353
import java.io.ByteArrayInputStream;
5454

55-
// Configures using the `imagekit.imagekitPrivateApiKey`, `imagekit.optionalImagekitIgnoresThis`, `imagekit.imagekitWebhookSecret` and `imagekit.baseUrl` system properties
56-
// Or configures using the `IMAGEKIT_PRIVATE_API_KEY`, `OPTIONAL_IMAGEKIT_IGNORES_THIS`, `IMAGEKIT_WEBHOOK_SECRET` and `IMAGE_KIT_BASE_URL` environment variables
55+
// Configures using the `imagekit.imagekitPrivateKey`, `imagekit.optionalImagekitIgnoresThis`, `imagekit.imagekitWebhookSecret` and `imagekit.baseUrl` system properties
56+
// Or configures using the `IMAGEKIT_PRIVATE_KEY`, `OPTIONAL_IMAGEKIT_IGNORES_THIS`, `IMAGEKIT_WEBHOOK_SECRET` and `IMAGE_KIT_BASE_URL` environment variables
5757
ImageKitClient client = ImageKitOkHttpClient.fromEnv();
5858

5959
FileUploadParams params = FileUploadParams.builder()
@@ -71,8 +71,8 @@ Configure the client using system properties or environment variables:
7171
import com.imagekit.api.client.ImageKitClient;
7272
import com.imagekit.api.client.okhttp.ImageKitOkHttpClient;
7373

74-
// Configures using the `imagekit.imagekitPrivateApiKey`, `imagekit.optionalImagekitIgnoresThis`, `imagekit.imagekitWebhookSecret` and `imagekit.baseUrl` system properties
75-
// Or configures using the `IMAGEKIT_PRIVATE_API_KEY`, `OPTIONAL_IMAGEKIT_IGNORES_THIS`, `IMAGEKIT_WEBHOOK_SECRET` and `IMAGE_KIT_BASE_URL` environment variables
74+
// Configures using the `imagekit.imagekitPrivateKey`, `imagekit.optionalImagekitIgnoresThis`, `imagekit.imagekitWebhookSecret` and `imagekit.baseUrl` system properties
75+
// Or configures using the `IMAGEKIT_PRIVATE_KEY`, `OPTIONAL_IMAGEKIT_IGNORES_THIS`, `IMAGEKIT_WEBHOOK_SECRET` and `IMAGE_KIT_BASE_URL` environment variables
7676
ImageKitClient client = ImageKitOkHttpClient.fromEnv();
7777
```
7878

@@ -95,8 +95,8 @@ import com.imagekit.api.client.ImageKitClient;
9595
import com.imagekit.api.client.okhttp.ImageKitOkHttpClient;
9696

9797
ImageKitClient client = ImageKitOkHttpClient.builder()
98-
// Configures using the `imagekit.imagekitPrivateApiKey`, `imagekit.optionalImagekitIgnoresThis`, `imagekit.imagekitWebhookSecret` and `imagekit.baseUrl` system properties
99-
// Or configures using the `IMAGEKIT_PRIVATE_API_KEY`, `OPTIONAL_IMAGEKIT_IGNORES_THIS`, `IMAGEKIT_WEBHOOK_SECRET` and `IMAGE_KIT_BASE_URL` environment variables
98+
// Configures using the `imagekit.imagekitPrivateKey`, `imagekit.optionalImagekitIgnoresThis`, `imagekit.imagekitWebhookSecret` and `imagekit.baseUrl` system properties
99+
// Or configures using the `IMAGEKIT_PRIVATE_KEY`, `OPTIONAL_IMAGEKIT_IGNORES_THIS`, `IMAGEKIT_WEBHOOK_SECRET` and `IMAGE_KIT_BASE_URL` environment variables
100100
.fromEnv()
101101
.privateKey("My Private Key")
102102
.build();
@@ -106,7 +106,7 @@ See this table for the available options:
106106

107107
| Setter | System property | Environment variable | Required | Default value |
108108
| --------------- | -------------------------------------- | -------------------------------- | -------- | --------------------------- |
109-
| `privateKey` | `imagekit.imagekitPrivateApiKey` | `IMAGEKIT_PRIVATE_API_KEY` | true | - |
109+
| `privateKey` | `imagekit.imagekitPrivateKey` | `IMAGEKIT_PRIVATE_KEY` | true | - |
110110
| `password` | `imagekit.optionalImagekitIgnoresThis` | `OPTIONAL_IMAGEKIT_IGNORES_THIS` | false | `"do_not_set"` |
111111
| `webhookSecret` | `imagekit.imagekitWebhookSecret` | `IMAGEKIT_WEBHOOK_SECRET` | false | - |
112112
| `baseUrl` | `imagekit.baseUrl` | `IMAGE_KIT_BASE_URL` | true | `"https://api.imagekit.io"` |
@@ -158,8 +158,8 @@ import com.imagekit.api.models.files.FileUploadResponse;
158158
import java.io.ByteArrayInputStream;
159159
import java.util.concurrent.CompletableFuture;
160160

161-
// Configures using the `imagekit.imagekitPrivateApiKey`, `imagekit.optionalImagekitIgnoresThis`, `imagekit.imagekitWebhookSecret` and `imagekit.baseUrl` system properties
162-
// Or configures using the `IMAGEKIT_PRIVATE_API_KEY`, `OPTIONAL_IMAGEKIT_IGNORES_THIS`, `IMAGEKIT_WEBHOOK_SECRET` and `IMAGE_KIT_BASE_URL` environment variables
161+
// Configures using the `imagekit.imagekitPrivateKey`, `imagekit.optionalImagekitIgnoresThis`, `imagekit.imagekitWebhookSecret` and `imagekit.baseUrl` system properties
162+
// Or configures using the `IMAGEKIT_PRIVATE_KEY`, `OPTIONAL_IMAGEKIT_IGNORES_THIS`, `IMAGEKIT_WEBHOOK_SECRET` and `IMAGE_KIT_BASE_URL` environment variables
163163
ImageKitClient client = ImageKitOkHttpClient.fromEnv();
164164

165165
FileUploadParams params = FileUploadParams.builder()
@@ -179,8 +179,8 @@ import com.imagekit.api.models.files.FileUploadResponse;
179179
import java.io.ByteArrayInputStream;
180180
import java.util.concurrent.CompletableFuture;
181181

182-
// Configures using the `imagekit.imagekitPrivateApiKey`, `imagekit.optionalImagekitIgnoresThis`, `imagekit.imagekitWebhookSecret` and `imagekit.baseUrl` system properties
183-
// Or configures using the `IMAGEKIT_PRIVATE_API_KEY`, `OPTIONAL_IMAGEKIT_IGNORES_THIS`, `IMAGEKIT_WEBHOOK_SECRET` and `IMAGE_KIT_BASE_URL` environment variables
182+
// Configures using the `imagekit.imagekitPrivateKey`, `imagekit.optionalImagekitIgnoresThis`, `imagekit.imagekitWebhookSecret` and `imagekit.baseUrl` system properties
183+
// Or configures using the `IMAGEKIT_PRIVATE_KEY`, `OPTIONAL_IMAGEKIT_IGNORES_THIS`, `IMAGEKIT_WEBHOOK_SECRET` and `IMAGE_KIT_BASE_URL` environment variables
184184
ImageKitClientAsync client = ImageKitOkHttpClientAsync.fromEnv();
185185

186186
FileUploadParams params = FileUploadParams.builder()

image-kit-java-core/src/main/kotlin/com/imagekit/api/core/ClientOptions.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ private constructor(
416416
*
417417
* |Setter |System property |Environment variable |Required|Default value |
418418
* |---------------|--------------------------------------|--------------------------------|--------|---------------------------|
419-
* |`privateKey` |`imagekit.imagekitPrivateApiKey` |`IMAGEKIT_PRIVATE_API_KEY` |true |- |
419+
* |`privateKey` |`imagekit.imagekitPrivateKey` |`IMAGEKIT_PRIVATE_KEY` |true |- |
420420
* |`password` |`imagekit.optionalImagekitIgnoresThis`|`OPTIONAL_IMAGEKIT_IGNORES_THIS`|false |`"do_not_set"` |
421421
* |`webhookSecret`|`imagekit.imagekitWebhookSecret` |`IMAGEKIT_WEBHOOK_SECRET` |false |- |
422422
* |`baseUrl` |`imagekit.baseUrl` |`IMAGE_KIT_BASE_URL` |true |`"https://api.imagekit.io"`|
@@ -427,8 +427,8 @@ private constructor(
427427
(System.getProperty("imagekit.baseUrl") ?: System.getenv("IMAGE_KIT_BASE_URL"))?.let {
428428
baseUrl(it)
429429
}
430-
(System.getProperty("imagekit.imagekitPrivateApiKey")
431-
?: System.getenv("IMAGEKIT_PRIVATE_API_KEY"))
430+
(System.getProperty("imagekit.imagekitPrivateKey")
431+
?: System.getenv("IMAGEKIT_PRIVATE_KEY"))
432432
?.let { privateKey(it) }
433433
(System.getProperty("imagekit.optionalImagekitIgnoresThis")
434434
?: System.getenv("OPTIONAL_IMAGEKIT_IGNORES_THIS"))

0 commit comments

Comments
 (0)