From bee9457d9da382621e3cc99ffd4b75af443ad27b Mon Sep 17 00:00:00 2001 From: Christopher Vagnetoft Date: Fri, 14 Mar 2025 00:31:13 +0100 Subject: [PATCH] Group query functions --- src/SlotDbClient.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/SlotDbClient.php b/src/SlotDbClient.php index 71ebebd..c0da8fb 100644 --- a/src/SlotDbClient.php +++ b/src/SlotDbClient.php @@ -119,12 +119,16 @@ class SlotDbClient */ public function queryGroup(string $groupId): array { - throw new \Exception("Not implemented"); + $res = $this->get("/group/{$groupId}"); + $data = json_decode($res->getBody(), true); + return $data; } public function updateGroup(string $groupId, array $props): array { - throw new \Exception("Not implemented"); + $res = $this->post("/group/{$groupId}", $props); + $data = json_decode($res->getBody(), true); + return $data; } public function deleteGroup(string $groupId): void