Skip to content

Commit e194d71

Browse files
small change in lib/CRMApi.md file
1 parent 8384e9a commit e194d71

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

lib/Api/CRMApi.php

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -352,14 +352,14 @@ protected function crmFilesIdDataGetRequest($id)
352352
}
353353

354354
// this endpoint requires API key authentication
355-
$api-Key = $this->config->getapi-KeyWithPrefix('api-Key');
356-
if ($api-Key !== null) {
357-
$headers['api-Key'] = $api-Key;
355+
$apiKey = $this->config->getApiKeyWithPrefix('api-key');
356+
if ($apiKey !== null) {
357+
$headers['api-key'] = $apiKey;
358358
}
359359
// this endpoint requires API key authentication
360-
$api-Key = $this->config->getapi-KeyWithPrefix('partnerKey');
361-
if ($api-Key !== null) {
362-
$headers['partnerKey'] = $api-Key;
360+
$apiKey = $this->config->getApiKeyWithPrefix('partner-key');
361+
if ($apiKey !== null) {
362+
$headers['partner-key'] = $apiKey;
363363
}
364364

365365
$defaultHeaders = [];
@@ -610,14 +610,14 @@ protected function crmFilesIdDeleteRequest($id)
610610
}
611611

612612
// this endpoint requires API key authentication
613-
$api-Key = $this->config->getapi-KeyWithPrefix('api-Key');
614-
if ($api-Key !== null) {
615-
$headers['api-Key'] = $api-Key;
613+
$apiKey = $this->config->getApiKeyWithPrefix('api-key');
614+
if ($apiKey !== null) {
615+
$headers['api-key'] = $apiKey;
616616
}
617617
// this endpoint requires API key authentication
618-
$api-Key = $this->config->getapi-KeyWithPrefix('partnerKey');
619-
if ($api-Key !== null) {
620-
$headers['partnerKey'] = $api-Key;
618+
$apiKey = $this->config->getApiKeyWithPrefix('partner-key');
619+
if ($apiKey !== null) {
620+
$headers['partner-key'] = $apiKey;
621621
}
622622

623623
$defaultHeaders = [];
@@ -868,14 +868,14 @@ protected function crmFilesIdGetRequest($id)
868868
}
869869

870870
// this endpoint requires API key authentication
871-
$api-Key = $this->config->getapi-KeyWithPrefix('api-Key');
872-
if ($api-Key !== null) {
873-
$headers['api-Key'] = $api-Key;
871+
$apiKey = $this->config->getApiKeyWithPrefix('api-key');
872+
if ($apiKey !== null) {
873+
$headers['api-key'] = $apiKey;
874874
}
875875
// this endpoint requires API key authentication
876-
$api-Key = $this->config->getapi-KeyWithPrefix('partnerKey');
877-
if ($api-Key !== null) {
878-
$headers['partnerKey'] = $api-Key;
876+
$apiKey = $this->config->getApiKeyWithPrefix('partner-key');
877+
if ($apiKey !== null) {
878+
$headers['partner-key'] = $apiKey;
879879
}
880880

881881
$defaultHeaders = [];
@@ -1161,14 +1161,14 @@ protected function crmFilesPostRequest($file, $dealsIds = null)
11611161
}
11621162

11631163
// this endpoint requires API key authentication
1164-
$api-Key = $this->config->getapi-KeyWithPrefix('api-Key');
1165-
if ($api-Key !== null) {
1166-
$headers['api-Key'] = $api-Key;
1164+
$apiKey = $this->config->getApiKeyWithPrefix('api-key');
1165+
if ($apiKey !== null) {
1166+
$headers['api-key'] = $apiKey;
11671167
}
11681168
// this endpoint requires API key authentication
1169-
$api-Key = $this->config->getapi-KeyWithPrefix('partnerKey');
1170-
if ($api-Key !== null) {
1171-
$headers['partnerKey'] = $api-Key;
1169+
$apiKey = $this->config->getApiKeyWithPrefix('partner-key');
1170+
if ($apiKey !== null) {
1171+
$headers['partner-key'] = $apiKey;
11721172
}
11731173

11741174
$defaultHeaders = [];

0 commit comments

Comments
 (0)