AccountVkontakte extends Account
Class AccountVkontakte
Table of Contents
Constants
- PROFILE_INFO_CACHE_TTL = 86400
- RESOURCE_LEAD = 'LEAD'
- TYPE_CODE = \Bitrix\Seo\LeadAds\Service::TYPE_VKONTAKTE
- URL_ACCOUNT_LIST = 'https://vk.com/groups?tab=admin'
- URL_INFO = 'https://vk.com/page-19542789_53868676'
Methods
- __construct() : mixed
- Account constructor.
- checkNewAuthInfo() : bool
- clearCache() : void
- Clear profile cache
- create() : static
- getList() : Response
- Get list.
- getProfile() : array<string|int, mixed>|null
- Get profile.
- getProfileCached() : Response|array<string|int, mixed>
- Get profile cached.
- getRegionsList() : mixed
- getRequest() : Request
- getRowById() : array<string|int, mixed>|mixed|null
- Get row by id.
- getUrlAccountList() : string
- Get url account list.
- getUrlInfo() : string
- Get url info.
- hasPageAccount() : mixed
- loginCompletion() : mixed
- logout() : mixed
- normalizeListRow() : mixed
- setRequest() : mixed
- setService() : mixed
Constants
PROFILE_INFO_CACHE_TTL
public
mixed
PROFILE_INFO_CACHE_TTL
= 86400
RESOURCE_LEAD
public
mixed
RESOURCE_LEAD
= 'LEAD'
TYPE_CODE
public
mixed
TYPE_CODE
= \Bitrix\Seo\LeadAds\Service::TYPE_VKONTAKTE
URL_ACCOUNT_LIST
public
mixed
URL_ACCOUNT_LIST
= 'https://vk.com/groups?tab=admin'
URL_INFO
public
mixed
URL_INFO
= 'https://vk.com/page-19542789_53868676'
Methods
__construct()
Account constructor.
public
__construct([null|string $accountId = null ]) : mixed
Parameters
- $accountId : null|string = null
-
Account ID.
checkNewAuthInfo()
public
checkNewAuthInfo() : bool
Return values
boolclearCache()
Clear profile cache
public
clearCache() : void
Tags
create()
public
static create(mixed $type[, null $parameters = null ][, IService|null $service = null ]) : static
Parameters
- $type : mixed
- $parameters : null = null
- $service : IService|null = null
Return values
staticgetList()
Get list.
public
getList() : Response
Return values
ResponsegetProfile()
Get profile.
public
getProfile() : array<string|int, mixed>|null
Return values
array<string|int, mixed>|nullgetProfileCached()
Get profile cached.
public
getProfileCached() : Response|array<string|int, mixed>
Return values
Response|array<string|int, mixed>getRegionsList()
public
getRegionsList() : mixed
getRequest()
public
getRequest() : Request
Return values
RequestgetRowById()
Get row by id.
public
getRowById(string $id) : array<string|int, mixed>|mixed|null
Parameters
- $id : string
-
ID.
Return values
array<string|int, mixed>|mixed|nullgetUrlAccountList()
Get url account list.
public
static getUrlAccountList() : string
Return values
stringgetUrlInfo()
Get url info.
public
static getUrlInfo() : string
Return values
stringhasPageAccount()
public
hasPageAccount() : mixed
loginCompletion()
public
loginCompletion() : mixed
logout()
public
logout() : mixed
normalizeListRow()
public
static normalizeListRow(array<string|int, mixed> $row) : mixed
Parameters
- $row : array<string|int, mixed>
setRequest()
public
setRequest(Request $request) : mixed
Parameters
- $request : Request
setService()
public
setService(IService $service) : mixed
Parameters
- $service : IService