diff --git a/OMGService.php b/OMGService.php index ded33e4..453cfdd 100644 --- a/OMGService.php +++ b/OMGService.php @@ -39,7 +39,7 @@ class OMGService { CURLOPT_TIMEOUT => $this->timeout, CURLOPT_HTTPHEADER => [ 'Content-Type: application/json', - 'Authorization: Bearer ' . $this->apiKey + 'Authorization: ' . $this->apiKey // Send API key directly (not "Bearer") ] ]); diff --git a/process-csv.php b/process-csv.php index 793e9df..1831b40 100644 --- a/process-csv.php +++ b/process-csv.php @@ -132,7 +132,7 @@ try { 'details' => $projectResult['details'] ?? '', 'action' => $projectResult['action'] ?? 'Check OMG API configuration', 'httpCode' => $projectResult['httpCode'] ?? 0, - 'endpoint' => $omgService->config['base_url'] . '/getProject?project_number=' . $campaignNumber, + 'endpoint' => 'https://api2.omg.oliver.solutions/loreal/v1/getProject?project_number=' . $campaignNumber, 'progress' => $progress ]); exit;