Files
amikhaylov 222e8984fc update
2026-05-28 12:24:30 +03:00

22 lines
399 B
PHP

<?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'] ?? [];
}
}