Add queryGroupSlots method
This commit is contained in:
1 parent
b464b1ac2d
commit
c85e36f1cb
1 file changed
+13
@@ -123,6 +123,19 @@ class SlotDbClient
|
|||||||
return $data;
|
return $data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return slots and properties from members of $groupId
|
||||||
|
*
|
||||||
|
* @param string $groupId
|
||||||
|
* @return array<string,mixed>
|
||||||
|
*/
|
||||||
|
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
|
public function updateGroup(string $groupId, array $props): array
|
||||||
{
|
{
|
||||||
$res = $this->post("/group/{$groupId}", $props);
|
$res = $this->post("/group/{$groupId}", $props);
|
||||||
|
|||||||
Reference in new issue
Block a user