final class AccountController extends Controller

Контроллер для управления аккаунтами.

Этот класс предоставляет методы для взаимодействия с данными аккаунтов, включая получение информации об аккаунтах, друзьях, подписчиках и группах.

Traits

AuthorizesRequests
DispatchesJobs
ValidatesRequests

Methods

__construct(LoggingServiceInterface $loggingService, VkClientService $vkClient, AccountRepositoryInterface $accountRepository)

No description

JsonResponse
fetchAccountData(array|string $ids)

Получить данные аккаунта по ID.

JsonResponse
fetchGroupData(int $id)

Получить данные группы по ID.

JsonResponse
fetchAccountFollowers(int $id, int $limit = 6)

Получить подписчиков аккаунта.

JsonResponse
fetchAccountFriends(int $id, int $limit = 6)

Получить друзей аккаунта.

JsonResponse
fetchAccountCountFriends(int $accountId, string $ownerId)

Получить количество друзей аккаунта.

JsonResponse
fetchAccountNewsfeed(Request $request)

Получить новостную ленту аккаунта.

JsonResponse
addLike(Request $request)

Добавить лайк к посту.

Details

at line 24
__construct(LoggingServiceInterface $loggingService, VkClientService $vkClient, AccountRepositoryInterface $accountRepository)

No description

Parameters

LoggingServiceInterface $loggingService
VkClientService $vkClient
AccountRepositoryInterface $accountRepository

at line 37
JsonResponse fetchAccountData(array|string $ids)

Получить данные аккаунта по ID.

Parameters

array|string $ids

Идентификатор(ы) аккаунта(ов).

Return Value

JsonResponse

Exceptions

VkException

at line 81
JsonResponse fetchGroupData(int $id)

Получить данные группы по ID.

Parameters

int $id

Идентификатор группы.

Return Value

JsonResponse

Exceptions

VkException

at line 94
JsonResponse fetchAccountFollowers(int $id, int $limit = 6)

Получить подписчиков аккаунта.

Parameters

int $id

Идентификатор аккаунта.

int $limit

Лимит количества подписчиков для возврата.

Return Value

JsonResponse

Exceptions

VkException

at line 113
JsonResponse fetchAccountFriends(int $id, int $limit = 6)

Получить друзей аккаунта.

Parameters

int $id

Идентификатор аккаунта.

int $limit

Лимит количества друзей для возврата.

Return Value

JsonResponse

Exceptions

VkException

at line 132
JsonResponse fetchAccountCountFriends(int $accountId, string $ownerId)

Получить количество друзей аккаунта.

Parameters

int $accountId

Идентификатор аккаунта для запроса.

string $ownerId

Идентификатор владельца аккаунта.

Return Value

JsonResponse

Exceptions

VkException

at line 151
JsonResponse fetchAccountNewsfeed(Request $request)

Получить новостную ленту аккаунта.

Parameters

Request $request

Запрос, содержащий параметры для получения новостной ленты.

Return Value

JsonResponse

Exceptions

VkException

at line 213
JsonResponse addLike(Request $request)

Добавить лайк к посту.

Parameters

Request $request

Запрос, содержащий данные для добавления лайка.

Return Value

JsonResponse

Exceptions

VkException