|
18 | 18 |
|
19 | 19 | class Client extends BaseClient |
20 | 20 | { |
21 | | - public string $privateAPIKey; |
| 21 | + public string $privateKey; |
22 | 22 |
|
23 | 23 | public string $password; |
24 | 24 |
|
@@ -65,12 +65,12 @@ class Client extends BaseClient |
65 | 65 | public WebhooksService $webhooks; |
66 | 66 |
|
67 | 67 | public function __construct( |
68 | | - ?string $privateAPIKey = null, |
| 68 | + ?string $privateKey = null, |
69 | 69 | ?string $password = null, |
70 | 70 | ?string $baseUrl = null, |
71 | 71 | ) { |
72 | | - $this->privateAPIKey = (string) ( |
73 | | - $privateAPIKey ?? getenv('IMAGEKIT_PRIVATE_API_KEY') |
| 72 | + $this->privateKey = (string) ( |
| 73 | + $privateKey ?? getenv('IMAGEKIT_PRIVATE_API_KEY') |
74 | 74 | ); |
75 | 75 | $this->password = (string) ( |
76 | 76 | $password ?? getenv('OPTIONAL_IMAGEKIT_IGNORES_THIS') ?: 'do_not_set' |
@@ -110,12 +110,12 @@ public function __construct( |
110 | 110 | /** @return array<string, string> */ |
111 | 111 | protected function authHeaders(): array |
112 | 112 | { |
113 | | - if (!$this->privateAPIKey && !$this->password) { |
| 113 | + if (!$this->privateKey && !$this->password) { |
114 | 114 | return []; |
115 | 115 | } |
116 | 116 |
|
117 | 117 | $base64_credentials = base64_encode( |
118 | | - "{$this->privateAPIKey}:{$this->password}" |
| 118 | + "{$this->privateKey}:{$this->password}" |
119 | 119 | ); |
120 | 120 |
|
121 | 121 | return ['Authorization' => "Basic {$base64_credentials}"]; |
|
0 commit comments