Add queryGroupSlots method
This commit is contained in:
@ -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