$docbee_user, // Benutzername 'password' => $docbee_pass, // Passwort 'lifeTime' => $docbee_time, // Gültigkeit in Minuten 'lifeTimeRefresh' => true // Token-Lebenszeit bei jedem Call verlängern ]; $ch = curl_init($loginEndpoint); curl_setopt_array($ch, [ CURLOPT_RETURNTRANSFER => true, CURLOPT_POST => true, CURLOPT_HTTPHEADER => ['Content-Type: application/json', 'Accept: application/json'], CURLOPT_POSTFIELDS => json_encode($payload, JSON_UNESCAPED_SLASHES|JSON_UNESCAPED_UNICODE), CURLOPT_TIMEOUT => 20, ]); $response = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); if ($response === false) { throw new RuntimeException('cURL error: ' . curl_error($ch)); } curl_close($ch); if ($httpCode !== 200) { // 401 bei falschen Credentials usw. throw new RuntimeException("Login fehlgeschlagen, HTTP $httpCode: $response"); } $data = json_decode($response, true, 512, JSON_THROW_ON_ERROR); $docbee_token = $data['access_token'] ?? null; if (!$docbee_token) { throw new RuntimeException('Kein access_token in der Antwort gefunden.'); } ?> QA System

QA System

Keine Vorlage geladen
GitLab: nicht verbunden DocBee: unbekannt
Step Expected Status Kommentar/Evidenz