vkapi

package module
v0.0.0-...-ae2bfbf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 5, 2020 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// APIVersion - используемая версия API
	APIVersion = "5.92"
	// APIMethodURL - URL запросов к API
	APIMethodURL = "https://api.vk.com/method/"
	// APITokenURL - URL oauth авторизации
	APITokenURL = "https://oauth.vk.com/access_token"
	// APIAuthURL - URL для oauth авторизации
	APIAuthURL = "https://oauth.vk.com/authorize"
)

Variables

View Source
var (
	// GroupAccessTokenReg - регуларка для получения id группы для которой получен токен
	GroupAccessTokenReg *regexp.Regexp
	// ObjLinkReg - регулярка для получения владельца и ид по ссылке
	ObjLinkReg *regexp.Regexp
	// InternalLinkReg - регулярка для получения данных из внутренних ссылок
	InternalLinkReg *regexp.Regexp
	// LinkDomainReg - регулярка для получения домена
	LinkDomainReg *regexp.Regexp
)

Functions

func DecryptToken

func DecryptToken(key string, encToken string) (token string, err error)

DecryptToken - расшифровываем токен

func EncryptToken

func EncryptToken(key string, token string) (encToken string, err error)

EncryptToken - шифруем токен

func GetAuthURL

func GetAuthURL(d AuthURLData) string

GetAuthURL - получаем ссылку для авторизации

func GetCriteriaJSON

func GetCriteriaJSON(d AdsGetTargetingStatsCriteria) (b []byte)

GetCriteriaJSON - формируем json для критериев тергетинга

func GetScreenNameFromLink(link string) (screenName string)

GetScreenNameFromLink - получаем screen_name из ссылке

func IframeCheckSign

func IframeCheckSign(r *http.Request, secret string) (ok bool)

IframeCheckSign - Проверка подписи ВК

func InitProm

func InitProm()

InitProm - инициализация прометея

func InitStatChan

func InitStatChan(l int) chan RqStatObj

InitStatChan - Создаем канал для аналитики

func StopAllQuery

func StopAllQuery()

StopAllQuery - Останавливаем все запросы

Types

type API

type API struct {
	AccessToken string

	ErrorToSkip []string
	sync.Mutex
	ExecuteErrors []ExecuteErrors
	ExecuteCode   string
	// contains filtered or unexported fields
}

API - главный объект

func (*API) AdsDeleteTargetGroup

func (vk *API) AdsDeleteTargetGroup(params map[string]string) (ans int, err error)

AdsDeleteTargetGroup - удаляем группу ретаргетинга

func (*API) AdsGetAccounts

func (vk *API) AdsGetAccounts(params map[string]string) (ans []AdsGetAccountsAns, err error)

AdsGetAccounts - Получаем список аккаунтов

func (*API) AdsGetAds

func (vk *API) AdsGetAds(params map[string]string) (ans []AdsGetAdsAns, err error)

AdsGetAds - Получаем список объявлений

func (*API) AdsGetAdsLayout

func (vk *API) AdsGetAdsLayout(params map[string]string) (ans []AdsGetAdsLayoutAns, err error)

AdsGetAdsLayout - Получаем список список объявлений

func (*API) AdsGetCampaigns

func (vk *API) AdsGetCampaigns(params map[string]string) (ans []AdsGetCampaignsAns, err error)

AdsGetCampaigns - Получаем список кампаний

func (*API) AdsGetDemographics

func (vk *API) AdsGetDemographics(params map[string]string) (ans []AdsGetDemographicsAns, err error)

AdsGetDemographics - Получаем статистику объявлений демографическую

func (*API) AdsGetStatistics

func (vk *API) AdsGetStatistics(params map[string]string) (ans []AdsGetStatisticsAns, err error)

AdsGetStatistics - Получаем статистику объявлений

func (*API) AdsGetSuggestions

func (vk *API) AdsGetSuggestions(params map[string]string) (ans []AdsGetSuggestionsAns, err error)

AdsGetSuggestions - получение подсказок к рекламе

func (*API) AdsGetTargetGroups

func (vk *API) AdsGetTargetGroups(params map[string]string) (ans []AdsGetTargetGroupsAns, err error)

AdsGetTargetGroups - получение групп ретаргета

func (*API) AdsGetTargetingStats

func (vk *API) AdsGetTargetingStats(params map[string]string) (ans AdsGetTargetingStatsAns, err error)

AdsGetTargetingStats - Смотрим размер аудитории

func (*API) AdsImportTargetContacts

func (vk *API) AdsImportTargetContacts(params map[string]string) (ans int, err error)

AdsImportTargetContacts - добавиление контактов в группу ретаргета

func (*API) AdsСreateTargetGroup

func (vk *API) AdsСreateTargetGroup(params map[string]string) (ans AdsСreateTargetGroupAns, err error)

AdsСreateTargetGroup - Создаем группу ретаргетинга

func (*API) BoardDeleteComment

func (vk *API) BoardDeleteComment(params map[string]string) (ans int, err error)

BoardDeleteComment - Удаляем комментарий из обсуждения

func (*API) BoardGetComments

func (vk *API) BoardGetComments(params map[string]string) (ans BoardGetCommentsAns, err error)

BoardGetComments - Возвращает список комментариев обсуждения.

func (*API) BoardGetTopics

func (vk *API) BoardGetTopics(params map[string]string) (ans BoardGetTopicsAns, err error)

BoardGetTopics - Возвращает список обсуждений.

func (*API) BoardRestoreComment

func (vk *API) BoardRestoreComment(params map[string]string) (ans int, err error)

BoardRestoreComment - восстанавливаем комментарий из обсуждения

func (*API) Execute

func (vk *API) Execute(code string) (r Response, err error)

Execute - пакетное выполнение запросов

func (*API) GetToken

func (vk *API) GetToken(d TokenData) (ans GetTokenAns, err error)

GetToken - Получение токена

func (*API) GetTokenGroup

func (vk *API) GetTokenGroup(d TokenData) (ans map[string]interface{}, err error)

GetTokenGroup - Получение токена группы

func (*API) GroupsAddCallbackServer

func (vk *API) GroupsAddCallbackServer(params map[string]string) (ans GroupsAddCallbackServerAns, err error)

GroupsAddCallbackServer - Добавляем callback сервер

func (*API) GroupsBan

func (vk *API) GroupsBan(params map[string]string) (ans int, err error)

GroupsBan - баним в сообществе

func (*API) GroupsDeleteCallbackServer

func (vk *API) GroupsDeleteCallbackServer(params map[string]string) (ans int, err error)

GroupsDeleteCallbackServer - удаляем callback сервер

func (*API) GroupsEditCallbackServer

func (vk *API) GroupsEditCallbackServer(params map[string]string) (ans int, err error)

GroupsEditCallbackServer - редактирование callback сервер

func (*API) GroupsGet

func (vk *API) GroupsGet(params map[string]string) (ans GroupsGetAns, err error)

GroupsGet - Получаем информацию о группах

func (*API) GroupsGetBanned

func (vk *API) GroupsGetBanned(params map[string]string) (ans GroupsGetBannedAns, err error)

GroupsGetBanned - Получаем инфу по забаненым

func (*API) GroupsGetByID

func (vk *API) GroupsGetByID(params map[string]string) (ans []GroupsGetByIDAns, err error)

GroupsGetByID - Получаем информацию о группах

func (*API) GroupsGetCallbackConfirmationCode

func (vk *API) GroupsGetCallbackConfirmationCode(params map[string]string) (ans GroupsGetCallbackConfirmationCodeAns, err error)

GroupsGetCallbackConfirmationCode - Получаем код подтверждения для сервера callback

func (*API) GroupsGetCallbackServers

func (vk *API) GroupsGetCallbackServers(params map[string]string) (ans GroupsGetCallbackServersAns, err error)

GroupsGetCallbackServers - Получаем информацию о callback серверах

func (*API) GroupsGetCallbackSettings

func (vk *API) GroupsGetCallbackSettings(params map[string]string) (ans GroupsGetCallbackSettingsAns, err error)

GroupsGetCallbackSettings - Получаем настройки callback сервера

func (*API) GroupsGetMembers

func (vk *API) GroupsGetMembers(params map[string]string) (ans GroupsGetMembersAns, err error)

GroupsGetMembers - Получаем информацию о подписчиках

func (*API) GroupsGetTokenPermissions

func (vk *API) GroupsGetTokenPermissions() (ans GroupsGetTokenPermissionsAns, err error)

GroupsGetTokenPermissions - Получаем информацию о правах токена

func (*API) GroupsIsMember

func (vk *API) GroupsIsMember(params map[string]string) (ans []GroupsIsMemberAns, err error)

GroupsIsMember - Получаем информацию о подписчиках При запросе нескольких человек одновременно результат может быть не верным. баг ВК

func (*API) GroupsIsMemberOne

func (vk *API) GroupsIsMemberOne(params map[string]string) (ans int, err error)

GroupsIsMemberOne - Получаем информацию о подписчиках При запросе нескольких человек одновременно результат может быть не верным. баг ВК

func (*API) GroupsJoin

func (vk *API) GroupsJoin(params map[string]string) (ans int, err error)

GroupsJoin - Присоединяемся к группе

func (*API) GroupsSetCallbackSettings

func (vk *API) GroupsSetCallbackSettings(params map[string]string) (ans int, err error)

GroupsSetCallbackSettings - настройка callback сервер

func (*API) LikesGetList

func (vk *API) LikesGetList(params map[string]string) (ans LikesGetListAns, err error)

LikesGetList - Возвращает список лайков.

func (*API) MarketDeleteComment

func (vk *API) MarketDeleteComment(params map[string]string) (ans int, err error)

MarketDeleteComment - удаляем комментарий у товаров

func (*API) MarketGet

func (vk *API) MarketGet(params map[string]string) (ans MarketGetAns, err error)

MarketGet - получаем список товаров

func (*API) MarketRestoreComment

func (vk *API) MarketRestoreComment(params map[string]string) (ans int, err error)

MarketRestoreComment - восстанавливаем комментарий у товаров

func (*API) MessagesIsMessagesFromGroupAllowed

func (vk *API) MessagesIsMessagesFromGroupAllowed(params map[string]string) (ans MessagesIsMessagesFromGroupAllowedAns, err error)

MessagesIsMessagesFromGroupAllowed - проверяем разрешена ли отправка сообщений от имени сообщества

func (*API) MessagesSend

func (vk *API) MessagesSend(params map[string]string) (ans int, err error)

MessagesSend - отправка сообщений

func (*API) PhotosDelete

func (vk *API) PhotosDelete(params map[string]string) (ans int, err error)

PhotosDelete - Удаление фотки

func (*API) PhotosDeleteComment

func (vk *API) PhotosDeleteComment(params map[string]string) (ans int, err error)

PhotosDeleteComment - Удаление комментарий фотки

func (*API) PhotosGet

func (vk *API) PhotosGet(params map[string]string) (ans PhotosGetAns, err error)

PhotosGet - Возвращает список фотографий.

func (*API) PhotosGetAlbums

func (vk *API) PhotosGetAlbums(params map[string]string) (ans PhotosGetAlbumsAns, err error)

PhotosGetAlbums - Возвращает список видео.

func (*API) PhotosGetAll

func (vk *API) PhotosGetAll(params map[string]string) (ans PhotosGetAns, err error)

PhotosGetAll - Возвращает список фотографий.

func (*API) PhotosGetAllComments

func (vk *API) PhotosGetAllComments(params map[string]string) (ans PhotosGetCommentsAns, err error)

PhotosGetAllComments - Возвращает список комментариев фотографии.

func (*API) PhotosGetByID

func (vk *API) PhotosGetByID(params map[string]string) (ans []PhotosGetItem, err error)

PhotosGetByID - Возвращает список фотографий.

func (*API) PhotosGetComments

func (vk *API) PhotosGetComments(params map[string]string) (ans PhotosGetCommentsAns, err error)

PhotosGetComments - Возвращает список комментариев фотографии.

func (*API) PhotosRestore

func (vk *API) PhotosRestore(params map[string]string) (ans int, err error)

PhotosRestore - Восстановление фотки

func (*API) PhotosRestoreComment

func (vk *API) PhotosRestoreComment(params map[string]string) (ans int, err error)

PhotosRestoreComment - Восстановление комментарий фотки

func (*API) ScriptBoardGetComments

func (vk *API) ScriptBoardGetComments(groupID, topicID, startCommentID, cnt int) (ans BoardGetCommentsAns, err error)

ScriptBoardGetComments - Получаем комментарии обсуждений. (execute)

func (*API) ScriptBoardGetTopics

func (vk *API) ScriptBoardGetTopics(groupID, offset int) (ans BoardGetTopicsAns, err error)

ScriptBoardGetTopics - Получаем обсуждения. (execute)

func (*API) ScriptFriendsGet

func (vk *API) ScriptFriendsGet(userID, offset int) (ans ScriptGroupsGetMembersAns, err error)

ScriptFriendsGet - Получаем друзей человека. (execute)

func (*API) ScriptGetAdminPages

func (vk *API) ScriptGetAdminPages() (ans ScriptGetAdminPagesAns, err error)

ScriptGetAdminPages - получаем свою страницу и группы где модератор или выше

func (*API) ScriptGroupFullStat

func (vk *API) ScriptGroupFullStat(groupID int64) (ans ScriptGroupFullStatAns, err error)

ScriptGroupFullStat - получаем полную статитсику по группе

func (*API) ScriptGroupsGetByID

func (vk *API) ScriptGroupsGetByID(groupIDs []string, fields string) (ans []GroupsGetByIDAns, err error)

ScriptGroupsGetByID - Получаем группы по их ID (execute)

func (*API) ScriptGroupsGetMembers

func (vk *API) ScriptGroupsGetMembers(groupID, offset int, s, filter string) (ans ScriptGroupsGetMembersAns, err error)

ScriptGroupsGetMembers - Получаем подписчиков группы. (execute)

func (*API) ScriptLikesGetList

func (vk *API) ScriptLikesGetList(ownerID, itemID int, t, filter, pageURL string, offset int) (ans LikesGetListAns, err error)

ScriptLikesGetList - Получаем лайки. (execute)

func (*API) ScriptMarketGet

func (vk *API) ScriptMarketGet(ownerID, albumID, offset int) (ans MarketGetAns, err error)

ScriptMarketGet - Получаем товары сообщества или пользователя. (execute)

func (*API) ScriptMarketGetComments

func (vk *API) ScriptMarketGetComments(ownerID, itemID, startCommentID int) (ans WallGetCommentsAns, err error)

ScriptMarketGetComments - Получаем комментарии товара. (execute)

func (*API) ScriptMultiBoardGetComments

func (vk *API) ScriptMultiBoardGetComments(arr []map[string]interface{}) (ans MultiBoardGetCommentsAns, err error)

ScriptMultiBoardGetComments - Получаем комментарии нескольких обсуждений. (execute)

func (*API) ScriptMultiBoardGetTopics

func (vk *API) ScriptMultiBoardGetTopics(arr []map[string]interface{}) (ans MultiBoardGetTopicsAns, err error)

ScriptMultiBoardGetTopics - Получаем обсуждения. (execute)

func (*API) ScriptMultiFriendsGet

func (vk *API) ScriptMultiFriendsGet(arr []map[string]interface{}) (ans ScriptMultiFriendsGetAns, err error)

ScriptMultiFriendsGet - Получаем друзей человеков. (execute)

func (*API) ScriptMultiLikesGetList

func (vk *API) ScriptMultiLikesGetList(arr []map[string]interface{}) (ans MultiLikesGetListAns, err error)

ScriptMultiLikesGetList - Получаем лайки у нескольких объектов. (execute)

func (*API) ScriptMultiMarketGet

func (vk *API) ScriptMultiMarketGet(arr []map[string]interface{}) (ans ScriptMultiMarketGetAns, err error)

ScriptMultiMarketGet - Получаем товары (execute)

func (*API) ScriptMultiMarketGetByID

func (vk *API) ScriptMultiMarketGetByID(arr []map[string]interface{}) (ans ScriptMultiMarketGetAns, err error)

ScriptMultiMarketGetByID - Получаем товары по ID (execute)

func (*API) ScriptMultiMarketGetComments

func (vk *API) ScriptMultiMarketGetComments(arr []map[string]interface{}) (ans MultiMarketGetCommentsAns, err error)

ScriptMultiMarketGetComments - Получаем комментарии нескольких фото. (execute)

func (*API) ScriptMultiPhotosGet

func (vk *API) ScriptMultiPhotosGet(arr []map[string]interface{}) (ans MultiPhotosGetAns, err error)

ScriptMultiPhotosGet - Получаем фото из альбома. (execute)

func (*API) ScriptMultiPhotosGetAlbums

func (vk *API) ScriptMultiPhotosGetAlbums(arr []map[string]interface{}) (ans MultiPhotosGetAlbumsAns, err error)

ScriptMultiPhotosGetAlbums - Получаем фото альбомы. (execute)

func (*API) ScriptMultiPhotosGetComments

func (vk *API) ScriptMultiPhotosGetComments(arr []map[string]interface{}) (ans MultiPhotosGetCommentsAns, err error)

ScriptMultiPhotosGetComments - Получаем комментарии нескольких фото. (execute)

func (*API) ScriptMultiUsersGet

func (vk *API) ScriptMultiUsersGet(arr []map[string]interface{}) (ans ScriptUsersMultiGetAns, err error)

ScriptMultiUsersGet - Получаем пользователей по ID (execute)

func (*API) ScriptMultiUsersGetFollowers

func (vk *API) ScriptMultiUsersGetFollowers(arr []map[string]interface{}) (ans ScriptMultiFriendsGetAns, err error)

ScriptMultiUsersGetFollowers - Получаем подписчиков человека. (execute)

func (*API) ScriptMultiUsersGetSubscriptions

func (vk *API) ScriptMultiUsersGetSubscriptions(arr []map[string]interface{}) (ans MultiUsersGetSubscriptionsAns, err error)

ScriptMultiUsersGetSubscriptions - Получаем подписки нескольких людей. (execute)

func (*API) ScriptMultiVideoGet

func (vk *API) ScriptMultiVideoGet(arr []map[string]interface{}) (ans MultiVideoGetAns, err error)

ScriptMultiVideoGet - Получаем видео сообщества или пользователя. (execute)

func (*API) ScriptMultiVideoGetComments

func (vk *API) ScriptMultiVideoGetComments(arr []map[string]interface{}) (ans MultiVideoGetCommentsAns, err error)

ScriptMultiVideoGetComments - Получаем комментарии к нескольким видео. (execute)

func (*API) ScriptMultiWallGet

func (vk *API) ScriptMultiWallGet(arr []map[string]interface{}) (ans MultiWallGetAns, err error)

ScriptMultiWallGet - Получаем посты разных сообществ и людей. (execute)

func (*API) ScriptMultiWallGetComments

func (vk *API) ScriptMultiWallGetComments(arr []map[string]interface{}) (ans MultiWallGetCommentsAns, err error)

ScriptMultiWallGetComments - Получаем комментарии нескольких постов. (execute)

func (*API) ScriptPhotosGet

func (vk *API) ScriptPhotosGet(ownerID, albumID, offset, limit int) (ans PhotosGetAns, err error)

ScriptPhotosGet - Получаем фото из альбома. (execute)

func (*API) ScriptPhotosGetByID

func (vk *API) ScriptPhotosGetByID(photos []string) (ans PhotosGetAns, err error)

ScriptPhotosGetByID - Получаем список фото по их ID (execute)

func (*API) ScriptPhotosGetComments

func (vk *API) ScriptPhotosGetComments(ownerID, photoID, StartCommentID int) (ans PhotosGetCommentsAns, err error)

ScriptPhotosGetComments - Получаем комментарии фото. (execute)

func (*API) ScriptPollsGetVoters

func (vk *API) ScriptPollsGetVoters(ownerID, pollID int, answerIDs string, offset int) (ans ScriptPollsGetVotersAns, err error)

ScriptPollsGetVoters - Получаем ответы на опросы. (execute)

func (*API) ScriptPostFullStat

func (vk *API) ScriptPostFullStat(ownerID, postID int) (ans ScriptPostFullStatAns, err error)

ScriptPostFullStat - получаем полную статитсику по посту

func (*API) ScriptPostStat

func (vk *API) ScriptPostStat(ownerID, postID int) (ans ScriptPostFullStatAns, err error)

ScriptPostStat - получаем полную статитсику по посту

func (*API) ScriptStatsGet

func (vk *API) ScriptStatsGet(groupIds []string, dateFrom, dateTo time.Time) (ans []StatsGetAns, err error)

ScriptStatsGet - Получаем статистику групп. Максимум 25. (execute)

func (*API) ScriptUserWallInfoGet

func (vk *API) ScriptUserWallInfoGet(ownerID int) (ans PostIDDateInfto, err error)

ScriptUserWallInfoGet - Получаем комментарии товара. (execute)

func (*API) ScriptUsersGet

func (vk *API) ScriptUsersGet(userIDs []string, fields string) (ans []UsersGetAns, err error)

ScriptUsersGet - Получаем пользователей по ID (execute)

func (*API) ScriptUsersGetFollowers

func (vk *API) ScriptUsersGetFollowers(userID, offset int) (ans ScriptGroupsGetMembersAns, err error)

ScriptUsersGetFollowers - Получаем подписчиков человека. (execute)

func (*API) ScriptUtilsResolveScreenName

func (vk *API) ScriptUtilsResolveScreenName(ids []string) (ans []UtilsResolveScreenNameAns, err error)

ScriptUtilsResolveScreenName - Резольвим короткие имена в айдишники. максимум 25. (execute)

func (*API) ScriptVideoGet

func (vk *API) ScriptVideoGet(ownerID, offset int) (ans VideoGetAns, err error)

ScriptVideoGet - Получаем видео сообщества или пользователя. (execute)

func (*API) ScriptVideoGetByID

func (vk *API) ScriptVideoGetByID(videos []string) (ans VideoGetAns, err error)

ScriptVideoGetByID - Получаем список видео по их ID (execute)

func (*API) ScriptVideoGetComments

func (vk *API) ScriptVideoGetComments(ownerID, videoID, startCommentID int) (ans VideoGetCommentsAns, err error)

ScriptVideoGetComments - Получаем комментарии к видео. (execute)

func (*API) ScriptWallGetByID

func (vk *API) ScriptWallGetByID(posts []string) (ans []WallGetByIDAns, err error)

ScriptWallGetByID - Получаем список постов по их ID (execute)

func (*API) ScriptWallGetComments

func (vk *API) ScriptWallGetComments(ownerID, postID, startCommentID int) (ans WallGetCommentsAns, err error)

ScriptWallGetComments - Получаем комментарии поста. (execute)

func (*API) ScriptWallGetIDs

func (vk *API) ScriptWallGetIDs(idArr []string) (ans []int, err error)

ScriptWallGetIDs - получаем id постов со стены

func (*API) StatsGet

func (vk *API) StatsGet(params map[string]string) (ans []StatsGetAns, err error)

StatsGet - Получаем стату страницы

func (*API) StatsGetPostReach

func (vk *API) StatsGetPostReach(params map[string]string) (ans []StatsGetPostReachAns, err error)

StatsGetPostReach - Получаем стату поста

func (*API) UsersGet

func (vk *API) UsersGet(params map[string]string) (ans []UsersGetAns, err error)

UsersGet - Получаем информацию о пользователях

func (*API) UsersGetSubscriptions

func (vk *API) UsersGetSubscriptions(params map[string]string) (ans UsersGetSubscriptionsAns, err error)

UsersGetSubscriptions - Получаем информацию о пользователях

func (*API) UtilsGetLinkStats

func (vk *API) UtilsGetLinkStats(params map[string]string) (ans UtilsGetLinkStatsAns, err error)

UtilsGetLinkStats - Получаем статистику по ссылке

func (vk *API) UtilsGetShortLink(params map[string]string) (ans UtilsGetShortLinkAns, err error)

UtilsGetShortLink - Получаем сокращенную ссылку

func (*API) UtilsResolveScreenName

func (vk *API) UtilsResolveScreenName(params map[string]string) (ans UtilsResolveScreenNameAns, err error)

UtilsResolveScreenName - Получаем сокращенную ссылку

func (*API) VideoDeleteComment

func (vk *API) VideoDeleteComment(params map[string]string) (ans int, err error)

VideoDeleteComment - Удаление комментарий видео

func (*API) VideoGet

func (vk *API) VideoGet(params map[string]string) (ans VideoGetAns, err error)

VideoGet - Возвращает список видео.

func (*API) VideoGetComments

func (vk *API) VideoGetComments(params map[string]string) (ans VideoGetCommentsAns, err error)

VideoGetComments - Возвращает список комментариев видео.

func (*API) VideoRestoreComment

func (vk *API) VideoRestoreComment(params map[string]string) (ans int, err error)

VideoRestoreComment - Восстановление комментарий видео

func (*API) WallDelete

func (vk *API) WallDelete(params map[string]string) (ans int, err error)

WallDelete - Удаляем пост со стены

func (*API) WallDeleteComment

func (vk *API) WallDeleteComment(params map[string]string) (ans int, err error)

WallDeleteComment - Удаляем комментарий со стены

func (*API) WallGet

func (vk *API) WallGet(params map[string]string) (ans WallGetAns, err error)

WallGet - Возвращает список записей со стен пользователей или сообществ по их идентификаторам.

func (*API) WallGetByID

func (vk *API) WallGetByID(params map[string]string) (ans []WallGetByIDAns, err error)

WallGetByID - Возвращает список записей со стен пользователей или сообществ по их идентификаторам.

func (*API) WallGetComment

func (vk *API) WallGetComment(params map[string]string) (ans WallGetCommentsAns, err error)

WallGetComment - Возвращает список комментариев к посту.

func (*API) WallGetComments

func (vk *API) WallGetComments(params map[string]string) (ans WallGetCommentsAns, err error)

WallGetComments - Возвращает список комментариев к посту.

func (*API) WallRestore

func (vk *API) WallRestore(params map[string]string) (ans int, err error)

WallRestore - Восстанавливаем пост на стене

func (*API) WallRestoreComment

func (vk *API) WallRestoreComment(params map[string]string) (ans int, err error)

WallRestoreComment - Восстанавливаем комментарий на стене

type AdsGetAccountsAns

type AdsGetAccountsAns struct {
	AccountID     int    `json:"account_id"`
	AccountType   string `json:"account_type"`
	AccountStatus int    `json:"account_status"`
	AccountName   string `json:"account_name"`
	AccessRole    string `json:"access_role"`
}

AdsGetAccountsAns - объект информации об аккаунте

type AdsGetAdsAns

type AdsGetAdsAns struct {
	ID         string `json:"id"`
	CampaignID int    `json:"campaign_id"`
	Name       string `json:"name"`
}

AdsGetAdsAns - объект ответа при запросе объявления

type AdsGetAdsLayoutAns

type AdsGetAdsLayoutAns struct {
	ID         string `json:"id"`
	CampaignID int    `json:"campaign_id"`
	Title      string `json:"title"`
	LinkURL    string `json:"link_url"`
}

AdsGetAdsLayoutAns - объект ответа при запросе вида объявления

type AdsGetCampaignsAns

type AdsGetCampaignsAns struct {
	ID   int    `json:"id"`
	Type string `json:"type"`
	Name string `json:"name"`
}

AdsGetCampaignsAns - объект ответа при запросе кампаний

type AdsGetDemographicsAns

type AdsGetDemographicsAns struct {
	ID    int                          `json:"id"`
	Type  string                       `json:"type"`
	Stats []AdsGetDemographicsAnsStats `json:"stats"`
}

AdsGetDemographicsAns - объект статы демографии

type AdsGetDemographicsAnsStats

type AdsGetDemographicsAnsStats struct {
	Day    string                             `json:"day"`
	Sex    []AdsGetDemographicsAnsStatsValue  `json:"sex"`
	Age    []AdsGetDemographicsAnsStatsValue  `json:"age"`
	SexAge []AdsGetDemographicsAnsStatsValue  `json:"sex_age"`
	Cities []AdsGetDemographicsAnsStatsCities `json:"cities"`
}

AdsGetDemographicsAnsStats - стата

type AdsGetDemographicsAnsStatsCities

type AdsGetDemographicsAnsStatsCities struct {
	ImpressionsRate float64     `json:"impressions_rate"`
	ClicksRate      float64     `json:"clicks_rate"`
	Value           interface{} `json:"value"`
	Name            string      `json:"name"`
}

AdsGetDemographicsAnsStatsCities - данные по городам

type AdsGetDemographicsAnsStatsValue

type AdsGetDemographicsAnsStatsValue struct {
	ImpressionsRate float64 `json:"impressions_rate"`
	ClicksRate      float64 `json:"clicks_rate"`
	Value           string  `json:"value"`
}

AdsGetDemographicsAnsStatsValue - даныне

type AdsGetStatisticsAns

type AdsGetStatisticsAns struct {
	ID       int                        `json:"id"`
	Type     string                     `json:"type"`
	StatsBug []json.RawMessage          `json:"stats"`
	Stats    []AdsGetStatisticsAnsStats `json:"-"`
}

AdsGetStatisticsAns - объект ответа при запросе статистики

type AdsGetStatisticsAnsStats

type AdsGetStatisticsAnsStats struct {
	Day         string `json:"day"`
	Spent       string `json:"spent"`
	Impressions int    `json:"impressions"`
	Clicks      int    `json:"clicks"`
	Reach       int    `json:"reach"`
}

AdsGetStatisticsAnsStats - объект статистики

type AdsGetStatisticsAnsStatsBug

type AdsGetStatisticsAnsStatsBug struct {
	Day         string `json:"day"`
	Spent       string `json:"spent"`
	Impressions string `json:"impressions"`
	Clicks      int    `json:"clicks"`
	Reach       int    `json:"reach"`
}

AdsGetStatisticsAnsStatsBug - объект ответа при запросе статистики (если VK криво типы переменных сформировал)

type AdsGetSuggestionsAns

type AdsGetSuggestionsAns struct {
	ID     int    `json:"id"`
	Name   string `json:"name"`
	Type   string `json:"type"`
	Parent string `json:"parent"`
}

AdsGetSuggestionsAns - объект подсказки

type AdsGetSuggestionsAnsStr

type AdsGetSuggestionsAnsStr struct {
	ID     string `json:"id"`
	Name   string `json:"name"`
	Type   string `json:"type"`
	Parent string `json:"parent"`
}

AdsGetSuggestionsAnsStr - объект подсказки BUG

type AdsGetTargetGroupsAns

type AdsGetTargetGroupsAns struct {
	ID              int         `json:"id"`
	Name            string      `json:"name"`
	LastUpdated     int64       `json:"last_updated"`
	AudienceCount   int         `json:"audience_count"`
	Lifetime        interface{} `json:"lifetime"`
	IsAudience      bool        `json:"is_audience"`
	IsShared        bool        `json:"is_shared"`
	FileSource      bool        `json:"file_source"`
	APISource       bool        `json:"api_source"`
	LookalikeSource bool        `json:"lookalike_source"`
	Pixel           string      `json:"pixel"`
	Domain          string      `json:"domain"`
}

AdsGetTargetGroupsAns - объект группы ретаргета

type AdsGetTargetingStatsAns

type AdsGetTargetingStatsAns struct {
	AudienceCount  int    `json:"audience_count"`
	RecommendedCPC string `json:"recommended_cpc"`
	RecommendedCPM string `json:"recommended_cpm"`
}

AdsGetTargetingStatsAns - объект информации о размере аудитории

type AdsGetTargetingStatsCriteria

type AdsGetTargetingStatsCriteria struct {
	Sex                  int    `json:"sex"`
	AgeFrom              int    `json:"age_from"`
	AgeTo                int    `json:"age_to"`
	Birthday             int    `json:"birthday"`
	Country              int    `json:"country"`
	Cities               string `json:"cities"`
	CitiesNot            string `json:"cities_not"`
	GeoNear              string `json:"geo_near"`
	GeoPointType         string `json:"geo_point_type"`
	Statuses             string `json:"statuses"`
	Groups               string `json:"groups"`
	GroupsNot            string `json:"groups_not"`
	Apps                 string `json:"apps"`
	AppsNot              string `json:"apps_not"`
	Districts            string `json:"districts"`
	Stations             string `json:"stations"`
	Streets              string `json:"streets"`
	Schools              string `json:"schools"`
	Positions            string `json:"positions"`
	Religions            string `json:"religions"`
	InterestCategories   string `json:"interest_categories"`
	Interests            string `json:"interests"`
	UserDevices          string `json:"user_devices"`
	UserOS               string `json:"user_os"`
	UserBrowsers         string `json:"user_browsers"`
	RetargetingGroups    string `json:"retargeting_groups"`
	RetargetingGroupsNot string `json:"retargeting_groups_not"`
	Paying               int    `json:"paying"`
	Travellers           int    `json:"travellers"`
	SchoolFrom           int    `json:"school_from"`
	SchoolTo             int    `json:"school_to"`
	UniFrom              int    `json:"uni_from"`
	UniTo                int    `json:"uni_to"`
}

AdsGetTargetingStatsCriteria - объект критериев настроек таргета

type AdsСreateTargetGroupAns

type AdsСreateTargetGroupAns struct {
	ID int `json:"id"`
}

AdsСreateTargetGroupAns - Ответ на созданную аудиторию

type Attachments

type Attachments struct {
	Type        string           `json:"type"`
	Photo       *json.RawMessage `json:"photo"`
	Audio       *json.RawMessage `json:"audio"`
	Video       *json.RawMessage `json:"video"`
	Poll        *json.RawMessage `json:"poll"`
	Page        *json.RawMessage `json:"page"`
	Album       *json.RawMessage `json:"album"`
	Link        *json.RawMessage `json:"link"`
	Doc         *json.RawMessage `json:"doc"`
	Note        *json.RawMessage `json:"note"`
	Sticker     *json.RawMessage `json:"sticker"`
	PrettyCards *json.RawMessage `json:"pretty_cards"`
	Market      *json.RawMessage `json:"market"`
}

Attachments - объект аттача

func (*Attachments) GetDoc

func (a *Attachments) GetDoc() (t AttachmentsDoc)

GetDoc - Преобразуем данные документа в объект

func (a *Attachments) GetLink() (t AttachmentsLink)

GetLink - Преобразуем данные ссылки в объект

func (*Attachments) GetMarket

func (a *Attachments) GetMarket() (t MarketGetByIDAns)

GetMarket - Преобразуем данные товара в объект

func (*Attachments) GetPage

func (a *Attachments) GetPage() (t AttachmentsPage)

GetPage - Преобразуем данные видео в объект

func (*Attachments) GetPhoto

func (a *Attachments) GetPhoto() (t PhotosGetItem)

GetPhoto - Преобразуем данные фото в объект

func (*Attachments) GetPoll

func (a *Attachments) GetPoll() (t PollItem)

GetPoll - Преобразуем данные видео в объект

func (*Attachments) GetPrettyCards

func (a *Attachments) GetPrettyCards() (t AttachmentsPrettyCards)

GetPrettyCards - Преобрахуем данные карточек в объекты

func (*Attachments) GetVideo

func (a *Attachments) GetVideo() (t VideoGetItem)

GetVideo - Преобразуем данные видео в объект

type AttachmentsDoc

type AttachmentsDoc struct {
	ID      int              `json:"id"`
	OwnerID int              `json:"owner_id"`
	Title   string           `json:"title"`
	Size    int              `json:"size"`
	Ext     string           `json:"ext"`
	URL     string           `json:"url"`
	Date    int64            `json:"date"`
	Type    int              `json:"type"`
	Preview *json.RawMessage `json:"preview"`
}

AttachmentsDoc - объект документа аатача

type AttachmentsLink struct {
	URL         string        `json:"url"`
	Title       string        `json:"title"`
	Caption     string        `json:"caption"`
	Description string        `json:"description"`
	Photo       PhotosGetItem `json:"photo"`
	PreviewPage string        `json:"preview_page"`
	PreviewURL  string        `json:"preview_url"`
}

AttachmentsLink - объект ссылки аатача

type AttachmentsPage

type AttachmentsPage struct {
	ID                       int    `json:"id"`
	GroupID                  int    `json:"group_id"`
	CreatorID                int    `json:"creator_id"`
	Title                    string `json:"title"`
	CurrentUserCanEdit       int    `json:"current_user_can_edit"`
	CurrentUserCanEditAccess int    `json:"current_user_can_edit_access"`
	WhoCanView               int    `json:"who_can_view"`
	WhoCanEdit               int    `json:"who_can_edit"`
	Edited                   int    `json:"edited"`
	Created                  int    `json:"created"`
	EditorID                 int    `json:"editor_id"`
	Views                    int    `json:"views"`
	Parent                   string `json:"parent"`
	Parent2                  string `json:"parent2"`
	Source                   string `json:"source"`
	HTML                     string `json:"html"`
	ViewURL                  string `json:"view_url"`
}

AttachmentsPage - объект документа аатача

type AttachmentsPrettyCards

type AttachmentsPrettyCards struct {
	Cards []AttachmentsPrettyCardsCards `json:"cards"`
}

AttachmentsPrettyCards - объект карточек аттача

type AttachmentsPrettyCardsCards

type AttachmentsPrettyCardsCards struct {
	CardID  string `json:"card_id"`
	LinkURL string `json:"link_url"`
	Title   string `json:"title"`
}

AttachmentsPrettyCardsCards - объект карточек аттача

type AuthURLData

type AuthURLData struct {
	ClientID    int
	RedirectURI string
	GroupIDs    string
	Display     string
	Scope       string
	V           float64
	State       string
}

AuthURLData - Объект для формирования url авторизации

type BanInfo

type BanInfo struct {
	AdminID int    `json:"admin_id"`
	Date    int64  `json:"date"`
	Reason  int    `json:"reason"`
	Comment string `json:"comment"`
	EndDate int64  `json:"end_date"`
}

BanInfo - объект бана

type BoardGetCommentsAns

type BoardGetCommentsAns struct {
	Count  int                   `json:"count"`
	Offset int                   `json:"offset"`
	Items  []WallGetCommentsItem `json:"items"`
}

BoardGetCommentsAns - объект списка комментариев обсуждения

type BoardGetTopicsAns

type BoardGetTopicsAns struct {
	Count  int                  `json:"count"`
	Offset int                  `json:"offset"`
	Items  []BoardGetTopicsItem `json:"items"`
}

BoardGetTopicsAns - объект списка обсуждений

type BoardGetTopicsItem

type BoardGetTopicsItem struct {
	ID           int    `json:"id"`
	Title        string `json:"title"`
	Created      int64  `json:"created"`
	CreatedBy    int    `json:"created_by"`
	Updated      int64  `json:"updated"`
	UpdatedBy    int    `json:"updated_by"`
	IsClosed     int    `json:"is_closed"`
	IsFixed      int    `json:"is_fixed"`
	Comments     int    `json:"comments"`
	FirstComment int    `json:"first_comment"`
	LastComment  int    `json:"last_comment"`
}

BoardGetTopicsItem - объект обсуждения

type CallBackObj

type CallBackObj struct {
	Type    string          `json:"type"`
	Object  json.RawMessage `json:"object"`
	GroupID int             `json:"group_id"`
	Secret  string          `json:"secret"`

	Message        MessagesGetAns         `json:"-"`
	MessageAllow   CallbackMessageAllow   `json:"-"`
	Photo          PhotosGetItem          `json:"-"`
	PhotoComment   WallGetCommentsItem    `json:"-"`
	Video          VideoGetItem           `json:"-"`
	VideoComment   WallGetCommentsItem    `json:"-"`
	Wall           WallGetByIDAns         `json:"-"`
	WallComment    WallGetCommentsItem    `json:"-"`
	Board          WallGetCommentsItem    `json:"-"`
	MarketComment  WallGetCommentsItem    `json:"-"`
	UserChange     CallBackUserChange     `json:"-"`
	CommentDelete  CallbackCommentDelete  `json:"-"`
	OfficersEdit   CallbackOfficersEdit   `json:"-"`
	ChangeSettings CallbackChangeSettings `json:"-"`
	ChangePhoto    CallbackChangePhoto    `json:"-"`

	Parsed bool `json:"-"`
	Retry  bool `json:"-"`
}

CallBackObj - Объект запроса через callback

func (*CallBackObj) Parse

func (cbo *CallBackObj) Parse() (err error)

Parse - Парсим объект

type CallBackUserChange

type CallBackUserChange struct {
	UserID   int    `json:"user_id"`
	Self     int    `json:"self"`
	JoinType string `json:"join_type"`
}

CallBackUserChange - объект выходя или входа человека

type CallbackChangePhoto

type CallbackChangePhoto struct {
	UserID int           `json:"user_id"`
	Photo  PhotosGetItem `json:"photo"`
}

CallbackChangePhoto - объект смены фото

type CallbackChangeSettings

type CallbackChangeSettings struct {
	UserID  int                                      `json:"user_id"`
	Changes map[string]CallbackChangeSettingsChanges `json:"CallbackChangeSettings"`
}

CallbackChangeSettings - объект смены настроек группы

type CallbackChangeSettingsChanges

type CallbackChangeSettingsChanges struct {
	OldValue interface{} `json:"old_value"`
	NewValue interface{} `json:"new_value"`
}

CallbackChangeSettingsChanges - объект значений при смене настроек

type CallbackCommentDelete

type CallbackCommentDelete struct {
	OwnerID      int `json:"owner_id"`
	ID           int `json:"id"`
	UserID       int `json:"user_id"`
	DeleterID    int `json:"deleter_id"`
	PhotoID      int `json:"photo_id"`
	VideoID      int `json:"video_id"`
	PostID       int `json:"post_id"`
	TopicID      int `json:"topic_id"`
	TopicOwnerID int `json:"topic_owner_id"`
	ItemID       int `json:"item_id"`
}

CallbackCommentDelete - объект инфы о удаленной фотке

type CallbackMessageAllow

type CallbackMessageAllow struct {
	UserID int    `json:"user_id"`
	Key    string `json:"key"`
}

CallbackMessageAllow - объект подписки на сообщения

type CallbackOfficersEdit

type CallbackOfficersEdit struct {
	AdminID  int `json:"admin_id"`
	UserID   int `json:"user_id"`
	LevelOld int `json:"level_old"`
	LevelNew int `json:"level_new"`
}

CallbackOfficersEdit - объект редактирования админа в группе

type Cities

type Cities struct {
	CityID int `json:"city_id"`
	Views  int `json:"views"`
}

Cities - объект статистики по городам

type City

type City struct {
	ID    int    `json:"id"`
	Title string `json:"title"`
}

City - Объект с информацией о городе

type CommentData

type CommentData struct {
	Count         int  `json:"count"`
	CanPost       int  `json:"can_post"`
	GroupsCanPost bool `json:"groups_can_post"`
}

CommentData - объект комментариев

type CountInt

type CountInt struct {
	Count int   `json:"count"`
	Items []int `json:"items"`
}

CountInt - объект из списка идентификаторов и их кол-ва

type Countries

type Countries struct {
	CountryID int `json:"country_id"`
	Views     int `json:"views"`
}

Countries - объект статистики по странам

type ExecuteErrors

type ExecuteErrors struct {
	Method    string `json:"method"`
	ErrorCode int    `json:"error_code"`
	ErrorMsg  string `json:"error_msg"`
}

ExecuteErrors - объект ошибок execute

type GetTokenAns

type GetTokenAns struct {
	AccessToken      string `json:"access_token"`
	ExpiresIn        int    `json:"expires_in"`
	UserID           int    `json:"user_id"`
	Error            string `json:"error"`
	ErrorDescription string `json:"error_description"`
}

GetTokenAns - объект ответа при получении покена

type GroupContacts

type GroupContacts struct {
	UserID int    `json:"user_id"`
	Desc   string `json:"desc"`
	Phone  string `json:"phone"`
	Email  string `json:"email"`
}

GroupContacts - объект контакта группы

type GroupsAddCallbackServerAns

type GroupsAddCallbackServerAns struct {
	ServerID int `json:"server_id"`
}

GroupsAddCallbackServerAns - ответ при установке callback сервера

type GroupsGetAns

type GroupsGetAns struct {
	Count int                `json:"count"`
	Items []GroupsGetByIDAns `json:"items"`
}

GroupsGetAns - объект ответа при запросе групп

type GroupsGetBannedAns

type GroupsGetBannedAns struct {
	Count int                   `json:"count"`
	Items []GroupsGetBannedItem `json:"items"`
}

GroupsGetBannedAns - ответ на запрос о бане

type GroupsGetBannedItem

type GroupsGetBannedItem struct {
	Type    string           `json:"type"`
	Group   GroupsGetByIDAns `json:"group"`
	Profile UsersGetAns      `json:"profile"`
	BanInfo BanInfo          `json:"ban_info"`
}

GroupsGetBannedItem - объект инфы о бане

type GroupsGetByIDAns

type GroupsGetByIDAns struct {
	ID           int             `json:"id"`
	Name         string          `json:"name"`
	ScreenName   string          `json:"screen_name"`
	IsClosed     int             `json:"is_closed"`
	Deactivated  string          `json:"deactivated"`
	IsAdmin      int             `json:"is_admin"`
	AdminLevel   int             `json:"admin_level"`
	IsMember     int             `json:"is_member"`
	InvitedBy    int             `json:"invited_by"`
	Type         string          `json:"type"`
	Photo50      string          `json:"photo_50"`
	Photo100     string          `json:"photo_100"`
	Photo200     string          `json:"photo_200"`
	AgeLimits    int             `json:"age_limits "`
	Description  string          `json:"description"`
	MembersCount int             `json:"members_count"`
	Verified     int             `json:"verified"`
	Contacts     []GroupContacts `json:"contacts"`
}

GroupsGetByIDAns - объект ответа при запросе групп

type GroupsGetCallbackConfirmationCodeAns

type GroupsGetCallbackConfirmationCodeAns struct {
	Code string `json:"code"`
}

GroupsGetCallbackConfirmationCodeAns - объет подтверждающего кода callback сервера

type GroupsGetCallbackServersAns

type GroupsGetCallbackServersAns struct {
	Count int                               `json:"count"`
	Items []GroupsGetCallbackServersAnsItem `json:"items"`
}

GroupsGetCallbackServersAns - объект ответа на запрос callback серверов

type GroupsGetCallbackServersAnsItem

type GroupsGetCallbackServersAnsItem struct {
	ID        int    `json:"id"`
	Title     string `json:"title"`
	CreatorID int    `json:"creator_id"`
	URL       string `json:"url"`
	SecretKey string `json:"secret_key"`
	Status    string `json:"status"`
}

GroupsGetCallbackServersAnsItem - объект callback сервера

type GroupsGetCallbackSettingsAns

type GroupsGetCallbackSettingsAns struct {
	APIVersion string         `json:"api_version"`
	Events     map[string]int `json:"events"`
}

GroupsGetCallbackSettingsAns - объект настроек callback сервера

type GroupsGetMembersAns

type GroupsGetMembersAns struct {
	Count int             `json:"count"`
	Items json.RawMessage `json:"items"`
}

GroupsGetMembersAns - объект ответа при запросе подписчиков групп

type GroupsGetTokenPermissionsAns

type GroupsGetTokenPermissionsAns struct {
	Mask        int                                    `json:"mask"`
	Permissions []GroupsGetTokenPermissionsAnsSettings `json:"permissions"`
}

GroupsGetTokenPermissionsAns - объект прав доступа сообщества

type GroupsGetTokenPermissionsAnsSettings

type GroupsGetTokenPermissionsAnsSettings struct {
	Setting int    `json:"setting"`
	Name    string `json:"name"`
}

GroupsGetTokenPermissionsAnsSettings - подробные права сообщества

type GroupsIsMemberAns

type GroupsIsMemberAns struct {
	Member     int `json:"member"`
	UserID     int `json:"user_id"`
	Request    int `json:"request"`
	Invitation int `json:"invitation"`
}

GroupsIsMemberAns - объект с ответом подписчик ли человек или нет

type LikeData

type LikeData struct {
	Count int `json:"count"`
}

LikeData - объект лайков

type LikesGetListAns

type LikesGetListAns struct {
	Count  int   `json:"count"`
	Offset int   `json:"offset"`
	Items  []int `json:"items"`
}

LikesGetListAns - объект лайков

type MarketCategory

type MarketCategory struct {
	ID      int                   `json:"id"`
	Name    string                `json:"name"`
	Section MarketCategorySection `json:"section"`
}

MarketCategory - объект категории

type MarketCategorySection

type MarketCategorySection struct {
	ID   int    `json:"id"`
	Name string `json:"name"`
}

MarketCategorySection - объект секции категории товара

type MarketGetAns

type MarketGetAns struct {
	Count  int                `json:"count"`
	Offset int                `json:"offset"`
	Items  []MarketGetByIDAns `json:"items"`
}

MarketGetAns - объетк списка товаров

type MarketGetByIDAns

type MarketGetByIDAns struct {
	ID           int             `json:"id"`
	OwnerID      int             `json:"owner_id"`
	Title        string          `json:"title"`
	Description  string          `json:"description"`
	Price        MarketPrice     `json:"price"`
	Category     MarketCategory  `json:"category"`
	Date         int64           `json:"date"`
	ThumbPhoto   string          `json:"thumb_photo"`
	Availability int             `json:"availability"`
	AlbumsIDs    []int           `json:"albums_ids"`
	Photos       []PhotosGetItem `json:"photos"`
	CanComment   int             `json:"can_comment"`
	CanRepost    int             `json:"can_repost"`
	Likes        LikeData        `json:"likes"`
	ViewsCount   int             `json:"views_count"`
}

MarketGetByIDAns - объект товара

type MarketPrice

type MarketPrice struct {
	Amount   string              `json:"amount"`
	Currency MarketPriceCurrency `json:"currency"`
	Text     string              `json:"text"`
}

MarketPrice - объект цены товара

type MarketPriceCurrency

type MarketPriceCurrency struct {
	ID   int    `json:"id"`
	Name string `json:"name"`
}

MarketPriceCurrency - объект валюты товара

type MessagesGetAns

type MessagesGetAns struct {
	ID          int                  `json:"id"`
	Date        int64                `json:"date"`
	PeerID      int                  `json:"peer_id"`
	FromID      int                  `json:"from_id"`
	Text        string               `json:"text"`
	RandomID    int                  `json:"random_id"`
	Attachments []Attachments        `json:"attachments"`
	Important   bool                 `json:"important"`
	Geo         MessagesGetAnsGeo    `json:"geo"`
	Payload     string               `json:"payload"`
	FwdMessages []MessagesGetAns     `json:"fwd_messages"`
	Action      MessagesGetAnsAction `json:"action"`
}

MessagesGetAns - объект сообщений

type MessagesGetAnsAction

type MessagesGetAnsAction struct {
	Type     string            `json:"type"`
	MemberID int               `json:"member_id"`
	Text     string            `json:"text"`
	Email    string            `json:"email"`
	Photo    map[string]string `json:"photo"`
}

MessagesGetAnsAction - информация о сервисном действии с чатом

type MessagesGetAnsGeo

type MessagesGetAnsGeo struct {
	Type        string                 `json:"type"`
	Coordinates interface{}            `json:"coordinates"`
	Place       MessagesGetAnsGeoPlace `json:"place"`
}

MessagesGetAnsGeo - объект места в сообщении

type MessagesGetAnsGeoPlace

type MessagesGetAnsGeoPlace struct {
	ID        int     `json:"id"`
	Title     string  `json:"title"`
	Latitude  float64 `json:"latitude"`
	Longitude float64 `json:"longitude"`
	Created   int     `json:"created"`
	Icon      string  `json:"icon"`
	Country   string  `json:"country"`
	City      string  `json:"city"`
}

MessagesGetAnsGeoPlace - объект описание места

type MessagesIsMessagesFromGroupAllowedAns

type MessagesIsMessagesFromGroupAllowedAns struct {
	IsAllowed int `json:"is_allowed"`
}

MessagesIsMessagesFromGroupAllowedAns - объект проверки разрешена ли отправка сообщений

type MultiBoardGetCommentsAns

type MultiBoardGetCommentsAns struct {
	RqData []map[string]interface{} `json:"rq_data"`
	Items  []BoardGetCommentsAns    `json:"items"`
}

MultiBoardGetCommentsAns - объект списка комментариев нескольких обсуждения

type MultiBoardGetTopicsAns

type MultiBoardGetTopicsAns struct {
	Items  []BoardGetTopicsAns      `json:"items"`
	RqData []map[string]interface{} `json:"rq_data"`
}

MultiBoardGetTopicsAns - объект списка обсуждений для нескольких групп

type MultiLikesGetListAns

type MultiLikesGetListAns struct {
	RqData []map[string]interface{} `json:"rq_data"`
	Items  []LikesGetListAns        `json:"items"`
}

MultiLikesGetListAns - объект лайков для нескольких объектов

type MultiMarketGetCommentsAns

type MultiMarketGetCommentsAns struct {
	Items  []WallGetCommentsAns     `json:"items"`
	RqData []map[string]interface{} `json:"rq_data"`
}

MultiMarketGetCommentsAns - объект списка коментов товара

type MultiPhotosGetAlbumsAns

type MultiPhotosGetAlbumsAns struct {
	RqData []map[string]interface{} `json:"rq_data"`
	Items  []PhotosGetAlbumsAns     `json:"items"`
}

MultiPhotosGetAlbumsAns - объект списка альбомов

type MultiPhotosGetAns

type MultiPhotosGetAns struct {
	RqData []map[string]interface{} `json:"rq_data"`
	Items  []PhotosGetAns           `json:"items"`
}

MultiPhotosGetAns - объект списка фотографий из разных альбомов

type MultiPhotosGetCommentsAns

type MultiPhotosGetCommentsAns struct {
	RqData []map[string]interface{} `json:"rq_data"`
	Items  []PhotosGetCommentsAns   `json:"items"`
}

MultiPhotosGetCommentsAns - объект списка комментариев разных фото

type MultiUsersGetSubscriptionsAns

type MultiUsersGetSubscriptionsAns struct {
	RqData []map[string]interface{}   `json:"rq_data"`
	Items  []UsersGetSubscriptionsAns `json:"items"`
}

MultiUsersGetSubscriptionsAns - объект списка подписок человеков

type MultiVideoGetAns

type MultiVideoGetAns struct {
	Items  []VideoGetAns            `json:"items"`
	RqData []map[string]interface{} `json:"rq_data"`
}

MultiVideoGetAns - объект списка видео нескольких сообществ

type MultiVideoGetCommentsAns

type MultiVideoGetCommentsAns struct {
	Items  []VideoGetCommentsAns    `json:"items"`
	RqData []map[string]interface{} `json:"rq_data"`
}

MultiVideoGetCommentsAns - объект списка комментариев нескольких видео

type MultiWallGetAns

type MultiWallGetAns struct {
	RqData []map[string]interface{} `json:"rq_data"`
	Items  []WallGetAns             `json:"items"`
}

MultiWallGetAns - объект списка постов нескольких сообществ или людей

type MultiWallGetCommentsAns

type MultiWallGetCommentsAns struct {
	RqData []map[string]interface{} `json:"rq_data"`
	Items  []WallGetCommentsAns     `json:"items"`
}

MultiWallGetCommentsAns - объект комментариев для выборки из нескольких сообществ

type PhotoSizes

type PhotoSizes struct {
	Type   string `json:"type"`
	URL    string `json:"url"`
	Width  int    `json:"width"`
	Height int    `json:"height"`
}

PhotoSizes - объект размеров фоток

type PhotosGetAlbumsAns

type PhotosGetAlbumsAns struct {
	Count int                   `json:"count"`
	Items []PhotosGetAlbumsItem `json:"items"`
}

PhotosGetAlbumsAns - объект списка альбомов

type PhotosGetAlbumsItem

type PhotosGetAlbumsItem struct {
	ID                 int    `json:"id"`
	ThumbID            int    `json:"thumb_id"`
	OwnerID            int    `json:"owner_id"`
	Title              string `json:"title"`
	Description        string `json:"description"`
	Created            int64  `json:"created"`
	Updated            int64  `json:"updated"`
	Size               int    `json:"size"`
	CanUpload          int    `json:"can_upload"`
	UploadByAdminsOnly int    `json:"UploadByAdminsOnly"`
	CommentsDisabled   int    `json:"comments_disabled"`
}

PhotosGetAlbumsItem - объект альбома

type PhotosGetAns

type PhotosGetAns struct {
	Count  int             `json:"count"`
	Offset int             `json:"offset"`
	Items  []PhotosGetItem `json:"items"`
}

PhotosGetAns - объект списка фотографий

type PhotosGetCommentsAns

type PhotosGetCommentsAns struct {
	Count  int                   `json:"count"`
	Offset int                   `json:"offset"`
	Items  []WallGetCommentsItem `json:"items"`
}

PhotosGetCommentsAns - объект списка комментариев фото

type PhotosGetItem

type PhotosGetItem struct {
	ID       int          `json:"id"`
	AlbumID  int          `json:"album_id"`
	OwnerID  int          `json:"owner_id"`
	UserID   int          `json:"user_id"`
	Text     string       `json:"text"`
	Date     int64        `json:"date"`
	Width    int          `json:"width"`
	Height   int          `json:"height"`
	PostID   int          `json:"post_id"`
	Likes    LikeData     `json:"likes"`
	Reposts  LikeData     `json:"reposts"`
	Comments CommentData  `json:"comments"`
	Sizes    []PhotoSizes `json:"sizes"`
}

PhotosGetItem - объект фотографии

func (*PhotosGetItem) GetBestSize

func (pgi *PhotosGetItem) GetBestSize() (url string)

GetBestSize - получаем лучгий ращмер фотки

type PollItem

type PollItem struct {
	ID        int              `json:"id"`
	OwnerID   int              `json:"owner_id"`
	Created   int              `json:"created"`
	Question  string           `json:"question"`
	Votes     int              `json:"votes"`
	AnswerID  int              `json:"answer_id"`
	Answers   []PollItemAnswer `json:"answers"`
	Anonymous int              `json:"anonymous"`
}

PollItem - объект опроса

type PollItemAnswer

type PollItemAnswer struct {
	ID    int    `json:"id"`
	Text  string `json:"text"`
	Votes int    `json:"votes"`
	Rate  int    `json:"rate"`
}

PollItemAnswer - объект ответа в опросе

type PollVoters

type PollVoters struct {
	AnswerID int      `json:"answer_id"`
	Users    CountInt `json:"users"`
}

PollVoters - объект ответов на опросы

type PostIDDateInfto

type PostIDDateInfto struct {
	Ids   []int   `json:"ids"`
	Dates []int64 `json:"dates"`
}

PostIDDateInfto - Структура содержитг id и даты постов

type Response

type Response struct {
	Response      json.RawMessage `json:"response"`
	Error         ResponseError   `json:"error"`
	ExecuteErrors []ExecuteErrors `json:"execute_errors"`
}

Response - объект ответа VK

type ResponseError

type ResponseError struct {
	ErrorCode     int                 `json:"error_code"`
	ErrorMsg      string              `json:"error_msg"`
	RequestParams []map[string]string `json:"request_params"`
}

ResponseError - объект ошибки выболнения запроса

type RqStatObj

type RqStatObj struct {
	Method  string
	Error   error
	Timeout int64
}

RqStatObj - объект статистики запроса

type ScriptGetAdminPagesAns

type ScriptGetAdminPagesAns struct {
	Groups  GroupsGetAns  `json:"groups"`
	Profile []UsersGetAns `json:"profile"`
}

ScriptGetAdminPagesAns - объект инфы об админе

type ScriptGroupFullStatAns

type ScriptGroupFullStatAns struct {
	Posts      WallGetAns    `json:"posts"`
	Stats      []StatsGetAns `json:"stats"`
	Subsribers int           `json:"subsribers"`
}

ScriptGroupFullStatAns - объект полной статы по сообществу

type ScriptGroupsGetMembersAns

type ScriptGroupsGetMembersAns struct {
	Count  int   `json:"count"`
	Offset int   `json:"offset"`
	Items  []int `json:"items"`
}

ScriptGroupsGetMembersAns - объект ответа при подписчиков (execute)

type ScriptMultiFriendsGetAns

type ScriptMultiFriendsGetAns struct {
	RqData []map[string]interface{}    `json:"rq_data"`
	Items  []ScriptGroupsGetMembersAns `json:"items"`
}

ScriptMultiFriendsGetAns - Объект списка друзей для нескольких человек

type ScriptMultiMarketGetAns

type ScriptMultiMarketGetAns struct {
	Items  []MarketGetAns           `json:"items"`
	RqData []map[string]interface{} `json:"rq_data"`
}

ScriptMultiMarketGetAns - Список объектов товаров

type ScriptPollsGetVotersAns

type ScriptPollsGetVotersAns struct {
	Count  int          `json:"count"`
	Offset int          `json:"offset"`
	Items  []PollVoters `json:"items"`
}

ScriptPollsGetVotersAns - объект опроса

type ScriptPostFullStatAns

type ScriptPostFullStatAns struct {
	Post     WallGetByIDAns         `json:"post"`
	Stats    []StatsGetAns          `json:"stats"`
	PostStat []StatsGetPostReachAns `json:"post_stat"`
}

ScriptPostFullStatAns - объект с инфой о стате поста

type ScriptUsersMultiGetAns

type ScriptUsersMultiGetAns struct {
	RqData []map[string]interface{} `json:"rq_data"`
	Items  []UsersGetAns            `json:"items"`
}

ScriptUsersMultiGetAns - объект списка информации о пользователях

type SexAge

type SexAge struct {
	AgeRange string `json:"age_range"`
	Female   int    `json:"female"`
	Male     int    `json:"male"`
}

SexAge - объект пола/возраста

type StatsGetAns

type StatsGetAns struct {
	PeriodFrom string        `json:"period_from"`
	PeriodTo   string        `json:"period_to"`
	Visitors   StatsVisitors `json:"visitors"`
	Reach      StatsReach    `json:"reach"`
	Activity   interface{}   `json:"activity"`
}

StatsGetAns - объект ответа при запросе статистики группы

type StatsGetPostReachAns

type StatsGetPostReachAns struct {
	ReachSubscribers int `json:"reach_subscribers"`
	ReachTotal       int `json:"reach_total"`
	ReachAds         int `json:"reach_ads"`
	ReachViral       int `json:"reach_viral"`
	Links            int `json:"links"`
	ToGroup          int `json:"to_group"`
	JoinGroup        int `json:"join_group"`
	Report           int `json:"report"`
	Hide             int `json:"hide"`
	Unsubscribe      int `json:"unsubscribe"`
}

StatsGetPostReachAns - Объект статистики поста

type StatsGetValue

type StatsGetValue struct {
	Count int         `json:"count"`
	Value interface{} `json:"value"`
	Name  string      `json:"name"`
	Code  string      `json:"code"`
}

StatsGetValue - объект статистики

type StatsReach

type StatsReach struct {
	Reach            int             `json:"reach"`
	ReachSubscribers int             `json:"reach_subscribers"`
	MobileReach      int             `json:"mobile_reach"`
	Sex              []StatsGetValue `json:"sex"`
	Age              []StatsGetValue `json:"age"`
	SexAge           []StatsGetValue `json:"sex_age"`
	Countries        []StatsGetValue `json:"countries"`
	Cities           []StatsGetValue `json:"cities"`
}

StatsReach - объект с инфой об охвате

type StatsVisitors

type StatsVisitors struct {
	Views       int             `json:"views"`
	Visitors    int             `json:"visitors"`
	MobileViews int             `json:"mobile_views"`
	Sex         []StatsGetValue `json:"sex"`
	Age         []StatsGetValue `json:"age"`
	SexAge      []StatsGetValue `json:"sex_age"`
	Countries   []StatsGetValue `json:"countries"`
	Cities      []StatsGetValue `json:"cities"`
}

StatsVisitors - объект с инфой о посетителях

type TokenData

type TokenData struct {
	ClientID     int
	ClientSecret string
	Code         string
	RedirectURI  string
	IsGroup      bool
}

TokenData - объект получения токена

type UserCareer

type UserCareer struct {
	GroupID   int    `json:"group_id"`
	Company   string `json:"company"`
	CountryID int    `json:"country_id"`
	CityID    int    `json:"city_id"`
	CityName  string `json:"city_name"`
	From      int    `json:"from"`
	Until     int    `json:"until"`
	Position  string `json:"position"`
}

UserCareer - Объект информации о карьере человека

type UserContacts

type UserContacts struct {
	MobilePhone string `json:"mobile_phone"`
	HomePhone   string `json:"home_phone"`
}

UserContacts - Объект контактов человека

type UserCounters

type UserCounters struct {
	Albums        int `json:"albums"`
	Videos        int `json:"videos"`
	Audios        int `json:"audios"`
	Photos        int `json:"photos"`
	Notes         int `json:"notes"`
	Friends       int `json:"friends"`
	Groups        int `json:"groups"`
	OnlineFriends int `json:"online_friends"`
	MutualFriends int `json:"mutual_friends"`
	UserVideos    int `json:"user_videos"`
	Followers     int `json:"followers"`
	Pages         int `json:"pages"`
}

UserCounters - объект счетчиков человека

type UserEducation

type UserEducation struct {
	University     int    `json:"university"`
	UniversityName string `json:"university_name"`
	Faculty        int    `json:"faculty"`
	FacultyName    string `json:"faculty_name"`
	Graduation     int    `json:"graduation"`
}

UserEducation - объект информации об университете человека

type UserLastSeen

type UserLastSeen struct {
	Time     int `json:"time"`
	Platform int `json:"platform"`
}

UserLastSeen - Информация о последнем посещении

type UserMilitary

type UserMilitary struct {
	Unit      string `json:"unit"`
	UnitID    int    `json:"unit_id"`
	CountryID int    `json:"country_id"`
	From      int    `json:"from"`
	Until     int    `json:"until"`
}

UserMilitary - информация о военной службе

type UserOccupation

type UserOccupation struct {
	Type string `json:"type"`
	ID   int    `json:"id"`
	Name string `json:"name"`
}

UserOccupation - Объект информации о текущем занятии человека

type UserPersonal

type UserPersonal struct {
	Political  int      `json:"political"`
	Langs      []string `json:"langs"`
	Religion   string   `json:"religion"`
	InspiredBy string   `json:"inspired_by"`
	PeopleMain int      `json:"people_main"`
	LifeMain   int      `json:"life_main"`
	Smoking    int      `json:"smoking"`
	Alcohol    int      `json:"alcohol"`
}

UserPersonal - Объект информации о жизненной позиции человека

type UserRelatives

type UserRelatives struct {
	ID   int    `json:"id"`
	Name string `json:"name"`
	Type string `json:"type"`
}

UserRelatives - объект с информацией о родвственнике человека

type UserSchools

type UserSchools struct {
	ID            int    `json:"id"`
	Country       int    `json:"country"`
	City          int    `json:"city"`
	Name          string `json:"name"`
	YearFrom      int    `json:"year_from"`
	YearTo        int    `json:"year_to"`
	YearGraduated int    `json:"year_graduated"`
	Class         string `json:"class"`
	Speciality    string `json:"speciality"`
	Type          int    `json:"type"`
	TypeStr       string `json:"type_str"`
}

UserSchools - информация о школе веловека

type UserUniversities

type UserUniversities struct {
	ID              int    `json:"id"`
	Country         int    `json:"country"`
	City            int    `json:"city"`
	Name            string `json:"name"`
	Faculty         int    `json:"faculty"`
	FacultyName     string `json:"faculty_name"`
	Chair           int    `json:"chair"`
	ChairName       string `json:"chair_name"`
	Graduation      int    `json:"graduation"`
	EducationForm   string `json:"education_form"`
	EducationStatus string `json:"education_status"`
}

UserUniversities - информация о университете

type UsersGetAns

type UsersGetAns struct {
	ID                     int                  `json:"id"`
	FirstName              string               `json:"first_name"`
	LastName               string               `json:"last_name"`
	Deactivated            string               `json:"deactivated"`
	About                  string               `json:"about"`
	Activities             string               `json:"activities"`
	Bdate                  string               `json:"bdate"`
	Blacklisted            int                  `json:"blacklisted"`
	BlacklistedByMe        int                  `json:"blacklisted_by_me"`
	Books                  string               `json:"books"`
	CanPost                int                  `json:"can_post"`
	CanSeeAllPosts         int                  `json:"can_see_all_posts"`
	CanSeeAudio            int                  `json:"can_see_audio"`
	CanSendFriendRequest   int                  `json:"can_send_friend_request"`
	CanWritePrivateMessage int                  `json:"can_write_private_message"`
	Career                 UserCareer           `json:"career"`
	City                   City                 `json:"city"`
	CommonCount            int                  `json:"common_count"`
	Skype                  string               `json:"skype"`
	Facebook               string               `json:"facebook"`
	Twitter                string               `json:"twitter"`
	Livejournal            string               `json:"livejournal"`
	Instagram              string               `json:"instagram"`
	Contacts               UserContacts         `json:"contacts"`
	Counters               UserCounters         `json:"counters"`
	Country                City                 `json:"country"`
	Domain                 string               `json:"domain"`
	Education              UserEducation        `json:"education"`
	FollowersCount         int                  `json:"followers_count"`
	FriendStatus           int                  `json:"friend_status"`
	Games                  string               `json:"games"`
	HasMobile              int                  `json:"has_mobile"`
	HasPhoto               int                  `json:"has_photo"`
	HomeTown               string               `json:"home_town"`
	Interests              string               `json:"interests"`
	IsFavorite             int                  `json:"is_favorite"`
	IsFriend               int                  `json:"is_friend"`
	IsHiddenFromFeed       int                  `json:"is_hidden_from_feed"`
	LastSeen               UserLastSeen         `json:"last_seen"`
	Lists                  string               `json:"lists"`
	MaidenName             string               `json:"maiden_name"`
	Military               UserMilitary         `json:"military"`
	Movies                 string               `json:"movies"`
	Music                  string               `json:"music"`
	Nickname               string               `json:"nickname"`
	Occupation             UserOccupation       `json:"occupation"`
	Online                 int                  `json:"online"`
	Personal               UserPersonal         `json:"personal"`
	Photo50                string               `json:"photo_50"`
	Photo100               string               `json:"photo_100"`
	Photo200Orig           string               `json:"photo_200_orig"`
	Photo200               string               `json:"photo_200"`
	Photo400Orig           string               `json:"photo_400_orig"`
	PhotoID                string               `json:"photo_id"`
	PhotoMax               string               `json:"photo_max"`
	PhotoMaxOrig           string               `json:"photo_max_orig"`
	Quotes                 string               `json:"quotes"`
	Relatives              []UserRelatives      `json:"relatives"`
	Relation               int                  `json:"relation"`
	RelationPartner        UsersRelationPartner `json:"relation_partner"`
	Schools                []UserSchools        `json:"schools"`
	ScreenName             string               `json:"screen_name"`
	Sex                    int                  `json:"sex"`
	Site                   string               `json:"site"`
	Status                 string               `json:"status"`
	Timezone               int                  `json:"timezone"`
	Trending               int                  `json:"trending"`
	Tv                     string               `json:"tv"`
	Universities           []UserUniversities   `json:"universities"`
	Verified               int                  `json:"verified"`
	Role                   string               `json:"role"`
	IsClosed               bool                 `json:"is_closed"`
	CanAccessClosed        bool                 `json:"can_access_closed"`
}

UsersGetAns - объект ответа при запросе пользователей

type UsersGetSubscriptionsAns

type UsersGetSubscriptionsAns struct {
	Count  int                `json:"count"`
	Items  []GroupsGetByIDAns `json:"items"`
	Users  CountInt           `json:"users"`
	Groups CountInt           `json:"groups"`
}

UsersGetSubscriptionsAns - объект списка подписок человека

type UsersRelationPartner

type UsersRelationPartner struct {
	ID        int    `json:"id"`
	FirstName string `json:"first_name"`
	LastName  string `json:"last_name"`
}

UsersRelationPartner - объект партнера

type UtilsGetLinkStatsAns

type UtilsGetLinkStatsAns struct {
	Key   string                   `json:"key"`
	Stats []UtilsGetLinkStatsStats `json:"stats"`
}

UtilsGetLinkStatsAns - объект ответа при запросе статистики короткой ссылки

type UtilsGetLinkStatsStats

type UtilsGetLinkStatsStats struct {
	Timestamp int         `json:"timestamp"`
	Views     int         `json:"views"`
	SexAge    []SexAge    `json:"sex_age"`
	Countries []Countries `json:"countries"`
	Cities    []Cities    `json:"cities"`
}

UtilsGetLinkStatsStats - объект статистики короткой ссылки

type UtilsGetShortLinkAns

type UtilsGetShortLinkAns struct {
	ShortURL  string `json:"short_url"`
	URL       string `json:"url"`
	Key       string `json:"key"`
	AccessKey string `json:"access_key"`
}

UtilsGetShortLinkAns - объект ответа при запросе короткой ссылки

type UtilsResolveScreenNameAns

type UtilsResolveScreenNameAns struct {
	Type     string `json:"type"`
	ObjectID int    `json:"object_id"`
}

UtilsResolveScreenNameAns - объект ответа при запросе резольвинка короткого имени

type VideoGetAns

type VideoGetAns struct {
	Count  int            `json:"count"`
	Offset int            `json:"offset"`
	Items  []VideoGetItem `json:"items"`
}

VideoGetAns - объект списка видео

type VideoGetCommentsAns

type VideoGetCommentsAns struct {
	Count  int                   `json:"count"`
	Offset int                   `json:"offset"`
	Items  []WallGetCommentsItem `json:"items"`
}

VideoGetCommentsAns - объект списка комментариев

type VideoGetItem

type VideoGetItem struct {
	ID         int      `json:"id"`
	OwnerID    int      `json:"owner_id"`
	Title      string   `json:"title"`
	Duration   int      `json:"duration"`
	Date       int64    `json:"date"`
	Comments   int      `json:"comments"`
	Views      int      `json:"views"`
	Likes      LikeData `json:"likes"`
	Reposts    LikeData `json:"reposts"`
	Platform   string   `json:"platform"`
	Player     string   `json:"player"`
	AddingDate int64    `json:"adding_date"`
}

VideoGetItem - объект видео

type WallGetAns

type WallGetAns struct {
	Count int              `json:"count"`
	Items []WallGetByIDAns `json:"items"`
}

WallGetAns - объект ответа при запросе постов

type WallGetByIDAns

type WallGetByIDAns struct {
	ID           int              `json:"id"`
	OwnerID      int              `json:"owner_id"`
	FromID       int              `json:"from_id"`
	CreatedBy    int              `json:"created_by"`
	Date         int64            `json:"date"`
	Text         string           `json:"text"`
	ReplyOwnerID int              `json:"reply_owner_id"`
	ReplyPostID  int              `json:"reply_post_id"`
	FriendsOnly  int              `json:"friends_only"`
	Comments     CommentData      `json:"comments"`
	Likes        LikeData         `json:"likes"`
	Reposts      LikeData         `json:"reposts"`
	Views        LikeData         `json:"views"`
	PostType     string           `json:"post_type"`
	Attachments  []Attachments    `json:"attachments"`
	SignerID     int              `json:"signer_id"`
	CopyHistory  []WallGetByIDAns `json:"copy_history"`
	IsPinned     int              `json:"is_pinned"`
	MarkedAsAds  int              `json:"marked_as_ads"`
	PostponedID  int              `json:"postponed_id"`
}

WallGetByIDAns - обект постов

type WallGetCommentsAns

type WallGetCommentsAns struct {
	Count  int                   `json:"count"`
	Offset int                   `json:"offset"`
	Items  []WallGetCommentsItem `json:"items"`
}

WallGetCommentsAns - объект комментариев

type WallGetCommentsItem

type WallGetCommentsItem struct {
	ID             int                       `json:"id"`
	FromID         int                       `json:"from_id"`
	Date           int64                     `json:"date"`
	Text           string                    `json:"text"`
	ReplyToUser    int                       `json:"reply_to_user"`
	ReplyToComment int                       `json:"reply_to_comment"`
	Attachments    []Attachments             `json:"attachments"`
	Likes          LikeData                  `json:"likes"`
	PhotoID        int                       `json:"photo_id"`
	PhotoOwnerID   int                       `json:"photo_owner_id"`
	VideoID        int                       `json:"video_id"`
	VideoOwnerID   int                       `json:"video_owner_id"`
	PostID         int                       `json:"post_id"`
	PostOwnerID    int                       `json:"post_owner_id"`
	MarketOwnerID  int                       `json:"market_owner_id"`
	ItemID         int                       `json:"item_id"`
	TopicID        int                       `json:"topic_id"`
	TopicOwnerID   int                       `json:"topic_owner_id"`
	PID            int                       `json:"pid"`
	Thread         WallGetCommentsItemThread `json:"thread"`
	Deleted        bool                      `json:"deleted"`
}

WallGetCommentsItem - объект комментария

type WallGetCommentsItemThread

type WallGetCommentsItemThread struct {
	Count           int                   `json:"count"`
	Items           []WallGetCommentsItem `json:"items"`
	CanPost         bool                  `json:"can_post"`
	ShowReplyButton bool                  `json:"show_reply_button"`
	GroupsCanPost   bool                  `json:"groups_can_post"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL