update
This commit is contained in:
@@ -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'] ?? [];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user