From c85e36f1cb035b2f854bfe01b03da739d5decf66 Mon Sep 17 00:00:00 2001 From: Christopher Vagnetoft Date: Fri, 14 Mar 2025 01:36:19 +0100 Subject: [PATCH] Add queryGroupSlots method --- src/SlotDbClient.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/SlotDbClient.php b/src/SlotDbClient.php index 4570f14..e24e40e 100644 --- a/src/SlotDbClient.php +++ b/src/SlotDbClient.php @@ -123,6 +123,19 @@ class SlotDbClient return $data; } + /** + * Return slots and properties from members of $groupId + * + * @param string $groupId + * @return array + */ + public function queryGroupSlots(string $groupId): array + { + $res = $this->get("/group/{$groupId}/members"); + $data = json_decode($res->getBody(), true); + return $data; + } + public function updateGroup(string $groupId, array $props): array { $res = $this->post("/group/{$groupId}", $props);