This commit is contained in:
amikhaylov
2026-05-28 12:24:30 +03:00
parent 8f3cc468b9
commit 222e8984fc
5 changed files with 73 additions and 27 deletions
@@ -0,0 +1,21 @@
<?php
declare(strict_types=1);
namespace App\Library\VK\Resources;
use App\Library\VK\VkApiClient;
class GroupResource
{
public function __construct(private VkApiClient $api) {}
public function getById(string $groupId): array
{
$result = $this->api->call('groups.getById', [
'group_id' => $groupId,
]);
return $result['response'] ?? [];
}
}