From: Vincent Vanwaelscappel Date: Wed, 15 Oct 2025 10:42:53 +0000 (+0200) Subject: wait #7646 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=HEAD;p=cubist_dsn.git wait #7646 --- diff --git a/src/Api.php b/src/Api.php index f2c853f..adda918 100644 --- a/src/Api.php +++ b/src/Api.php @@ -24,8 +24,9 @@ class Api { $this->client = new Client(); $this->token = cache()->remember('dsn_' . $siret, 7200, function () use ($siret, $name, $firstname, $password, $service) { + $auth= $this->_authRequest($siret, $name, $firstname, $password, $service); $response = $this->_request('POST', self::AUTH_URL, - ['body' => $this->_authRequest($siret, $name, $firstname, $password, $service), 'headers' => ['Content-Type' => 'application/xml', 'User-Agent' => self::USER_AGENT]] + ['body' =>$auth, 'headers' => ['Content-Type' => 'application/xml', 'User-Agent' => self::USER_AGENT]] ); return $response->getBody()->getContents(); });