From 4f74233c8dfc5d0c6cad7ca885df0813a835dd20 Mon Sep 17 00:00:00 2001 From: Inervo Date: Sun, 27 Oct 2024 20:23:37 +0100 Subject: [PATCH] Fixed incorrect api reference The api URL is server/statistics, and no more server-info/statistics https://immich.app/docs/api/get-server-statistics --- Immich/Immich.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Immich/Immich.php b/Immich/Immich.php index 704d4963ec..b61624f5ea 100644 --- a/Immich/Immich.php +++ b/Immich/Immich.php @@ -22,7 +22,7 @@ public function test() "x-api-key" => $this->config->api_key, ], ]; - $test = parent::appTest($this->url("server-info/statistics"), $attrs); + $test = parent::appTest($this->url("server/statistics"), $attrs); echo $test->status; } @@ -35,7 +35,7 @@ public function livestats() "x-api-key" => $this->config->api_key, ], ]; - $res = parent::execute($this->url("server-info/statistics"), $attrs); + $res = parent::execute($this->url("server/statistics"), $attrs); $details = json_decode($res->getBody()); $data = [];