final class AccountController extends Controller

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

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

Traits

AuthorizesRequests
DispatchesJobs
ValidatesRequests

Methods

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

No description

JsonResponse
fetchAllAccounts()

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

JsonResponse
fetchAccountData(string|array $ids)

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

JsonResponse
fetchGroupData(string $id)

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

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

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

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

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

JsonResponse
fetchAccountCountFriends(string $accountId, string $ownerId)

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

JsonResponse
fetchAccountInfo(string $access_token)

Получить информацию об аккаунте.

JsonResponse
fetchAccountNewsfeed(Request $request)

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

JsonResponse
setAccountData(Request $request)

Установить данные аккаунта.

JsonResponse
addLike(Request $request)

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

JsonResponse
deleteAccount(string $id)

Удалить аккаунт.

Details

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

No description

Parameters

LoggingServiceInterface $loggingService
VkClientService $vkClient
AccountRepositoryInterface $accountRepository

at line 36
JsonResponse fetchAllAccounts()

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

Return Value

JsonResponse

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

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

Parameters

string|array $ids

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

Return Value

JsonResponse

Exceptions

VkException

at line 60
JsonResponse fetchGroupData(string $id)

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

Parameters

string $id

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

Return Value

JsonResponse

Exceptions

VkException

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

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

Parameters

string $id

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

int $limit

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

Return Value

JsonResponse

Exceptions

VkException

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

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

Parameters

string $id

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

int $limit

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

Return Value

JsonResponse

Exceptions

VkException

at line 99
JsonResponse fetchAccountCountFriends(string $accountId, string $ownerId)

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

Parameters

string $accountId

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

string $ownerId

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

Return Value

JsonResponse

Exceptions

VkException

at line 118
JsonResponse fetchAccountInfo(string $access_token)

Получить информацию об аккаунте.

Parameters

string $access_token

Токен доступа аккаунта.

Return Value

JsonResponse

Exceptions

VkException

at line 130
JsonResponse fetchAccountNewsfeed(Request $request)

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

Parameters

Request $request

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

Return Value

JsonResponse

Exceptions

VkException

at line 146
JsonResponse setAccountData(Request $request)

Установить данные аккаунта.

Parameters

Request $request

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

Return Value

JsonResponse

Exceptions

VkException

at line 158
JsonResponse addLike(Request $request)

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

Parameters

Request $request

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

Return Value

JsonResponse

Exceptions

VkException

at line 181
JsonResponse deleteAccount(string $id)

Удалить аккаунт.

Parameters

string $id

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

Return Value

JsonResponse