api

package
v2.16.1 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2023 License: MIT Imports: 21 Imported by: 73

README

API

PkgGoDev VK

Данная библиотека поддерживает версию API 5.131.

Запросы

В начале необходимо инициализировать api с помощью ключа доступа:

vk := api.NewVK("<TOKEN>")
Запросы к API
  • users.get -> vk.UsersGet(api.Params{})
  • groups.get с extended=1 -> vk.GroupsGetExtended(api.Params{})

Список всех методов можно найти на данной странице.

Пример запроса users.get

users, err := vk.UsersGet(api.Params{
	"user_ids": 1,
})
if err != nil {
	log.Fatal(err)
}
Параметры

PkgGoDev

Модуль params предназначен для генерации параметров запроса.

// import "github.com/SevereCloud/vksdk/v2/api/params"

b := params.NewMessageSendBuilder()
b.PeerID(123)
b.Random(0)
b.DontParseLinks(false)
b.Message("Test message")

res, err = api.MessageSend(b.Params)
Обработка ошибок

VK

Обработка ошибок полностью поддерживает методы go 1.13

if errors.Is(err, api.ErrAuth) {
	log.Println("User authorization failed")
}
var e *api.Error
if errors.As(err, &e) {
	switch e.Code {
	case api.ErrCaptcha:
		log.Println("Требуется ввод кода с картинки (Captcha)")
		log.Printf("sid %s img %s", e.CaptchaSID, e.CaptchaImg)
	case 1:
		log.Println("Код ошибки 1")
	default:
		log.Printf("Ошибка %d %s", e.Code, e.Text)
	}
}

Для Execute существует отдельная ошибка ExecuteErrors

Поддержка MessagePack и zstd

Результат перехода с gzip (JSON) на zstd (msgpack):

  • в 7 раз быстрее сжатие (–1 мкс);
  • на 10% меньше размер данных (8 Кбайт вместо 9 Кбайт);
  • продуктовый эффект не статзначимый :(

Как мы отказались от JPEG, JSON, TCP и ускорили ВКонтакте в два раза

VK API способно возвращать ответ в виде MessagePack. Это эффективный формат двоичной сериализации, похожий на JSON, только быстрее и меньше по размеру.

ВНИМАНИЕ, C MessagePack НЕКОТОРЫЕ МЕТОДЫ МОГУТ ВОЗВРАЩАТЬ СЛОМАННУЮ КОДИРОВКУ.

Для сжатия, вместо классического gzip, можно использовать zstd. Сейчас vksdk поддерживает zstd без словаря. Если кто знает как получать словарь, отпишитесь сюда.

vk := api.NewVK(os.Getenv("USER_TOKEN"))

method := "store.getStickersKeywords"
params := api.Params{
	"aliases":       true,
	"all_products":  true,
	"need_stickers": true,
}

r, err := vk.Request(method, params) // Content-Length: 44758
if err != nil {
	log.Fatal(err)
}
log.Println("json:", len(r)) // json: 814231

vk.EnableMessagePack() // Включаем поддержку MessagePack
vk.EnableZstd() // Включаем поддержку zstd

r, err = vk.Request(method, params) // Content-Length: 35755
if err != nil {
	log.Fatal(err)
}
log.Println("msgpack:", len(r)) // msgpack: 650775
Запрос любого метода

Пример запроса users.get

// Определяем структуру, которую вернет API
var response []object.UsersUser
var err api.Error

params := api.Params{
	"user_ids": 1,
}

// Делаем запрос
err = vk.RequestUnmarshal("users.get", &response, params)
if err != nil {
	log.Fatal(err)
}

log.Print(response)
Execute

PkgGoDev VK

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

var response struct {
	Text string `json:"text"`
}

err = vk.Execute(`return {text: "hello"};`, &response)
if err != nil {
	log.Fatal(err)
}

log.Print(response.Text)
Обработчик запросов

Обработчик vk.Handler должен возвращать структуру ответа от VK API и ошибку. В качестве параметров принимать название метода и параметры.

vk.Handler = func(method string, params ...api.Params) (api.Response, error) {
	// ...
}

Это может потребоваться, если вы можете поставить свой обработчик с fasthttp и логгером.

Стандартный обработчик использует encoding/json и net/http. В стандартном обработчике можно настроить ограничитель запросов и HTTP клиент.

Ограничитель запросов

К методам API ВКонтакте (за исключением методов из секций secure и ads) с ключом доступа пользователя или сервисным ключом доступа можно обращаться не чаще 3 раз в секунду. Для ключа доступа сообщества ограничение составляет 20 запросов в секунду. Если логика Вашего приложения подразумевает вызов нескольких методов подряд, имеет смысл обратить внимание на метод execute. Он позволяет совершить до 25 обращений к разным методам в рамках одного запроса.

Для методов секции ads действуют собственные ограничения, ознакомиться с ними Вы можете на этой странице.

Максимальное число обращений к методам секции secure зависит от числа пользователей, установивших приложение. Если приложение установило меньше 10 000 человек, то можно совершать 5 запросов в секунду, до 100 000 — 8 запросов, до 1 000 000 — 20 запросов, больше 1 млн. — 35 запросов в секунду.

Если Вы превысите частотное ограничение, сервер вернет ошибку с кодом 6: "Too many requests per second.".

С помощью параметра vk.Limit можно установить ограничение на определенное количество запросов в секунду

HTTP client

В модуле реализована возможность изменять HTTP клиент с помощью параметра vk.Client

Пример прокси


dialer, _ := proxy.SOCKS5("tcp", "127.0.0.1:9050", nil, proxy.Direct)
httpTransport := &http.Transport{
	Dial:              dialer.Dial,
}
httpTransport.Dial = dialer.Dial

client := &http.Client{
	Transport: httpTransport,
}

vk.Client = client
Ошибка с Captcha

VK

Если какое-либо действие (например, отправка сообщения) выполняется пользователем слишком часто, то запрос к API может возвращать ошибку "Captcha needed". При этом пользователю понадобится ввести код с изображения и отправить запрос повторно с передачей введенного кода Captcha в параметрах запроса.

Код ошибки: 14
Текст ошибки: Captcha needed

Если возникает данная ошибка, то в сообщении об ошибке передаются также следующие параметры:

  • err.CaptchaSID - идентификатор captcha
  • err.CaptchaImg - ссылка на изображение, которое нужно показать пользователю, чтобы он ввел текст с этого изображения.

В этом случае следует запросить пользователя ввести текст с изображения err.CaptchaImg и повторить запрос, добавив в него параметры:

  • captcha_sid - полученный идентификатор
  • captcha_key - текст, который ввел пользователь

Загрузка файлов

VK

1. Загрузка фотографий в альбом

Допустимые форматы: JPG, PNG, GIF. Файл объемом не более 50 МБ, соотношение сторон не менее 1:20

Загрузка фотографий в альбом для текущего пользователя:

photosPhoto, err = vk.UploadPhoto(albumID, response.Body)

Загрузка фотографий в альбом для группы:

photosPhoto, err = vk.UploadPhotoGroup(groupID, albumID, response.Body)
2. Загрузка фотографий на стену

Допустимые форматы: JPG, PNG, GIF. Файл объемом не более 50 МБ, соотношение сторон не менее 1:20

photosPhoto, err = vk.UploadWallPhoto(response.Body)

Загрузка фотографий в альбом для группы:

photosPhoto, err = vk.UploadWallPhotoGroup(groupID, response.Body)
3. Загрузка главной фотографии пользователя или сообщества

Допустимые форматы: JPG, PNG, GIF. Ограничения: размер не менее 200x200px, соотношение сторон от 0.25 до 3, сумма высоты и ширины не более 14000px, файл объемом не более 50 МБ, соотношение сторон не менее 1:20.

Загрузка главной фотографии пользователя

photosPhoto, err = vk.UploadUserPhoto(file)

Загрузка фотографии пользователя или сообщества с миниатюрой

photosPhoto, err = vk.UploadOwnerPhoto(ownerID, squareСrop,file)

Для загрузки главной фотографии сообщества необходимо передать его идентификатор со знаком «минус» в параметре ownerID.

Дополнительно Вы можете передать параметр squareСrop в формате "x,y,w" (без кавычек), где x и y — координаты верхнего правого угла миниатюры, а w — сторона квадрата. Тогда для фотографии также будет подготовлена квадратная миниатюра.

Загрузка фотографии пользователя или сообщества без миниатюры:

photosPhoto, err = vk.UploadOwnerPhoto(ownerID, "", file)
4. Загрузка фотографии в личное сообщение

Допустимые форматы: JPG, PNG, GIF. Ограничения: сумма высоты и ширины не более 14000px, файл объемом не более 50 МБ, соотношение сторон не менее 1:20.

photosPhoto, err = vk.UploadMessagesPhoto(peerID, file)
5. Загрузка главной фотографии для чата

Допустимые форматы: JPG, PNG, GIF. Ограничения: размер не менее 200x200px, соотношение сторон от 0.25 до 3, сумма высоты и ширины не более 14000px, файл объемом не более 50 МБ, соотношение сторон не менее 1:20.

Без обрезки:

messageInfo, err = vk.UploadChatPhoto(peerID, file)

С обрезкой:

messageInfo, err = vk.UploadChatPhotoCrop(peerID, cropX, cropY, cropWidth, file)
6. Загрузка фотографии для товара

Допустимые форматы: JPG, PNG, GIF. Ограничения: минимальный размер фото — 400x400px, сумма высоты и ширины не более 14000px, файл объемом не более 50 МБ, соотношение сторон не менее 1:20.

Если Вы хотите загрузить основную фотографию товара, необходимо передать параметр mainPhoto = true. Если фотография не основная, она не будет обрезаться.

Без обрезки:

photosPhoto, err = vk.UploadMarketPhoto(groupID, mainPhoto, file)

Основную фотографию с обрезкой:

photosPhoto, err = vk.UploadMarketPhotoCrop(groupID, cropX, cropY, cropWidth, file)
7. Загрузка фотографии для подборки товаров

Допустимые форматы: JPG, PNG, GIF. Ограничения: минимальный размер фото — 1280x720px, сумма высоты и ширины не более 14000px, файл объемом не более 50 МБ, соотношение сторон не менее 1:20.

photosPhoto, err = vk.UploadMarketAlbumPhoto(groupID, file)
9. Загрузка видеозаписей

Допустимые форматы: AVI, MP4, 3GP, MPEG, MOV, MP3, FLV, WMV.

Параметры

videoUploadResponse, err = vk.UploadVideo(params, file)

После загрузки видеозапись проходит обработку и в списке видеозаписей может появиться спустя некоторое время.

10. Загрузка документов

Допустимые форматы: любые форматы за исключением mp3 и исполняемых файлов. Ограничения: файл объемом не более 200 МБ.

title - название файла с расширением

tags - метки для поиска

typeDoc - тип документа.

  • doc - обычный документ;
  • audio_message - голосовое сообщение

Загрузить документ:

docsDoc, err = vk.UploadDoc(title, tags, file)

Загрузить документ в группу:

docsDoc, err = vk.UploadGroupDoc(groupID, title, tags, file)

Загрузить документ, для последующей отправки документа на стену:

docsDoc, err = vk.UploadWallDoc(title, tags, file)

Загрузить документ в группу, для последующей отправки документа на стену:

docsDoc, err = vk.UploadGroupWallDoc(groupID, title, tags, file)

Загрузить документ в личное сообщение:

docsDoc, err = vk.UploadMessagesDoc(peerID, typeDoc, title, tags, file)
11. Загрузка обложки сообщества

Допустимые форматы: JPG, PNG, GIF. Ограничения: минимальный размер фото — 795x200px, сумма высоты и ширины не более 14000px, файл объемом не более 50 МБ. Рекомендуемый размер: 1590x400px. В сутки можно загрузить не более 1500 обложек.

Необходимо указать координаты обрезки фотографии в параметрах cropX, cropY, cropX2, cropY2.

photo, err = vk.UploadOwnerCoverPhoto(groupID, cropX, cropY, cropX2, cropY2, file)
12. Загрузка аудиосообщения

Допустимые форматы: Ogg Opus. Ограничения: sample rate 16kHz, variable bitrate 16 kbit/s, длительность не более 5 минут.

docsDoc, err = vk.UploadMessagesDoc(peerID, "audio_message", title, tags, file)
13. Загрузка истории

Допустимые форматы:​ JPG, PNG, GIF. Ограничения:​ сумма высоты и ширины не более 14000px, файл объемом не более 10МБ. Формат видео: h264 video, aac audio, максимальное разрешение 720х1280, 30fps.

Загрузить историю с фотографией. Параметры

uploadInfo, err = vk.UploadStoriesPhoto(params, file)

Загрузить историю с видео. Параметры

uploadInfo, err = vk.UploadStoriesVideo(params, file)
Загрузка фоновой фотографии в опрос

Допустимые форматы: JPG, PNG, GIF. Ограничения: сумма высоты и ширины не более 14000px, файл объемом не более 50 МБ, соотношение сторон не менее 1:20.

photosPhoto, err = vk.UploadPollsPhoto(file)
photosPhoto, err = vk.UploadOwnerPollsPhoto(ownerID, file)

Для загрузки фотографии сообщества необходимо передать его идентификатор со знаком «минус» в параметре ownerID.

Загрузка фотографии для карточки

Для карточек используются квадратные изображения минимальным размером 400х400. В случае загрузки неквадратного изображения, оно будет обрезано до квадратного. Допустимые форматы: JPG, PNG, BMP, TIFF или GIF. Ограничения: файл объемом не более 5 МБ.

photo, err = vk.UploadPrettyCardsPhoto(file)
Загрузка обложки для формы

Для форм сбора заявок используются прямоугольные изображения размером 1200х300. В случае загрузки изображения другого размера, оно будет автоматически обрезано до требуемого. Допустимые форматы: JPG, PNG, BMP, TIFF или GIF. Ограничения: файл объемом не более 5 МБ.

photo, err = vk.UploadLeadFormsPhoto(file)

Полученные данные можно использовать в методах leadForms.create и leadForms.edit.

Полученные данные можно использовать в методах prettyCards.create и prettyCards.edit.

Загрузки фотографии в коллекцию приложения для виджетов приложений сообществ

imageType (string) - тип изображения.

Возможные значения:

  • 24x24
  • 50x50
  • 160x160
  • 160x240
  • 510x128
image, err = vk.UploadAppImage(imageType, file)
Загрузки фотографии в коллекцию сообщества для виджетов приложений сообществ

imageType (string) - тип изображения.

Возможные значения:

  • 24x24
  • 50x50
  • 160x160
  • 160x240
  • 510x128
image, err = vk.UploadGroupAppImage(imageType, file)
Примеры

Загрузка фотографии в альбом:

response, err := os.Open("photo.jpeg")
if err != nil {
	log.Fatal(err)
}
defer response.Body.Close()

photo, err = vk.UploadPhoto(albumID, response.Body)
if err != nil {
	log.Fatal(err)
}

Загрузка фотографии в альбом из интернета:

response, err := http.Get("https://sun9-45.userapi.com/c638629/v638629852/2afba/o-dvykjSIB4.jpg")
if err != nil {
	log.Fatal(err)
}
defer response.Body.Close()

photo, err = vk.UploadPhoto(albumID, response.Body)
if err != nil {
	log.Fatal(err)
}

Documentation

Overview

Package api implements VK API.

See more https://vk.com/dev/api_requests

Index

Constants

View Source
const (
	Version   = vksdk.API
	MethodURL = "https://api.vk.com/method/"
)

Api constants.

View Source
const (
	LimitUserToken  = 3
	LimitGroupToken = 20
)

VKontakte API methods (except for methods from secure and ads sections) with user access key or service access key can be accessed no more than 3 times per second. The community access key is limited to 20 requests per second.

Maximum amount of calls to the secure section methods depends on the app's users amount. If an app has less than 10 000 users, 5 requests per second, up to 100 000 – 8 requests, up to 1 000 000 – 20 requests, 1 000 000+ – 35 requests.

The ads section methods are subject to their own limitations, you can read them on this page - https://vk.com/dev/ads_limits

If one of this limits is exceeded, the server will return following error: "Too many requests per second". (errors.TooMany).

If your app's logic implies many requests in a row, check the execute method. It allows for up to 25 requests for different methods in a single request.

In addition to restrictions on the frequency of calls, there are also quantitative restrictions on calling the same type of methods.

After exceeding the quantitative limit, access to a particular method may require entering a captcha (see https://vk.com/dev/captcha_error), and may also be temporarily restricted (in this case, the server does not return a response to the call of a particular method, but handles any other requests without problems).

If this error occurs, the following parameters are also passed in the error message:

CaptchaSID - identifier captcha.

CaptchaImg - a link to the image that you want to show the user to enter text from that image.

In this case, you should ask the user to enter text from the CaptchaImg image and repeat the request by adding parameters to it:

captcha_sid - the obtained identifier;

captcha_key - text entered by the user.

More info: https://vk.com/dev/api_requests

Variables

This section is empty.

Functions

func FmtValue

func FmtValue(value interface{}, depth int) string

FmtValue return vk format string.

Types

type AccountChangePasswordResponse

type AccountChangePasswordResponse struct {
	Token string `json:"token"`
}

AccountChangePasswordResponse struct.

type AccountGetActiveOffersResponse

type AccountGetActiveOffersResponse struct {
	Count int                   `json:"count"`
	Items []object.AccountOffer `json:"items"`
}

AccountGetActiveOffersResponse struct.

type AccountGetBannedResponse

type AccountGetBannedResponse struct {
	Count int   `json:"count"`
	Items []int `json:"items"`
	object.ExtendedResponse
}

AccountGetBannedResponse struct.

type AccountGetCountersResponse

type AccountGetCountersResponse object.AccountAccountCounters

AccountGetCountersResponse struct.

type AccountGetInfoResponse

type AccountGetInfoResponse object.AccountInfo

AccountGetInfoResponse struct.

type AccountGetProfileInfoResponse

type AccountGetProfileInfoResponse object.AccountUserSettings

AccountGetProfileInfoResponse struct.

type AccountGetPushSettingsResponse

type AccountGetPushSettingsResponse object.AccountPushSettings

AccountGetPushSettingsResponse struct.

type AccountSaveProfileInfoResponse

type AccountSaveProfileInfoResponse struct {
	Changed     object.BaseBoolInt        `json:"changed"`
	NameRequest object.AccountNameRequest `json:"name_request"`
}

AccountSaveProfileInfoResponse struct.

type AdsAddOfficeUsersItem added in v2.7.0

type AdsAddOfficeUsersItem struct {
	OK    object.BaseBoolInt
	Error AdsError
}

AdsAddOfficeUsersItem struct.

func (*AdsAddOfficeUsersItem) DecodeMsgpack added in v2.13.0

func (r *AdsAddOfficeUsersItem) DecodeMsgpack(dec *msgpack.Decoder) error

DecodeMsgpack func.

func (*AdsAddOfficeUsersItem) UnmarshalJSON added in v2.7.0

func (r *AdsAddOfficeUsersItem) UnmarshalJSON(data []byte) (err error)

UnmarshalJSON func.

type AdsAddOfficeUsersResponse added in v2.7.0

type AdsAddOfficeUsersResponse []AdsAddOfficeUsersItem

AdsAddOfficeUsersResponse struct.

type AdsCheckLinkResponse added in v2.7.0

type AdsCheckLinkResponse struct {
	// link status
	Status object.AdsLinkStatus `json:"status"`

	// (if status = disallowed) — description of the reason
	Description string `json:"description,omitempty"`

	// (if the end link differs from original and status = allowed) — end link.
	RedirectURL string `json:"redirect_url,omitempty"`
}

AdsCheckLinkResponse struct.

type AdsCreateAdsResponse added in v2.7.0

type AdsCreateAdsResponse []struct {
	ID int `json:"id"`
	AdsError
}

AdsCreateAdsResponse struct.

type AdsCreateCampaignsResponse added in v2.7.0

type AdsCreateCampaignsResponse []struct {
	ID int `json:"id"`
	AdsError
}

AdsCreateCampaignsResponse struct.

type AdsCreateClientsResponse added in v2.7.0

type AdsCreateClientsResponse []struct {
	ID int `json:"id"`
	AdsError
}

AdsCreateClientsResponse struct.

type AdsCreateLookalikeRequestResponse added in v2.7.0

type AdsCreateLookalikeRequestResponse struct {
	RequestID int `json:"request_id"`
}

AdsCreateLookalikeRequestResponse struct.

type AdsCreateTargetGroupResponse added in v2.7.0

type AdsCreateTargetGroupResponse struct {
	ID int `json:"id"`
}

AdsCreateTargetGroupResponse struct.

type AdsCreateTargetPixelResponse added in v2.7.0

type AdsCreateTargetPixelResponse struct {
	ID    int    `json:"id"`
	Pixel string `json:"pixel"`
}

AdsCreateTargetPixelResponse struct.

type AdsDeleteAdsResponse added in v2.7.0

type AdsDeleteAdsResponse []ErrorType

AdsDeleteAdsResponse struct.

Each response is 0 — deleted successfully, or an error code.

type AdsDeleteCampaignsResponse added in v2.7.0

type AdsDeleteCampaignsResponse []ErrorType

AdsDeleteCampaignsResponse struct.

Each response is 0 — deleted successfully, or an error code.

type AdsDeleteClientsResponse added in v2.7.0

type AdsDeleteClientsResponse []ErrorType

AdsDeleteClientsResponse struct.

Each response is 0 — deleted successfully, or an error code.

type AdsError added in v2.7.0

type AdsError struct {
	Code ErrorType `json:"error_code"`
	Desc string    `json:"error_desc"`
}

AdsError struct.

func (AdsError) Error added in v2.7.0

func (e AdsError) Error() string

Error returns the message of a AdsError.

func (AdsError) Is added in v2.7.0

func (e AdsError) Is(target error) bool

Is unwraps its first argument sequentially looking for an error that matches the second.

type AdsGetAccountsResponse

type AdsGetAccountsResponse []object.AdsAccount

AdsGetAccountsResponse struct.

type AdsGetAdsLayoutResponse added in v2.7.0

type AdsGetAdsLayoutResponse []object.AdsAdLayout

AdsGetAdsLayoutResponse struct.

type AdsGetAdsResponse added in v2.7.0

type AdsGetAdsResponse []object.AdsAd

AdsGetAdsResponse struct.

type AdsGetMusiciansResponse

type AdsGetMusiciansResponse struct {
	Items []object.AdsMusician
}

AdsGetMusiciansResponse struct.

type AdsGetTargetGroupsResponse added in v2.7.0

type AdsGetTargetGroupsResponse []object.AdsTargetGroup

AdsGetTargetGroupsResponse struct.

type AppWidgetsGetAppImageUploadServerResponse

type AppWidgetsGetAppImageUploadServerResponse struct {
	UploadURL string `json:"upload_url"`
}

AppWidgetsGetAppImageUploadServerResponse struct.

type AppWidgetsGetAppImagesResponse

type AppWidgetsGetAppImagesResponse struct {
	Count int                      `json:"count"`
	Items []object.AppWidgetsImage `json:"items"`
}

AppWidgetsGetAppImagesResponse struct.

type AppWidgetsGetGroupImageUploadServerResponse

type AppWidgetsGetGroupImageUploadServerResponse struct {
	UploadURL string `json:"upload_url"`
}

AppWidgetsGetGroupImageUploadServerResponse struct.

type AppWidgetsGetGroupImagesResponse

type AppWidgetsGetGroupImagesResponse struct {
	Count int                      `json:"count"`
	Items []object.AppWidgetsImage `json:"items"`
}

AppWidgetsGetGroupImagesResponse struct.

type AppsGetCatalogResponse

type AppsGetCatalogResponse struct {
	Count int              `json:"count"`
	Items []object.AppsApp `json:"items"`
	object.ExtendedResponse
}

AppsGetCatalogResponse struct.

type AppsGetFriendsListExtendedResponse

type AppsGetFriendsListExtendedResponse struct {
	Count int                `json:"count"`
	Items []object.UsersUser `json:"items"`
}

AppsGetFriendsListExtendedResponse struct.

type AppsGetFriendsListResponse

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

AppsGetFriendsListResponse struct.

type AppsGetLeaderboardExtendedResponse

type AppsGetLeaderboardExtendedResponse struct {
	Count int `json:"count"`
	Items []struct {
		Score  int `json:"score"`
		UserID int `json:"user_id"`
	} `json:"items"`
	Profiles []object.UsersUser `json:"profiles"`
}

AppsGetLeaderboardExtendedResponse struct.

type AppsGetLeaderboardResponse

type AppsGetLeaderboardResponse struct {
	Count int                      `json:"count"`
	Items []object.AppsLeaderboard `json:"items"`
}

AppsGetLeaderboardResponse struct.

type AppsGetResponse

type AppsGetResponse struct {
	Count int              `json:"count"`
	Items []object.AppsApp `json:"items"`
	object.ExtendedResponse
}

AppsGetResponse struct.

type AppsGetScopesResponse

type AppsGetScopesResponse struct {
	Count int                `json:"count"`
	Items []object.AppsScope `json:"items"`
}

AppsGetScopesResponse struct.

type AppsGetTestingGroupsResponse added in v2.15.0

type AppsGetTestingGroupsResponse []object.AppsTestingGroup

AppsGetTestingGroupsResponse struct.

type AppsUpdateMetaForTestingGroupResponse added in v2.15.0

type AppsUpdateMetaForTestingGroupResponse struct {
	GroupID int `json:"group_id"`
}

AppsUpdateMetaForTestingGroupResponse struct.

type AuthExchangeSilentAuthTokenResponse added in v2.13.0

type AuthExchangeSilentAuthTokenResponse struct {
	AccessToken              string                    `json:"access_token"`
	AccessTokenID            string                    `json:"access_token_id"`
	UserID                   int                       `json:"user_id"`
	Phone                    string                    `json:"phone"`
	PhoneValidated           interface{}               `json:"phone_validated"`
	IsPartial                bool                      `json:"is_partial"`
	IsService                bool                      `json:"is_service"`
	AdditionalSignupRequired bool                      `json:"additional_signup_required"`
	Email                    string                    `json:"email"`
	Source                   ExchangeSilentTokenSource `json:"source"`
	SourceDescription        string                    `json:"source_description"`
}

AuthExchangeSilentAuthTokenResponse struct.

type AuthGetProfileInfoBySilentTokenResponse added in v2.13.0

type AuthGetProfileInfoBySilentTokenResponse struct {
	Success []object.AuthSilentTokenProfile `json:"success"`
	Errors  []AuthSilentTokenError          `json:"errors"`
}

AuthGetProfileInfoBySilentTokenResponse struct.

type AuthRestoreResponse

type AuthRestoreResponse struct {
	Success int    `json:"success"`
	SID     string `json:"sid"`
}

AuthRestoreResponse struct.

type AuthSilentTokenError added in v2.13.0

type AuthSilentTokenError struct {
	Token       string    `json:"token"`
	Code        ErrorType `json:"code"`
	Description string    `json:"description"`
}

AuthSilentTokenError struct.

func (AuthSilentTokenError) Error added in v2.13.0

func (e AuthSilentTokenError) Error() string

Error returns the description of a AuthSilentTokenError.

func (AuthSilentTokenError) Is added in v2.13.0

func (e AuthSilentTokenError) Is(target error) bool

Is unwraps its first argument sequentially looking for an error that matches the second.

type BoardGetCommentsExtendedResponse

type BoardGetCommentsExtendedResponse struct {
	Count      int                        `json:"count"`
	Items      []object.BoardTopicComment `json:"items"`
	Poll       object.BoardTopicPoll      `json:"poll"`
	RealOffset int                        `json:"real_offset"`
	Profiles   []object.UsersUser         `json:"profiles"`
	Groups     []object.GroupsGroup       `json:"groups"`
}

BoardGetCommentsExtendedResponse struct.

type BoardGetCommentsResponse

type BoardGetCommentsResponse struct {
	Count      int                        `json:"count"`
	Items      []object.BoardTopicComment `json:"items"`
	Poll       object.BoardTopicPoll      `json:"poll"`
	RealOffset int                        `json:"real_offset"`
}

BoardGetCommentsResponse struct.

type BoardGetTopicsExtendedResponse

type BoardGetTopicsExtendedResponse struct {
	Count        int                  `json:"count"`
	Items        []object.BoardTopic  `json:"items"`
	DefaultOrder float64              `json:"default_order"` // BUG(VK): default_order int https://vk.com/bug136682
	CanAddTopics object.BaseBoolInt   `json:"can_add_topics"`
	Profiles     []object.UsersUser   `json:"profiles"`
	Groups       []object.GroupsGroup `json:"groups"`
}

BoardGetTopicsExtendedResponse struct.

type BoardGetTopicsResponse

type BoardGetTopicsResponse struct {
	Count        int                 `json:"count"`
	Items        []object.BoardTopic `json:"items"`
	DefaultOrder float64             `json:"default_order"` // BUG(VK): default_order int https://vk.com/bug136682
	CanAddTopics object.BaseBoolInt  `json:"can_add_topics"`
}

BoardGetTopicsResponse struct.

type CallsStartResponse added in v2.16.0

type CallsStartResponse struct {
	JoinLink string `json:"join_link"`
	CallID   string `json:"call_id"`
}

CallsStartResponse struct.

type DatabaseGetChairsResponse

type DatabaseGetChairsResponse struct {
	Count int                 `json:"count"`
	Items []object.BaseObject `json:"items"`
}

DatabaseGetChairsResponse struct.

type DatabaseGetCitiesByIDResponse

type DatabaseGetCitiesByIDResponse []object.DatabaseCity

DatabaseGetCitiesByIDResponse struct.

type DatabaseGetCitiesResponse

type DatabaseGetCitiesResponse struct {
	Count int                   `json:"count"`
	Items []object.DatabaseCity `json:"items"`
}

DatabaseGetCitiesResponse struct.

type DatabaseGetCountriesByIDResponse

type DatabaseGetCountriesByIDResponse []object.BaseObject

DatabaseGetCountriesByIDResponse struct.

type DatabaseGetCountriesResponse

type DatabaseGetCountriesResponse struct {
	Count int                 `json:"count"`
	Items []object.BaseObject `json:"items"`
}

DatabaseGetCountriesResponse struct.

type DatabaseGetFacultiesResponse

type DatabaseGetFacultiesResponse struct {
	Count int                      `json:"count"`
	Items []object.DatabaseFaculty `json:"items"`
}

DatabaseGetFacultiesResponse struct.

type DatabaseGetMetroStationsByIDResponse

type DatabaseGetMetroStationsByIDResponse []object.DatabaseMetroStation

DatabaseGetMetroStationsByIDResponse struct.

type DatabaseGetMetroStationsResponse

type DatabaseGetMetroStationsResponse struct {
	Count int                           `json:"count"`
	Items []object.DatabaseMetroStation `json:"items"`
}

DatabaseGetMetroStationsResponse struct.

type DatabaseGetRegionsResponse

type DatabaseGetRegionsResponse struct {
	Count int                     `json:"count"`
	Items []object.DatabaseRegion `json:"items"`
}

DatabaseGetRegionsResponse struct.

type DatabaseGetSchoolClassesResponse

type DatabaseGetSchoolClassesResponse [][]interface{}

DatabaseGetSchoolClassesResponse struct.

type DatabaseGetSchoolsResponse

type DatabaseGetSchoolsResponse struct {
	Count int                     `json:"count"`
	Items []object.DatabaseSchool `json:"items"`
}

DatabaseGetSchoolsResponse struct.

type DatabaseGetUniversitiesResponse

type DatabaseGetUniversitiesResponse struct {
	Count int                         `json:"count"`
	Items []object.DatabaseUniversity `json:"items"`
}

DatabaseGetUniversitiesResponse struct.

type DocsGetByIDResponse

type DocsGetByIDResponse []object.DocsDoc

DocsGetByIDResponse struct.

type DocsGetMessagesUploadServerResponse

type DocsGetMessagesUploadServerResponse struct {
	UploadURL string `json:"upload_url"`
}

DocsGetMessagesUploadServerResponse struct.

type DocsGetResponse

type DocsGetResponse struct {
	Count int              `json:"count"`
	Items []object.DocsDoc `json:"items"`
}

DocsGetResponse struct.

type DocsGetTypesResponse

type DocsGetTypesResponse struct {
	Count int                   `json:"count"`
	Items []object.DocsDocTypes `json:"items"`
}

DocsGetTypesResponse struct.

type DocsGetUploadServerResponse

type DocsGetUploadServerResponse struct {
	UploadURL string `json:"upload_url"`
}

DocsGetUploadServerResponse struct.

type DocsGetWallUploadServerResponse

type DocsGetWallUploadServerResponse struct {
	UploadURL string `json:"upload_url"`
}

DocsGetWallUploadServerResponse struct.

type DocsSaveResponse

type DocsSaveResponse struct {
	Type         string                      `json:"type"`
	AudioMessage object.MessagesAudioMessage `json:"audio_message"`
	Doc          object.DocsDoc              `json:"doc"`
	Graffiti     object.MessagesGraffiti     `json:"graffiti"`
}

DocsSaveResponse struct.

type DocsSearchResponse

type DocsSearchResponse struct {
	Count int              `json:"count"`
	Items []object.DocsDoc `json:"items"`
}

DocsSearchResponse struct.

type DonutGetFriendsResponse added in v2.7.0

type DonutGetFriendsResponse struct {
	Count int                `json:"count"`
	Items []object.UsersUser `json:"items"`
}

DonutGetFriendsResponse struct.

type DonutGetSubscriptionsResponse added in v2.7.0

type DonutGetSubscriptionsResponse struct {
	Subscriptions []object.DonutDonatorSubscriptionInfo `json:"subscriptions"`
	Count         int                                   `json:"count"`
	Profiles      []object.UsersUser                    `json:"profiles"`
	Groups        []object.GroupsGroup                  `json:"groups"`
}

DonutGetSubscriptionsResponse struct.

type DownloadedGamesGetPaidStatusResponse

type DownloadedGamesGetPaidStatusResponse struct {
	IsPaid object.BaseBoolInt `json:"is_paid"`
}

DownloadedGamesGetPaidStatusResponse struct.

type Error

type Error struct {
	Code       ErrorType    `json:"error_code"`
	Subcode    ErrorSubtype `json:"error_subcode"`
	Message    string       `json:"error_msg"`
	Text       string       `json:"error_text"`
	CaptchaSID string       `json:"captcha_sid"`
	CaptchaImg string       `json:"captcha_img"`

	// In some cases VK requires to request action confirmation from the user
	// (for Standalone apps only). Following error will be returned:
	//
	// Error code: 24
	// Error text: Confirmation required
	//
	// Following parameter is transmitted with the error message as well:
	//
	// confirmation_text – text of the message to be shown in the default
	// confirmation window.
	//
	// The app should display the default confirmation window with text from
	// confirmation_text and two buttons: "Continue" and "Cancel". If user
	// confirms the action repeat the request with an extra parameter:
	// confirm = 1.
	//
	// See https://vk.com/dev/need_confirmation
	ConfirmationText string `json:"confirmation_text"`

	// In some cases VK requires a user validation procedure. . As a result
	// starting from API version 5.0 (for the older versions captcha_error
	// will be requested) following error will be returned as a reply to any
	// API request:
	//
	// Error code: 17
	// Error text: Validation Required
	//
	// Following parameter is transmitted with an error message:
	// redirect_uri – a special address to open in a browser to pass the
	// validation procedure.
	//
	// After passing the validation a user will be redirected to the service
	// page:
	//
	// https://oauth.vk.com/blank.html#{Data required for validation}
	//
	// In case of successful validation following parameters will be
	// transmitted after #:
	//
	// https://oauth.vk.com/blank.html#success=1&access_token={NEW USER TOKEN}&user_id={USER ID}
	//
	// If a token was not received by https a new secret will be transmitted
	// as well.
	//
	// In case of unsuccessful validation following address is transmitted:
	//
	// https://oauth.vk.com/blank.html#fail=1
	//
	// See https://vk.com/dev/need_validation
	RedirectURI   string                    `json:"redirect_uri"`
	RequestParams []object.BaseRequestParam `json:"request_params"`
}

Error struct VK.

func (Error) Error

func (e Error) Error() string

Error returns the message of a Error.

func (Error) Is

func (e Error) Is(target error) bool

Is unwraps its first argument sequentially looking for an error that matches the second.

type ErrorSubtype added in v2.2.0

type ErrorSubtype int

ErrorSubtype is the subtype of an error.

func (ErrorSubtype) Error added in v2.2.0

func (e ErrorSubtype) Error() string

Error returns the message of a ErrorSubtype.

type ErrorType

type ErrorType int

ErrorType is the type of an error.

const (
	ErrNoType ErrorType = 0 // NoType error

	// Unknown error occurred
	//
	// Try again later.
	ErrUnknown ErrorType = 1

	// Application is disabled. Enable your application or use test mode
	//
	// You need to switch on the app in Settings
	// https://vk.com/editapp?id={Your API_ID}
	// or use the test mode (test_mode=1).
	ErrDisabled ErrorType = 2

	// Unknown method passed.
	//
	// Check the method name: http://vk.com/dev/methods
	ErrMethod    ErrorType = 3
	ErrSignature ErrorType = 4 // Incorrect signature

	// User authorization failed
	//
	// Make sure that you use a correct authorization type.
	ErrAuth ErrorType = 5

	// Too many requests per second
	//
	// Decrease the request frequency or use the execute method.
	// More details on frequency limits here:
	// https://vk.com/dev/api_requests
	ErrTooMany ErrorType = 6

	// Permission to perform this action is denied
	//
	// Make sure that your have received required permissions during the
	// authorization.
	// You can do it with the account.getAppPermissions method.
	// https://vk.com/dev/permissions
	ErrPermission ErrorType = 7

	// Invalid request
	//
	// Check the request syntax and used parameters list (it can be found on
	// a method description page).
	ErrRequest ErrorType = 8

	// Flood control
	//
	// You need to decrease the count of identical requests. For more efficient
	// work you may use execute.
	ErrFlood ErrorType = 9

	// Internal server error
	//
	// Try again later.
	ErrServer ErrorType = 10

	// In test mode application should be disabled or user should be authorized
	//
	// Switch the app off in Settings:
	//
	// 	https://vk.com/editapp?id={Your API_ID}
	//
	ErrEnabledInTest ErrorType = 11

	// Unable to compile code.
	ErrCompile ErrorType = 12

	// Runtime error occurred during code invocation.
	ErrRuntime ErrorType = 13

	// Captcha needed.
	//
	// See https://vk.com/dev/captcha_error
	ErrCaptcha ErrorType = 14

	// Access denied
	//
	// Make sure that you use correct identifiers and the content is available
	// for the user in the full version of the site.
	ErrAccess ErrorType = 15

	// HTTP authorization failed
	//
	// To avoid this error check if a user has the 'Use secure connection'
	// option enabled with the account.getInfo method.
	ErrAuthHTTPS ErrorType = 16

	// Validation required
	//
	// Make sure that you don't use a token received with
	// http://vk.com/dev/auth_mobile for a request from the server.
	// It's restricted.
	//
	// https://vk.com/dev/need_validation
	ErrAuthValidation ErrorType = 17
	ErrUserDeleted    ErrorType = 18 // User was deleted or banned
	ErrBlocked        ErrorType = 19 // Content blocked

	// Permission to perform this action is denied for non-standalone
	// applications.
	ErrMethodPermission ErrorType = 20

	// Permission to perform this action is allowed only for standalone and
	// OpenAPI applications.
	ErrMethodAds ErrorType = 21
	ErrUpload    ErrorType = 22 // Upload error

	// This method was disabled.
	//
	// All the methods available now are listed here: http://vk.com/dev/methods
	ErrMethodDisabled ErrorType = 23

	// Confirmation required
	//
	// In some cases VK requires to request action confirmation from the user
	// (for Standalone apps only).
	//
	// Following parameter is transmitted with the error message as well:
	//
	// confirmation_text – text of the message to be shown in the default
	// confirmation window.
	//
	// The app should display the default confirmation window
	// with text from confirmation_text and two buttons: "Continue" and
	// "Cancel".
	// If user confirms the action repeat the request with an extra parameter:
	//
	// 	confirm = 1.
	//
	// https://vk.com/dev/need_confirmation
	ErrNeedConfirmation      ErrorType = 24
	ErrNeedTokenConfirmation ErrorType = 25 // Token confirmation required
	ErrGroupAuth             ErrorType = 27 // Group authorization failed
	ErrAppAuth               ErrorType = 28 // Application authorization failed

	// Rate limit reached.
	//
	// More details on rate limits here: https://vk.com/dev/data_limits
	ErrRateLimit      ErrorType = 29
	ErrPrivateProfile ErrorType = 30 // This profile is private

	// Client version deprecated.
	ErrClientVersionDeprecated ErrorType = 34

	// Method execution was interrupted due to timeout.
	ErrExecutionTimeout ErrorType = 36

	// User was banned.
	ErrUserBanned ErrorType = 37

	// Unknown application.
	ErrUnknownApplication ErrorType = 38

	// Unknown user.
	ErrUnknownUser ErrorType = 39

	// Unknown group.
	ErrUnknownGroup ErrorType = 40

	// Additional signup required.
	ErrAdditionalSignupRequired ErrorType = 41

	// IP is not allowed.
	ErrIPNotAllowed ErrorType = 42

	// One of the parameters specified was missing or invalid
	//
	// Check the required parameters list and their format on a method
	// description page.
	ErrParam ErrorType = 100

	// Invalid application API ID
	//
	// Find the app in the administrated list in settings:
	// http://vk.com/apps?act=settings
	// And set the correct API_ID in the request.
	ErrParamAPIID   ErrorType = 101
	ErrLimits       ErrorType = 103 // Out of limits
	ErrNotFound     ErrorType = 104 // Not found
	ErrSaveFile     ErrorType = 105 // Couldn't save file
	ErrActionFailed ErrorType = 106 // Unable to process action

	// Invalid user id
	//
	// Make sure that you use a correct id. You can get an id using a screen
	// name with the utils.resolveScreenName method.
	ErrParamUserID  ErrorType = 113
	ErrParamAlbumID ErrorType = 114 // Invalid album id
	ErrParamServer  ErrorType = 118 // Invalid server
	ErrParamTitle   ErrorType = 119 // Invalid title
	ErrParamPhotos  ErrorType = 122 // Invalid photos
	ErrParamHash    ErrorType = 121 // Invalid hash
	ErrParamPhoto   ErrorType = 129 // Invalid photo
	ErrParamGroupID ErrorType = 125 // Invalid group id
	ErrParamPageID  ErrorType = 140 // Page not found
	ErrAccessPage   ErrorType = 141 // Access to page denied

	// The mobile number of the user is unknown.
	ErrMobileNotActivated ErrorType = 146

	// Application has insufficient funds.
	ErrInsufficientFunds ErrorType = 147

	// Access to the menu of the user denied.
	ErrAccessMenu ErrorType = 148

	// Invalid timestamp
	//
	// You may get a correct value with the utils.getServerTime method.
	ErrParamTimestamp ErrorType = 150
	ErrFriendsListID  ErrorType = 171 // Invalid list id

	// Reached the maximum number of lists.
	ErrFriendsListLimit ErrorType = 173

	// Cannot add user himself as friend.
	ErrFriendsAddYourself ErrorType = 174

	// Cannot add this user to friends as they have put you on their blacklist.
	ErrFriendsAddInEnemy ErrorType = 175

	// Cannot add this user to friends as you put him on blacklist.
	ErrFriendsAddEnemy ErrorType = 176

	// Cannot add this user to friends as user not found.
	ErrFriendsAddNotFound ErrorType = 177
	ErrParamNoteID        ErrorType = 180 // Note not found
	ErrAccessNote         ErrorType = 181 // Access to note denied
	ErrAccessNoteComment  ErrorType = 182 // You can't comment this note
	ErrAccessComment      ErrorType = 183 // Access to comment denied

	// Access to album denied
	//
	// Make sure you use correct ids (owner_id is always positive for users,
	// negative for communities) and the current user has access to the
	// requested content in the full version of the site.
	ErrAccessAlbum ErrorType = 200

	// Access to audio denied
	//
	// Make sure you use correct ids (owner_id is always positive for users,
	// negative for communities) and the current user has access to the
	// requested content in the full version of the site.
	ErrAccessAudio ErrorType = 201

	// Access to group denied
	//
	// Make sure that the current user is a member or admin of the community
	// (for closed and private groups and events).
	ErrAccessGroup ErrorType = 203

	// Access denied.
	ErrAccessVideo ErrorType = 204

	// Access denied.
	ErrAccessMarket ErrorType = 205

	// Access to wall's post denied.
	ErrWallAccessPost ErrorType = 210

	// Access to wall's comment denied.
	ErrWallAccessComment ErrorType = 211

	// Access to post comments denied.
	ErrWallAccessReplies ErrorType = 212

	// Access to status replies denied.
	ErrWallAccessAddReply ErrorType = 213

	// Access to adding post denied.
	ErrWallAddPost ErrorType = 214

	// Advertisement post was recently added.
	ErrWallAdsPublished ErrorType = 219

	// Too many recipients.
	ErrWallTooManyRecipients ErrorType = 220

	// User disabled track name broadcast.
	ErrStatusNoAudio ErrorType = 221

	// Hyperlinks are forbidden.
	ErrWallLinksForbidden ErrorType = 222

	// Too many replies.
	ErrWallReplyOwnerFlood ErrorType = 223

	// Too many ads posts.
	ErrWallAdsPostLimitReached ErrorType = 224

	// Donut is disabled.
	ErrDonutDisabled ErrorType = 225

	// Reaction can not be applied to the object.
	ErrLikesReactionCanNotBeApplied ErrorType = 232

	// Access to poll denied.
	ErrPollsAccess ErrorType = 250

	// Invalid answer id.
	ErrPollsAnswerID ErrorType = 252

	// Invalid poll id.
	ErrPollsPollID ErrorType = 251

	// Access denied, please vote first.
	ErrPollsAccessWithoutVote ErrorType = 253

	// Access to the groups list is denied due to the user's privacy settings.
	ErrAccessGroups ErrorType = 260

	// This album is full
	//
	// You need to delete the odd objects from the album or use another album.
	ErrAlbumFull   ErrorType = 300
	ErrAlbumsLimit ErrorType = 302 // Albums number limit is reached

	// Permission denied. You must enable votes processing in application
	// settings
	//
	// Check the app settings:
	//
	// 	http://vk.com/editapp?id={Your API_ID}&section=payments
	//
	ErrVotesPermission ErrorType = 500

	// Not enough votes.
	ErrVotes ErrorType = 503

	// Not enough money on owner's balance.
	ErrNotEnoughMoney ErrorType = 504

	// Permission denied. You have no access to operations specified with
	// given object(s).
	ErrAdsPermission ErrorType = 600

	// Permission denied. You have requested too many actions this day. Try
	// later.
	ErrWeightedFlood ErrorType = 601

	// Some part of the request has not been completed.
	ErrAdsPartialSuccess ErrorType = 602

	// Some ads error occurred.
	ErrAdsSpecific ErrorType = 603

	// Invalid domain.
	ErrAdsDomainInvalid ErrorType = 604

	// Domain is forbidden.
	ErrAdsDomainForbidden ErrorType = 605

	// Domain is reserved.
	ErrAdsDomainReserved ErrorType = 606

	// Domain is occupied.
	ErrAdsDomainOccupied ErrorType = 607

	// Domain is active.
	ErrAdsDomainActive ErrorType = 608

	// Domain app is invalid.
	ErrAdsDomainAppInvalid ErrorType = 609

	// Domain app is forbidden.
	ErrAdsDomainAppForbidden ErrorType = 610

	// Application must be verified.
	ErrAdsApplicationMustBeVerified ErrorType = 611

	// Application must be in domains list of site of ad unit.
	ErrAdsApplicationMustBeInDomainsList ErrorType = 612

	// Application is blocked.
	ErrAdsApplicationBlocked ErrorType = 613

	// Domain of type specified is forbidden in current office type.
	ErrAdsDomainTypeForbiddenInCurrentOffice ErrorType = 614

	// Domain group is invalid.
	ErrAdsDomainGroupInvalid ErrorType = 615

	// Domain group is forbidden.
	ErrAdsDomainGroupForbidden ErrorType = 616

	// Domain app is blocked.
	ErrAdsDomainAppBlocked ErrorType = 617

	// Domain group is not open.
	ErrAdsDomainGroupNotOpen ErrorType = 618

	// Domain group is not possible to be joined to adsweb.
	ErrAdsDomainGroupNotPossibleJoined ErrorType = 619

	// Domain group is blocked.
	ErrAdsDomainGroupBlocked ErrorType = 620

	// Domain group has restriction: links are forbidden.
	ErrAdsDomainGroupLinksForbidden ErrorType = 621

	// Domain group has restriction: excluded from search.
	ErrAdsDomainGroupExcludedFromSearch ErrorType = 622

	// Domain group has restriction: cover is forbidden.
	ErrAdsDomainGroupCoverForbidden ErrorType = 623

	// Domain group has wrong category.
	ErrAdsDomainGroupWrongCategory ErrorType = 624

	// Domain group has wrong name.
	ErrAdsDomainGroupWrongName ErrorType = 625

	// Domain group has low posts reach.
	ErrAdsDomainGroupLowPostsReach ErrorType = 626

	// Domain group has wrong class.
	ErrAdsDomainGroupWrongClass ErrorType = 627

	// Domain group is created recently.
	ErrAdsDomainGroupCreatedRecently ErrorType = 628

	// Object deleted.
	ErrAdsObjectDeleted ErrorType = 629

	// Lookalike request with same source already in progress.
	ErrAdsLookalikeRequestAlreadyInProgress ErrorType = 630

	// Max count of lookalike requests per day reached.
	ErrAdsLookalikeRequestsLimit ErrorType = 631

	// Given audience is too small.
	ErrAdsAudienceTooSmall ErrorType = 632

	// Given audience is too large.
	ErrAdsAudienceTooLarge ErrorType = 633

	// Lookalike request audience save already in progress.
	ErrAdsLookalikeAudienceSaveAlreadyInProgress ErrorType = 634

	// Max count of lookalike request audience saves per day reached.
	ErrAdsLookalikeSavesLimit ErrorType = 635

	// Max count of retargeting groups reached.
	ErrAdsRetargetingGroupsLimit ErrorType = 636

	// Domain group has active nemesis punishment.
	ErrAdsDomainGroupActiveNemesisPunishment ErrorType = 637

	// Cannot edit creator role.
	ErrGroupChangeCreator ErrorType = 700

	// User should be in club.
	ErrGroupNotInClub ErrorType = 701

	// Too many officers in club.
	ErrGroupTooManyOfficers ErrorType = 702

	// You need to enable 2FA for this action.
	ErrGroupNeed2fa ErrorType = 703

	// User needs to enable 2FA for this action.
	ErrGroupHostNeed2fa ErrorType = 704

	// Too many addresses in club.
	ErrGroupTooManyAddresses ErrorType = 706

	// "Application is not installed in community.
	ErrGroupAppIsNotInstalledInCommunity ErrorType = 711

	// Invite link is invalid - expired, deleted or not exists.
	ErrGroupInvalidInviteLink ErrorType = 714

	// This video is already added.
	ErrVideoAlreadyAdded ErrorType = 800

	// Comments for this video are closed.
	ErrVideoCommentsClosed ErrorType = 801

	// Can't send messages for users from blacklist.
	ErrMessagesUserBlocked ErrorType = 900

	// Can't send messages for users without permission.
	ErrMessagesDenySend ErrorType = 901

	// Can't send messages to this user due to their privacy settings.
	ErrMessagesPrivacy ErrorType = 902

	// Value of ts or pts is too old.
	ErrMessagesTooOldPts ErrorType = 907

	// Value of ts or pts is too new.
	ErrMessagesTooNewPts ErrorType = 908

	// Can't edit this message, because it's too old.
	ErrMessagesEditExpired ErrorType = 909

	// Can't sent this message, because it's too big.
	ErrMessagesTooBig ErrorType = 910

	// Keyboard format is invalid.
	ErrMessagesKeyboardInvalid ErrorType = 911

	// This is a chat bot feature, change this status in settings.
	ErrMessagesChatBotFeature ErrorType = 912

	// Too many forwarded messages.
	ErrMessagesTooLongForwards ErrorType = 913

	// Message is too long.
	ErrMessagesTooLongMessage ErrorType = 914

	// You don't have access to this chat.
	ErrMessagesChatUserNoAccess ErrorType = 917

	// You can't see invite link for this chat.
	ErrMessagesCantSeeInviteLink ErrorType = 919

	// Can't edit this kind of message.
	ErrMessagesEditKindDisallowed ErrorType = 920

	// Can't forward these messages.
	ErrMessagesCantFwd ErrorType = 921

	// Can't delete this message for everybody.
	ErrMessagesCantDeleteForAll ErrorType = 924

	// You are not admin of this chat.
	ErrMessagesChatNotAdmin ErrorType = 925

	// Chat does not exist.
	ErrMessagesChatNotExist ErrorType = 927

	// You can't change invite link for this chat.
	ErrMessagesCantChangeInviteLink ErrorType = 931

	// Your community can't interact with this peer.
	ErrMessagesGroupPeerAccess ErrorType = 932

	// User not found in chat.
	ErrMessagesChatUserNotInChat ErrorType = 935

	// Contact not found.
	ErrMessagesContactNotFound ErrorType = 936

	// Message request already send.
	ErrMessagesMessageRequestAlreadySend ErrorType = 939

	// Too many posts in messages.
	ErrMessagesTooManyPosts ErrorType = 940

	// Cannot pin one-time story.
	ErrMessagesCantPinOneTimeStory ErrorType = 942

	// Cannot use this intent.
	ErrMessagesCantUseIntent ErrorType = 943

	// Limits overflow for this intent.
	ErrMessagesLimitIntent ErrorType = 944

	// Chat was disabled.
	ErrMessagesChatDisabled ErrorType = 945

	// Chat not support.
	ErrMessagesChatNotSupported ErrorType = 946

	// Can't add user to chat, because user has no access to group.
	ErrMessagesMemberAccessToGroupDenied ErrorType = 947

	// Can't edit pinned message yet.
	ErrMessagesEditPinned ErrorType = 949

	// Can't send message, reply timed out.
	ErrMessagesReplyTimedOut ErrorType = 950

	// You can't access donut chat without subscription.
	ErrMessagesAccessDonutChat ErrorType = 962

	// This user can't be added to the work chat, as they aren't an employe.
	ErrMessagesAccessWorkChat ErrorType = 967

	// Message cannot be forwarded.
	ErrMessagesCantForwarded ErrorType = 969

	// Cannot pin an expiring message.
	ErrMessagesPinExpiringMessage ErrorType = 970

	// Invalid phone number.
	ErrParamPhone ErrorType = 1000

	// This phone number is used by another user.
	ErrPhoneAlreadyUsed ErrorType = 1004

	// Too many auth attempts, try again later.
	ErrAuthFloodError ErrorType = 1105

	// Processing.. Try later.
	ErrAuthDelay ErrorType = 1112

	// Anonymous token has expired.
	ErrAnonymousTokenExpired ErrorType = 1114

	// Anonymous token is invalid.
	ErrAnonymousTokenInvalid ErrorType = 1116

	// Access token has expired.
	ErrAuthAccessTokenHasExpired ErrorType = 1117

	// Anonymous token ip mismatch.
	ErrAuthAnonymousTokenIPMismatch ErrorType = 1118

	// Invalid document id.
	ErrParamDocID ErrorType = 1150

	// Access to document deleting is denied.
	ErrParamDocDeleteAccess ErrorType = 1151

	// Invalid document title.
	ErrParamDocTitle ErrorType = 1152

	// Access to document is denied.
	ErrParamDocAccess ErrorType = 1153

	// Original photo was changed.
	ErrPhotoChanged ErrorType = 1160

	// Too many feed lists.
	ErrTooManyLists ErrorType = 1170

	// This achievement is already unlocked.
	ErrAppsAlreadyUnlocked ErrorType = 1251

	// Subscription not found.
	ErrAppsSubscriptionNotFound ErrorType = 1256

	// Subscription is in invalid status.
	ErrAppsSubscriptionInvalidStatus ErrorType = 1257

	// Invalid screen name.
	ErrInvalidAddress ErrorType = 1260

	// Catalog is not available for this user.
	ErrCommunitiesCatalogDisabled ErrorType = 1310

	// Catalog categories are not available for this user.
	ErrCommunitiesCategoriesDisabled ErrorType = 1311

	// Too late for restore.
	ErrMarketRestoreTooLate ErrorType = 1400

	// Comments for this market are closed.
	ErrMarketCommentsClosed ErrorType = 1401

	// Album not found.
	ErrMarketAlbumNotFound ErrorType = 1402

	// Item not found.
	ErrMarketItemNotFound ErrorType = 1403

	// Item already added to album.
	ErrMarketItemAlreadyAdded ErrorType = 1404

	// Too many items.
	ErrMarketTooManyItems ErrorType = 1405

	// Too many items in album.
	ErrMarketTooManyItemsInAlbum ErrorType = 1406

	// Too many albums.
	ErrMarketTooManyAlbums ErrorType = 1407

	// Item has bad links in description.
	ErrMarketItemHasBadLinks ErrorType = 1408

	// Extended market not enabled.
	ErrMarketShopNotEnabled ErrorType = 1409

	// Grouping items with different properties.
	ErrMarketGroupingItemsWithDifferentProperties ErrorType = 1412

	// Grouping already has such variant.
	ErrMarketGroupingAlreadyHasSuchVariant ErrorType = 1413

	// Variant not found.
	ErrMarketVariantNotFound ErrorType = 1416

	// Property not found.
	ErrMarketPropertyNotFound ErrorType = 1417

	// Grouping must have two or more items.
	ErrMarketGroupingMustContainMoreThanOneItem ErrorType = 1425

	// Item must have distinct properties.
	ErrMarketGroupingItemsMustHaveDistinctProperties ErrorType = 1426

	// Cart is empty.
	ErrMarketOrdersNoCartItems ErrorType = 1427

	// Specify width, length, height and weight all together.
	ErrMarketInvalidDimensions ErrorType = 1429

	// VK Pay status can not be changed.
	ErrMarketCantChangeVkpayStatus ErrorType = 1430

	// Market was already enabled in this group.
	ErrMarketShopAlreadyEnabled ErrorType = 1431

	// Market was already disabled in this group.
	ErrMarketShopAlreadyDisabled ErrorType = 1432

	// Invalid image crop format.
	ErrMarketPhotosCropInvalidFormat ErrorType = 1433

	// Crop bottom right corner is outside of the image.
	ErrMarketPhotosCropOverflow ErrorType = 1434

	// Crop size is less than the minimum.
	ErrMarketPhotosCropSizeTooLow ErrorType = 1435

	// Market not enabled.
	ErrMarketNotEnabled ErrorType = 1438

	// Cart is empty.
	ErrMarketCartEmpty ErrorType = 1427

	// Specify width, length, height and weight all together.
	ErrMarketSpecifyDimensions ErrorType = 1429

	// VK Pay status can not be changed.
	ErrVKPayStatus ErrorType = 1430

	// Market was already enabled in this group.
	ErrMarketAlreadyEnabled ErrorType = 1431

	// Market was already disabled in this group.
	ErrMarketAlreadyDisabled ErrorType = 1432

	// Main album can not be hidden.
	ErrMainAlbumCantHidden ErrorType = 1446

	// Story has already expired.
	ErrStoryExpired ErrorType = 1600

	// Incorrect reply privacy.
	ErrStoryIncorrectReplyPrivacy ErrorType = 1602

	// Card not found.
	ErrPrettyCardsCardNotFound ErrorType = 1900

	// Too many cards.
	ErrPrettyCardsTooManyCards ErrorType = 1901

	// Card is connected to post.
	ErrPrettyCardsCardIsConnectedToPost ErrorType = 1902

	// Servers number limit is reached.
	ErrCallbackServersLimit ErrorType = 2000

	// Stickers are not purchased.
	ErrStickersNotPurchased ErrorType = 2100

	// Too many favorite stickers.
	ErrStickersTooManyFavorites ErrorType = 2101

	// Stickers are not favorite.
	ErrStickersNotFavorite ErrorType = 2102

	// Specified link is incorrect (can't find source).
	ErrWallCheckLinkCantDetermineSource ErrorType = 3102

	// Recaptcha needed.
	ErrRecaptcha ErrorType = 3300

	// Phone validation needed.
	ErrPhoneValidation ErrorType = 3301

	// Password validation needed.
	ErrPasswordValidation ErrorType = 3302

	// Otp app validation needed.
	ErrOtpAppValidation ErrorType = 3303

	// Email confirmation needed.
	ErrEmailConfirmation ErrorType = 3304

	// Assert votes.
	ErrAssertVotes ErrorType = 3305

	// Token extension required.
	ErrTokenExtension ErrorType = 3609

	// User is deactivated.
	ErrUserDeactivated ErrorType = 3610

	// Service is deactivated for user.
	ErrServiceDeactivated ErrorType = 3611

	// Can't set AliExpress tag to this type of object.
	ErrAliExpressTag ErrorType = 3800

	// Invalid upload response.
	ErrInvalidUploadResponse ErrorType = 5701

	// Invalid upload hash.
	ErrInvalidUploadHash ErrorType = 5702

	// Invalid upload user.
	ErrInvalidUploadUser ErrorType = 5703

	// Invalid upload group.
	ErrInvalidUploadGroup ErrorType = 5704

	// Invalid crop data.
	ErrInvalidCropData ErrorType = 5705

	// To small avatar.
	ErrToSmallAvatar ErrorType = 5706

	// Photo not found.
	ErrPhotoNotFound ErrorType = 5708

	// Invalid Photo.
	ErrInvalidPhoto ErrorType = 5709

	// Invalid hash.
	ErrInvalidHash ErrorType = 5710
)

Error codes. See https://vk.com/dev/errors

func (ErrorType) Error

func (e ErrorType) Error() string

Error returns the message of a ErrorType.

type ExchangeSilentTokenSource added in v2.13.0

type ExchangeSilentTokenSource int

ExchangeSilentTokenSource call conditions exchangeSilentToken.

0	Unknown
1	Silent authentication
2	Auth by login and password
3	Extended registration
4	Auth by exchange token
5	Auth by exchange token on reset password
6	Auth by exchange token on unblock
7	Auth by exchange token on reset session
8	Auth by exchange token on change password
9	Finish phone validation on authentication
10	Auth by code
11	Auth by external oauth
12	Reactivation
15	Auth by SDK temporary access-token

type ExecuteError

type ExecuteError struct {
	Method string `json:"method"`
	Code   int    `json:"error_code"`
	Msg    string `json:"error_msg"`
}

ExecuteError struct.

TODO: v3 Code is ErrorType.

type ExecuteErrors

type ExecuteErrors []ExecuteError

ExecuteErrors type.

func (ExecuteErrors) Error

func (e ExecuteErrors) Error() string

Error returns the message of a ExecuteErrors.

type FaveAddTagResponse

type FaveAddTagResponse object.FaveTag

FaveAddTagResponse struct.

type FaveGetExtendedResponse

type FaveGetExtendedResponse struct {
	Count int               `json:"count"`
	Items []object.FaveItem `json:"items"`
	object.ExtendedResponse
}

FaveGetExtendedResponse struct.

type FaveGetPagesResponse

type FaveGetPagesResponse struct {
	Count int               `json:"count"`
	Items []object.FavePage `json:"items"`
}

FaveGetPagesResponse struct.

type FaveGetResponse

type FaveGetResponse struct {
	Count int               `json:"count"`
	Items []object.FaveItem `json:"items"`
}

FaveGetResponse struct.

type FaveGetTagsResponse

type FaveGetTagsResponse struct {
	Count int              `json:"count"`
	Items []object.FaveTag `json:"items"`
}

FaveGetTagsResponse struct.

type FriendsAddListResponse

type FriendsAddListResponse struct {
	ListID int `json:"list_id"`
}

FriendsAddListResponse struct.

type FriendsAreFriendsResponse

type FriendsAreFriendsResponse []object.FriendsFriendStatus

FriendsAreFriendsResponse struct.

type FriendsDeleteResponse

type FriendsDeleteResponse struct {
	Success           object.BaseBoolInt `json:"success"`
	FriendDeleted     object.BaseBoolInt `json:"friend_deleted"`
	OutRequestDeleted object.BaseBoolInt `json:"out_request_deleted"`
	InRequestDeleted  object.BaseBoolInt `json:"in_request_deleted"`
	SuggestionDeleted object.BaseBoolInt `json:"suggestion_deleted"`
}

FriendsDeleteResponse struct.

type FriendsGetAppUsersResponse

type FriendsGetAppUsersResponse []int

FriendsGetAppUsersResponse struct.

type FriendsGetByPhonesResponse

type FriendsGetByPhonesResponse []object.FriendsUserXtrPhone

FriendsGetByPhonesResponse struct.

type FriendsGetFieldsResponse

type FriendsGetFieldsResponse struct {
	Count int                          `json:"count"`
	Items []object.FriendsUserXtrLists `json:"items"`
}

FriendsGetFieldsResponse struct.

type FriendsGetListsResponse

type FriendsGetListsResponse struct {
	Count int                         `json:"count"`
	Items []object.FriendsFriendsList `json:"items"`
}

FriendsGetListsResponse struct.

type FriendsGetMutualResponse

type FriendsGetMutualResponse []int

FriendsGetMutualResponse struct.

type FriendsGetOnlineOnlineMobileResponse

type FriendsGetOnlineOnlineMobileResponse struct {
	Online       []int `json:"online"`
	OnlineMobile []int `json:"online_mobile"`
}

FriendsGetOnlineOnlineMobileResponse struct.

type FriendsGetRecentResponse

type FriendsGetRecentResponse []int

FriendsGetRecentResponse struct.

type FriendsGetRequestsExtendedResponse

type FriendsGetRequestsExtendedResponse struct {
	Count int                                `json:"count"`
	Items []object.FriendsRequestsXtrMessage `json:"items"`
}

FriendsGetRequestsExtendedResponse struct.

type FriendsGetRequestsNeedMutualResponse

type FriendsGetRequestsNeedMutualResponse struct {
	Count int                      `json:"count"` // Total requests number
	Items []object.FriendsRequests `json:"items"`
}

FriendsGetRequestsNeedMutualResponse struct.

type FriendsGetRequestsResponse

type FriendsGetRequestsResponse struct {
	Count int   `json:"count"` // Total requests number
	Items []int `json:"items"`
}

FriendsGetRequestsResponse struct.

type FriendsGetResponse

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

FriendsGetResponse struct.

type FriendsGetSuggestionsResponse

type FriendsGetSuggestionsResponse struct {
	Count int                `json:"count"`
	Items []object.UsersUser `json:"items"`
}

FriendsGetSuggestionsResponse struct.

type FriendsSearchResponse

type FriendsSearchResponse struct {
	Count int                `json:"count"`
	Items []object.UsersUser `json:"items"`
}

FriendsSearchResponse struct.

type GiftsGetCatalogResponse

type GiftsGetCatalogResponse []struct {
	Name  string             `json:"name"`
	Title string             `json:"title"`
	Items []object.GiftsGift `json:"items"`
}

GiftsGetCatalogResponse struct.

type GiftsGetResponse

type GiftsGetResponse struct {
	Count int                `json:"count"`
	Items []object.GiftsGift `json:"items"`
}

GiftsGetResponse struct.

type GroupsAddAddressResponse

type GroupsAddAddressResponse object.GroupsAddress

GroupsAddAddressResponse struct.

type GroupsAddCallbackServerResponse

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

GroupsAddCallbackServerResponse struct.

type GroupsAddLinkResponse

type GroupsAddLinkResponse object.GroupsGroupLink

GroupsAddLinkResponse struct.

type GroupsCreateResponse

type GroupsCreateResponse object.GroupsGroup

GroupsCreateResponse struct.

type GroupsEditAddressResponse

type GroupsEditAddressResponse object.GroupsAddress

GroupsEditAddressResponse struct.

type GroupsGetAddressesResponse

type GroupsGetAddressesResponse struct {
	Count int                    `json:"count"`
	Items []object.GroupsAddress `json:"items"`
}

GroupsGetAddressesResponse struct.

type GroupsGetBannedResponse

type GroupsGetBannedResponse struct {
	Count int                            `json:"count"`
	Items []object.GroupsOwnerXtrBanInfo `json:"items"`
}

GroupsGetBannedResponse struct.

type GroupsGetByIDResponse

type GroupsGetByIDResponse []object.GroupsGroup

GroupsGetByIDResponse struct.

type GroupsGetCallbackConfirmationCodeResponse

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

GroupsGetCallbackConfirmationCodeResponse struct.

type GroupsGetCallbackServersResponse

type GroupsGetCallbackServersResponse struct {
	Count int                           `json:"count"`
	Items []object.GroupsCallbackServer `json:"items"`
}

GroupsGetCallbackServersResponse struct.

type GroupsGetCallbackSettingsResponse

type GroupsGetCallbackSettingsResponse object.GroupsCallbackSettings

GroupsGetCallbackSettingsResponse struct.

type GroupsGetCatalogInfoExtendedResponse

type GroupsGetCatalogInfoExtendedResponse struct {
	Enabled    object.BaseBoolInt               `json:"enabled"`
	Categories []object.GroupsGroupCategoryFull `json:"categories"`
}

GroupsGetCatalogInfoExtendedResponse struct.

type GroupsGetCatalogInfoResponse

type GroupsGetCatalogInfoResponse struct {
	Enabled    object.BaseBoolInt           `json:"enabled"`
	Categories []object.GroupsGroupCategory `json:"categories"`
}

GroupsGetCatalogInfoResponse struct.

type GroupsGetCatalogResponse

type GroupsGetCatalogResponse struct {
	Count int                  `json:"count"`
	Items []object.GroupsGroup `json:"items"`
}

GroupsGetCatalogResponse struct.

type GroupsGetExtendedResponse

type GroupsGetExtendedResponse struct {
	Count int                  `json:"count"`
	Items []object.GroupsGroup `json:"items"`
}

GroupsGetExtendedResponse struct.

type GroupsGetInvitedUsersResponse

type GroupsGetInvitedUsersResponse struct {
	Count int                `json:"count"`
	Items []object.UsersUser `json:"items"`
}

GroupsGetInvitedUsersResponse struct.

type GroupsGetInvitesExtendedResponse

type GroupsGetInvitesExtendedResponse struct {
	Count int                              `json:"count"`
	Items []object.GroupsGroupXtrInvitedBy `json:"items"`
	object.ExtendedResponse
}

GroupsGetInvitesExtendedResponse struct.

type GroupsGetInvitesResponse

type GroupsGetInvitesResponse struct {
	Count int                              `json:"count"`
	Items []object.GroupsGroupXtrInvitedBy `json:"items"`
}

GroupsGetInvitesResponse struct.

type GroupsGetLongPollServerResponse

type GroupsGetLongPollServerResponse object.GroupsLongPollServer

GroupsGetLongPollServerResponse struct.

type GroupsGetLongPollSettingsResponse

type GroupsGetLongPollSettingsResponse object.GroupsLongPollSettings

GroupsGetLongPollSettingsResponse struct.

type GroupsGetMembersFieldsResponse

type GroupsGetMembersFieldsResponse struct {
	Count int                `json:"count"`
	Items []object.UsersUser `json:"items"`
}

GroupsGetMembersFieldsResponse struct.

type GroupsGetMembersFilterManagersResponse

type GroupsGetMembersFilterManagersResponse struct {
	Count int                                   `json:"count"`
	Items []object.GroupsMemberRoleXtrUsersUser `json:"items"`
}

GroupsGetMembersFilterManagersResponse struct.

type GroupsGetMembersResponse

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

GroupsGetMembersResponse struct.

type GroupsGetOnlineStatusResponse

type GroupsGetOnlineStatusResponse object.GroupsOnlineStatus

GroupsGetOnlineStatusResponse struct.

type GroupsGetRequestsFieldsResponse

type GroupsGetRequestsFieldsResponse struct {
	Count int                `json:"count"`
	Items []object.UsersUser `json:"items"`
}

GroupsGetRequestsFieldsResponse struct.

type GroupsGetRequestsResponse

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

GroupsGetRequestsResponse struct.

type GroupsGetResponse

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

GroupsGetResponse struct.

type GroupsGetSettingsResponse

type GroupsGetSettingsResponse object.GroupsGroupSettings

GroupsGetSettingsResponse struct.

type GroupsGetTagListResponse

type GroupsGetTagListResponse []object.GroupsTag

GroupsGetTagListResponse struct.

type GroupsGetTokenPermissionsResponse

type GroupsGetTokenPermissionsResponse object.GroupsTokenPermissions

GroupsGetTokenPermissionsResponse struct.

type GroupsIsMemberExtendedResponse

type GroupsIsMemberExtendedResponse struct {
	Invitation object.BaseBoolInt `json:"invitation"` // Information whether user has been invited to the group
	Member     object.BaseBoolInt `json:"member"`     // Information whether user is a member of the group
	Request    object.BaseBoolInt `json:"request"`    // Information whether user has send request to the group
	CanInvite  object.BaseBoolInt `json:"can_invite"` // Information whether user can be invite
	CanRecall  object.BaseBoolInt `json:"can_recall"` // Information whether user's invite to the group can be recalled
}

GroupsIsMemberExtendedResponse struct.

type GroupsIsMemberUserIDsExtendedResponse

type GroupsIsMemberUserIDsExtendedResponse []object.GroupsMemberStatusFull

GroupsIsMemberUserIDsExtendedResponse struct.

type GroupsIsMemberUserIDsResponse

type GroupsIsMemberUserIDsResponse []object.GroupsMemberStatus

GroupsIsMemberUserIDsResponse struct.

type GroupsSearchResponse

type GroupsSearchResponse struct {
	Count int                  `json:"count"`
	Items []object.GroupsGroup `json:"items"`
}

GroupsSearchResponse struct.

type InvalidContentType

type InvalidContentType struct {
	ContentType string
}

InvalidContentType type.

func (InvalidContentType) Error

func (e InvalidContentType) Error() string

Error returns the message of a InvalidContentType.

type LeadFormsCreateResponse

type LeadFormsCreateResponse struct {
	FormID int    `json:"form_id"`
	URL    string `json:"url"`
}

LeadFormsCreateResponse struct.

type LeadFormsDeleteResponse

type LeadFormsDeleteResponse struct {
	FormID int `json:"form_id"`
}

LeadFormsDeleteResponse struct.

type LeadFormsGetLeadsResponse

type LeadFormsGetLeadsResponse struct {
	Leads []object.LeadFormsLead `json:"leads"`
}

LeadFormsGetLeadsResponse struct.

type LeadFormsGetResponse

type LeadFormsGetResponse object.LeadFormsForm

LeadFormsGetResponse struct.

type LeadFormsListResponse

type LeadFormsListResponse []object.LeadFormsForm

LeadFormsListResponse struct.

type LeadFormsUpdateResponse

type LeadFormsUpdateResponse struct {
	FormID int    `json:"form_id"`
	URL    string `json:"url"`
}

LeadFormsUpdateResponse struct.

type LeadsCheckUserResponse

type LeadsCheckUserResponse object.LeadsChecked

LeadsCheckUserResponse struct.

type LeadsCompleteResponse

type LeadsCompleteResponse object.LeadsComplete

LeadsCompleteResponse struct.

type LeadsGetStatsResponse

type LeadsGetStatsResponse object.LeadsLead

LeadsGetStatsResponse struct.

type LeadsGetUsersResponse

type LeadsGetUsersResponse object.LeadsEntry

LeadsGetUsersResponse struct.

type LeadsMetricHitResponse

type LeadsMetricHitResponse struct {
	Result       object.BaseBoolInt `json:"result"`        // Information whether request has been processed successfully
	RedirectLink string             `json:"redirect_link"` // Redirect link
}

LeadsMetricHitResponse struct.

type LeadsStartResponse

type LeadsStartResponse object.LeadsStart

LeadsStartResponse struct.

type LikesAddResponse

type LikesAddResponse struct {
	Likes int `json:"likes"`
}

LikesAddResponse struct.

type LikesDeleteResponse

type LikesDeleteResponse struct {
	Likes int `json:"likes"`
}

LikesDeleteResponse struct.

type LikesGetListExtendedResponse

type LikesGetListExtendedResponse struct {
	Count int                `json:"count"`
	Items []object.UsersUser `json:"items"`
}

LikesGetListExtendedResponse struct.

type LikesGetListResponse

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

LikesGetListResponse struct.

type LikesIsLikedResponse

type LikesIsLikedResponse struct {
	Liked  object.BaseBoolInt `json:"liked"`
	Copied object.BaseBoolInt `json:"copied"`
}

LikesIsLikedResponse struct.

type MarketAddAlbumResponse

type MarketAddAlbumResponse struct {
	MarketAlbumID int `json:"market_album_id"` // Album ID
	AlbumsCount   int `json:"albums_count"`
}

MarketAddAlbumResponse struct.

type MarketAddResponse

type MarketAddResponse struct {
	MarketItemID int `json:"market_item_id"` // Item ID
}

MarketAddResponse struct.

type MarketGetAlbumByIDResponse

type MarketGetAlbumByIDResponse struct {
	Count int                        `json:"count"`
	Items []object.MarketMarketAlbum `json:"items"`
}

MarketGetAlbumByIDResponse struct.

type MarketGetAlbumsResponse

type MarketGetAlbumsResponse struct {
	Count int                        `json:"count"`
	Items []object.MarketMarketAlbum `json:"items"`
}

MarketGetAlbumsResponse struct.

type MarketGetByIDResponse

type MarketGetByIDResponse struct {
	Count int                       `json:"count"`
	Items []object.MarketMarketItem `json:"items"`
}

MarketGetByIDResponse struct.

type MarketGetCategoriesResponse

type MarketGetCategoriesResponse struct {
	Count int                           `json:"count"`
	Items []object.MarketMarketCategory `json:"items"`
}

MarketGetCategoriesResponse struct.

type MarketGetCommentsExtendedResponse

type MarketGetCommentsExtendedResponse struct {
	Count int                      `json:"count"`
	Items []object.WallWallComment `json:"items"`
	object.ExtendedResponse
}

MarketGetCommentsExtendedResponse struct.

type MarketGetCommentsResponse

type MarketGetCommentsResponse struct {
	Count int                      `json:"count"`
	Items []object.WallWallComment `json:"items"`
}

MarketGetCommentsResponse struct.

type MarketGetGroupOrdersResponse

type MarketGetGroupOrdersResponse struct {
	Count int                  `json:"count"`
	Items []object.MarketOrder `json:"items"`
}

MarketGetGroupOrdersResponse struct.

type MarketGetOrderByIDResponse

type MarketGetOrderByIDResponse struct {
	Order object.MarketOrder `json:"order"`
}

MarketGetOrderByIDResponse struct.

type MarketGetOrderItemsResponse

type MarketGetOrderItemsResponse struct {
	Count int                      `json:"count"`
	Items []object.MarketOrderItem `json:"items"`
}

MarketGetOrderItemsResponse struct.

type MarketGetResponse

type MarketGetResponse struct {
	Count int                       `json:"count"`
	Items []object.MarketMarketItem `json:"items"`
}

MarketGetResponse struct.

type MarketSearchItemsResponse added in v2.11.0

type MarketSearchItemsResponse struct {
	Count    int                       `json:"count"`
	ViewType int                       `json:"view_type"`
	Items    []object.MarketMarketItem `json:"items"`
	Groups   []object.GroupsGroup      `json:"groups,omitempty"`
}

MarketSearchItemsResponse struct.

type MarketSearchResponse

type MarketSearchResponse struct {
	Count    int                       `json:"count"`
	Items    []object.MarketMarketItem `json:"items"`
	ViewType int                       `json:"view_type"`
}

MarketSearchResponse struct.

type MarusiaCreateAudioResponse added in v2.11.0

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

MarusiaCreateAudioResponse struct.

type MarusiaGetAudioUploadLinkResponse added in v2.11.0

type MarusiaGetAudioUploadLinkResponse struct {
	AudioUploadLink string `json:"audio_upload_link"` // Link
}

MarusiaGetAudioUploadLinkResponse struct.

type MarusiaGetAudiosResponse added in v2.11.0

type MarusiaGetAudiosResponse struct {
	Count  int                   `json:"count"`
	Audios []object.MarusiaAudio `json:"audios"`
}

MarusiaGetAudiosResponse struct.

type MarusiaGetPictureUploadLinkResponse added in v2.11.0

type MarusiaGetPictureUploadLinkResponse struct {
	PictureUploadLink string `json:"picture_upload_link"` // Link
}

MarusiaGetPictureUploadLinkResponse struct.

type MarusiaGetPicturesResponse added in v2.11.0

type MarusiaGetPicturesResponse struct {
	Count int                     `json:"count"`
	Items []object.MarusiaPicture `json:"items"`
}

MarusiaGetPicturesResponse struct.

type MarusiaSavePictureResponse added in v2.11.0

type MarusiaSavePictureResponse struct {
	AppID   int `json:"app_id"`
	PhotoID int `json:"photo_id"`
}

MarusiaSavePictureResponse struct.

type MessagesDeleteChatPhotoResponse

type MessagesDeleteChatPhotoResponse struct {
	MessageID int                 `json:"message_id"`
	Chat      object.MessagesChat `json:"chat"`
}

MessagesDeleteChatPhotoResponse struct.

type MessagesDeleteConversationResponse

type MessagesDeleteConversationResponse struct {
	LastDeletedID int `json:"last_deleted_id"` // Id of the last message, that was deleted
}

MessagesDeleteConversationResponse struct.

type MessagesDeleteResponse

type MessagesDeleteResponse map[string]int

MessagesDeleteResponse struct.

func (*MessagesDeleteResponse) DecodeMsgpack added in v2.13.0

func (resp *MessagesDeleteResponse) DecodeMsgpack(dec *msgpack.Decoder) error

DecodeMsgpack funcion.

type MessagesGetByConversationMessageIDResponse

type MessagesGetByConversationMessageIDResponse struct {
	Count int                      `json:"count"`
	Items []object.MessagesMessage `json:"items"`
	object.ExtendedResponse
}

MessagesGetByConversationMessageIDResponse struct.

type MessagesGetByIDExtendedResponse

type MessagesGetByIDExtendedResponse struct {
	Count int                      `json:"count"`
	Items []object.MessagesMessage `json:"items"`
	object.ExtendedResponse
}

MessagesGetByIDExtendedResponse struct.

type MessagesGetByIDResponse

type MessagesGetByIDResponse struct {
	Count int                      `json:"count"`
	Items []object.MessagesMessage `json:"items"`
}

MessagesGetByIDResponse struct.

type MessagesGetChatChatIDsResponse

type MessagesGetChatChatIDsResponse []object.MessagesChat

MessagesGetChatChatIDsResponse struct.

type MessagesGetChatPreviewResponse

type MessagesGetChatPreviewResponse struct {
	Preview object.MessagesChatPreview `json:"preview"`
	object.ExtendedResponse
}

MessagesGetChatPreviewResponse struct.

type MessagesGetChatResponse

type MessagesGetChatResponse object.MessagesChat

MessagesGetChatResponse struct.

type MessagesGetConversationMembersResponse

type MessagesGetConversationMembersResponse struct {
	Items []struct {
		MemberID  int                `json:"member_id"`
		JoinDate  int                `json:"join_date"`
		InvitedBy int                `json:"invited_by"`
		IsOwner   object.BaseBoolInt `json:"is_owner,omitempty"`
		IsAdmin   object.BaseBoolInt `json:"is_admin,omitempty"`
		CanKick   object.BaseBoolInt `json:"can_kick,omitempty"`
	} `json:"items"`
	Count            int `json:"count"`
	ChatRestrictions struct {
		OnlyAdminsInvite   object.BaseBoolInt `json:"only_admins_invite"`
		OnlyAdminsEditPin  object.BaseBoolInt `json:"only_admins_edit_pin"`
		OnlyAdminsEditInfo object.BaseBoolInt `json:"only_admins_edit_info"`
		AdminsPromoteUsers object.BaseBoolInt `json:"admins_promote_users"`
	} `json:"chat_restrictions"`
	object.ExtendedResponse
}

MessagesGetConversationMembersResponse struct.

type MessagesGetConversationsByIDExtendedResponse

type MessagesGetConversationsByIDExtendedResponse struct {
	Count int                           `json:"count"`
	Items []object.MessagesConversation `json:"items"`
	object.ExtendedResponse
}

MessagesGetConversationsByIDExtendedResponse struct.

type MessagesGetConversationsByIDResponse

type MessagesGetConversationsByIDResponse struct {
	Count int                           `json:"count"`
	Items []object.MessagesConversation `json:"items"`
}

MessagesGetConversationsByIDResponse struct.

type MessagesGetConversationsResponse

type MessagesGetConversationsResponse struct {
	Count       int                                      `json:"count"`
	Items       []object.MessagesConversationWithMessage `json:"items"`
	UnreadCount int                                      `json:"unread_count"`
	object.ExtendedResponse
}

MessagesGetConversationsResponse struct.

type MessagesGetHistoryAttachmentsResponse

type MessagesGetHistoryAttachmentsResponse struct {
	Items    []object.MessagesHistoryAttachment `json:"items"`
	NextFrom string                             `json:"next_from"`
	object.ExtendedResponse
}

MessagesGetHistoryAttachmentsResponse struct.

type MessagesGetHistoryResponse

type MessagesGetHistoryResponse struct {
	Count int                      `json:"count"`
	Items []object.MessagesMessage `json:"items"`

	// 	extended=1
	object.ExtendedResponse

	// 	extended=1
	Conversations []object.MessagesConversation `json:"conversations,omitempty"`

	// Deprecated: use .Conversations.InRead
	InRead int `json:"in_read,omitempty"`
	// Deprecated: use .Conversations.OutRead
	OutRead int `json:"out_read,omitempty"`
}

MessagesGetHistoryResponse struct.

type MessagesGetImportantMessagesResponse

type MessagesGetImportantMessagesResponse struct {
	Messages struct {
		Count int                      `json:"count"`
		Items []object.MessagesMessage `json:"items"`
	} `json:"messages"`
	Conversations []object.MessagesConversation `json:"conversations"`
	object.ExtendedResponse
}

MessagesGetImportantMessagesResponse struct.

type MessagesGetIntentUsersResponse added in v2.9.0

type MessagesGetIntentUsersResponse struct {
	Count    int                      `json:"count"`
	Items    []int                    `json:"items"`
	Profiles []object.MessagesMessage `json:"profiles,omitempty"`
}

MessagesGetIntentUsersResponse struct.

type MessagesGetInviteLinkResponse

type MessagesGetInviteLinkResponse struct {
	Link string `json:"link"`
}

MessagesGetInviteLinkResponse struct.

type MessagesGetLastActivityResponse

type MessagesGetLastActivityResponse object.MessagesLastActivity

MessagesGetLastActivityResponse struct.

type MessagesGetLongPollHistoryResponse

type MessagesGetLongPollHistoryResponse struct {
	History  [][]int              `json:"history"`
	Groups   []object.GroupsGroup `json:"groups"`
	Messages struct {
		Count int                      `json:"count"`
		Items []object.MessagesMessage `json:"items"`
	} `json:"messages"`
	Profiles []object.UsersUser `json:"profiles"`
	// Chats struct {} `json:"chats"`
	NewPTS        int                           `json:"new_pts"`
	FromPTS       int                           `json:"from_pts"`
	More          object.BaseBoolInt            `json:"chats"`
	Conversations []object.MessagesConversation `json:"conversations"`
}

MessagesGetLongPollHistoryResponse struct.

type MessagesGetLongPollServerResponse

type MessagesGetLongPollServerResponse object.MessagesLongPollParams

MessagesGetLongPollServerResponse struct.

type MessagesIsMessagesFromGroupAllowedResponse

type MessagesIsMessagesFromGroupAllowedResponse struct {
	IsAllowed object.BaseBoolInt `json:"is_allowed"`
}

MessagesIsMessagesFromGroupAllowedResponse struct.

type MessagesJoinChatByInviteLinkResponse

type MessagesJoinChatByInviteLinkResponse struct {
	ChatID int `json:"chat_id"`
}

MessagesJoinChatByInviteLinkResponse struct.

type MessagesMarkAsImportantResponse

type MessagesMarkAsImportantResponse []int

MessagesMarkAsImportantResponse struct.

type MessagesPinResponse

type MessagesPinResponse object.MessagesMessage

MessagesPinResponse struct.

type MessagesSearchConversationsResponse

type MessagesSearchConversationsResponse struct {
	Count int                           `json:"count"`
	Items []object.MessagesConversation `json:"items"`
	object.ExtendedResponse
}

MessagesSearchConversationsResponse struct.

type MessagesSearchResponse

type MessagesSearchResponse struct {
	Count int                      `json:"count"`
	Items []object.MessagesMessage `json:"items"`
	object.ExtendedResponse
	Conversations []object.MessagesConversation `json:"conversations,omitempty"`
}

MessagesSearchResponse struct.

type MessagesSendUserIDsResponse

type MessagesSendUserIDsResponse []struct {
	PeerID                int   `json:"peer_id"`
	MessageID             int   `json:"message_id"`
	ConversationMessageID int   `json:"conversation_message_id"`
	Error                 Error `json:"error"`
}

MessagesSendUserIDsResponse struct.

TODO: v3 rename MessagesSendPeerIDsResponse - user_ids outdated.

type MessagesSetChatPhotoResponse

type MessagesSetChatPhotoResponse struct {
	MessageID int                 `json:"message_id"`
	Chat      object.MessagesChat `json:"chat"`
}

MessagesSetChatPhotoResponse struct.

type MessagesStartCallResponse added in v2.15.0

type MessagesStartCallResponse struct {
	JoinLink string `json:"join_link"`
	CallID   string `json:"call_id"`
}

MessagesStartCallResponse struct.

type NewsfeedGetBannedExtendedResponse

type NewsfeedGetBannedExtendedResponse struct {
	object.ExtendedResponse
}

NewsfeedGetBannedExtendedResponse struct.

type NewsfeedGetBannedResponse

type NewsfeedGetBannedResponse struct {
	Members []int `json:"members"`
	Groups  []int `json:"groups"`
}

NewsfeedGetBannedResponse struct.

type NewsfeedGetCommentsResponse

type NewsfeedGetCommentsResponse struct {
	Items []object.NewsfeedNewsfeedItem `json:"items"`
	object.ExtendedResponse
	NextFrom string `json:"next_from"`
}

NewsfeedGetCommentsResponse struct.

type NewsfeedGetListsResponse

type NewsfeedGetListsResponse struct {
	Count int `json:"count"`
	Items []struct {
		ID        int    `json:"id"`
		Title     string `json:"title"`
		NoReposts int    `json:"no_reposts"`
		SourceIDs []int  `json:"source_ids"`
	} `json:"items"`
}

NewsfeedGetListsResponse struct.

type NewsfeedGetMentionsResponse

type NewsfeedGetMentionsResponse struct {
	Count int                       `json:"count"`
	Items []object.WallWallpostToID `json:"items"`
}

NewsfeedGetMentionsResponse struct.

type NewsfeedGetRecommendedResponse

type NewsfeedGetRecommendedResponse struct {
	Items      []object.NewsfeedNewsfeedItem `json:"items"`
	Profiles   []object.UsersUser            `json:"profiles"`
	Groups     []object.GroupsGroup          `json:"groups"`
	NextOffset string                        `json:"next_offset"`
	NextFrom   string                        `json:"next_from"`
}

NewsfeedGetRecommendedResponse struct.

type NewsfeedGetResponse

type NewsfeedGetResponse struct {
	Items []object.NewsfeedNewsfeedItem `json:"items"`
	object.ExtendedResponse
	NextFrom string `json:"next_from"`
}

NewsfeedGetResponse struct.

type NewsfeedGetSuggestedSourcesResponse

type NewsfeedGetSuggestedSourcesResponse struct {
	Count int                  `json:"count"`
	Items []object.GroupsGroup `json:"items"` // FIXME: GroupsGroup + UsersUser
}

NewsfeedGetSuggestedSourcesResponse struct.

type NewsfeedSearchExtendedResponse

type NewsfeedSearchExtendedResponse struct {
	Items      []object.WallWallpost `json:"items"`
	Count      int                   `json:"count"`
	TotalCount int                   `json:"total_count"`
	Profiles   []object.UsersUser    `json:"profiles"`
	Groups     []object.GroupsGroup  `json:"groups"`
	NextFrom   string                `json:"next_from"`
}

NewsfeedSearchExtendedResponse struct.

type NewsfeedSearchResponse

type NewsfeedSearchResponse struct {
	Items      []object.WallWallpost `json:"items"`
	Count      int                   `json:"count"`
	TotalCount int                   `json:"total_count"`
	NextFrom   string                `json:"next_from"`
}

NewsfeedSearchResponse struct.

type NotesGetByIDResponse

type NotesGetByIDResponse object.NotesNote

NotesGetByIDResponse struct.

type NotesGetCommentsResponse

type NotesGetCommentsResponse struct {
	Count int                       `json:"count"`
	Items []object.NotesNoteComment `json:"items"`
}

NotesGetCommentsResponse struct.

type NotesGetResponse

type NotesGetResponse struct {
	Count int                `json:"count"`
	Items []object.NotesNote `json:"items"`
}

NotesGetResponse struct.

type NotificationsGetResponse

type NotificationsGetResponse struct {
	Count      int                                `json:"count"`
	Items      []object.NotificationsNotification `json:"items"`
	Profiles   []object.UsersUser                 `json:"profiles"`
	Groups     []object.GroupsGroup               `json:"groups"`
	Photos     []object.PhotosPhoto               `json:"photos"`
	Videos     []object.VideoVideo                `json:"videos"`
	Apps       []object.AppsApp                   `json:"apps"`
	LastViewed int                                `json:"last_viewed"`
	NextFrom   string                             `json:"next_from"`
	TTL        int                                `json:"ttl"`
}

NotificationsGetResponse struct.

type NotificationsSendMessageResponse

type NotificationsSendMessageResponse []struct {
	UserID int                `json:"user_id"`
	Status object.BaseBoolInt `json:"status"`
	Error  struct {
		Code        int    `json:"code"`
		Description string `json:"description"`
	} `json:"error"`
}

NotificationsSendMessageResponse struct.

type OrdersChangeStateResponse

type OrdersChangeStateResponse string // New state

OrdersChangeStateResponse struct.

type OrdersGetAmountResponse

type OrdersGetAmountResponse []object.OrdersAmount

OrdersGetAmountResponse struct.

type OrdersGetByIDResponse

type OrdersGetByIDResponse []object.OrdersOrder

OrdersGetByIDResponse struct.

type OrdersGetResponse

type OrdersGetResponse []object.OrdersOrder

OrdersGetResponse struct.

type OrdersGetUserSubscriptionByIDResponse

type OrdersGetUserSubscriptionByIDResponse object.OrdersSubscription

OrdersGetUserSubscriptionByIDResponse struct.

type OrdersGetUserSubscriptionsResponse

type OrdersGetUserSubscriptionsResponse struct {
	Count int                         `json:"count"` // Total number
	Items []object.OrdersSubscription `json:"items"`
}

OrdersGetUserSubscriptionsResponse struct.

type PagesGetHistoryResponse

type PagesGetHistoryResponse []object.PagesWikipageHistory

PagesGetHistoryResponse struct.

type PagesGetResponse

type PagesGetResponse object.PagesWikipageFull

PagesGetResponse struct.

type PagesGetTitlesResponse

type PagesGetTitlesResponse []object.PagesWikipageFull

PagesGetTitlesResponse struct.

type PagesGetVersionResponse

type PagesGetVersionResponse object.PagesWikipageFull

PagesGetVersionResponse struct.

type Params

type Params map[string]interface{}

Params type.

func (Params) CaptchaKey

func (p Params) CaptchaKey(v string) Params

CaptchaKey text input.

See https://vk.com/dev/captcha_error

func (Params) CaptchaSID

func (p Params) CaptchaSID(v string) Params

CaptchaSID received ID.

See https://vk.com/dev/captcha_error

func (Params) Confirm

func (p Params) Confirm(v bool) Params

Confirm parameter.

See https://vk.com/dev/need_confirmation

func (Params) Lang

func (p Params) Lang(v int) Params

Lang - determines the language for the data to be displayed on. For example country and city names. If you use a non-cyrillic language, cyrillic symbols will be transliterated automatically. Numeric format from account.getInfo is supported as well.

p.Lang(object.LangRU)

See all language code in module object.

func (Params) TestMode

func (p Params) TestMode(v bool) Params

TestMode allows to send requests from a native app without switching it on for all users.

func (Params) WithContext added in v2.5.0

func (p Params) WithContext(ctx context.Context) Params

WithContext parameter.

type PhotosCreateAlbumResponse

type PhotosCreateAlbumResponse object.PhotosPhotoAlbumFull

PhotosCreateAlbumResponse struct.

type PhotosGetAlbumsResponse

type PhotosGetAlbumsResponse struct {
	Count int                           `json:"count"` // Total number
	Items []object.PhotosPhotoAlbumFull `json:"items"`
}

PhotosGetAlbumsResponse struct.

type PhotosGetAllCommentsResponse

type PhotosGetAllCommentsResponse struct {
	Count int                          `json:"count"` // Total number
	Items []object.PhotosCommentXtrPid `json:"items"`
}

PhotosGetAllCommentsResponse struct.

type PhotosGetAllExtendedResponse

type PhotosGetAllExtendedResponse struct {
	Count int                                   `json:"count"` // Total number
	Items []object.PhotosPhotoFullXtrRealOffset `json:"items"`
	More  object.BaseBoolInt                    `json:"more"` // Information whether next page is presented
}

PhotosGetAllExtendedResponse struct.

type PhotosGetAllResponse

type PhotosGetAllResponse struct {
	Count int                               `json:"count"` // Total number
	Items []object.PhotosPhotoXtrRealOffset `json:"items"`
	More  object.BaseBoolInt                `json:"more"` // Information whether next page is presented
}

PhotosGetAllResponse struct.

type PhotosGetByIDExtendedResponse

type PhotosGetByIDExtendedResponse []object.PhotosPhotoFull

PhotosGetByIDExtendedResponse struct.

type PhotosGetByIDResponse

type PhotosGetByIDResponse []object.PhotosPhoto

PhotosGetByIDResponse struct.

type PhotosGetChatUploadServerResponse

type PhotosGetChatUploadServerResponse struct {
	UploadURL string `json:"upload_url"`
}

PhotosGetChatUploadServerResponse struct.

type PhotosGetCommentsExtendedResponse

type PhotosGetCommentsExtendedResponse struct {
	Count      int                      `json:"count"`       // Total number
	RealOffset int                      `json:"real_offset"` // Real offset of the comments
	Items      []object.WallWallComment `json:"items"`
	Profiles   []object.UsersUser       `json:"profiles"`
	Groups     []object.GroupsGroup     `json:"groups"`
}

PhotosGetCommentsExtendedResponse struct.

type PhotosGetCommentsResponse

type PhotosGetCommentsResponse struct {
	Count      int                      `json:"count"`       // Total number
	RealOffset int                      `json:"real_offset"` // Real offset of the comments
	Items      []object.WallWallComment `json:"items"`
}

PhotosGetCommentsResponse struct.

type PhotosGetExtendedResponse

type PhotosGetExtendedResponse struct {
	Count int                      `json:"count"` // Total number
	Items []object.PhotosPhotoFull `json:"items"`
}

PhotosGetExtendedResponse struct.

type PhotosGetMarketAlbumUploadServerResponse

type PhotosGetMarketAlbumUploadServerResponse struct {
	UploadURL string `json:"upload_url"`
}

PhotosGetMarketAlbumUploadServerResponse struct.

type PhotosGetMarketUploadServerResponse

type PhotosGetMarketUploadServerResponse struct {
	UploadURL string `json:"upload_url"`
}

PhotosGetMarketUploadServerResponse struct.

type PhotosGetMessagesUploadServerResponse

type PhotosGetMessagesUploadServerResponse struct {
	AlbumID   int    `json:"album_id"`
	UploadURL string `json:"upload_url"`
	UserID    int    `json:"user_id,omitempty"`
	GroupID   int    `json:"group_id,omitempty"`
}

PhotosGetMessagesUploadServerResponse struct.

type PhotosGetNewTagsResponse

type PhotosGetNewTagsResponse struct {
	Count int                            `json:"count"` // Total number
	Items []object.PhotosPhotoXtrTagInfo `json:"items"`
}

PhotosGetNewTagsResponse struct.

type PhotosGetOwnerCoverPhotoUploadServerResponse

type PhotosGetOwnerCoverPhotoUploadServerResponse struct {
	UploadURL string `json:"upload_url"`
}

PhotosGetOwnerCoverPhotoUploadServerResponse struct.

type PhotosGetOwnerPhotoUploadServerResponse

type PhotosGetOwnerPhotoUploadServerResponse struct {
	UploadURL string `json:"upload_url"`
}

PhotosGetOwnerPhotoUploadServerResponse struct.

type PhotosGetResponse

type PhotosGetResponse struct {
	Count int                  `json:"count"` // Total number
	Items []object.PhotosPhoto `json:"items"`
}

PhotosGetResponse struct.

type PhotosGetTagsResponse

type PhotosGetTagsResponse []object.PhotosPhotoTag

PhotosGetTagsResponse struct.

type PhotosGetUploadServerResponse

type PhotosGetUploadServerResponse object.PhotosPhotoUpload

PhotosGetUploadServerResponse struct.

type PhotosGetUserPhotosExtendedResponse

type PhotosGetUserPhotosExtendedResponse struct {
	Count int                      `json:"count"` // Total number
	Items []object.PhotosPhotoFull `json:"items"`
}

PhotosGetUserPhotosExtendedResponse struct.

type PhotosGetUserPhotosResponse

type PhotosGetUserPhotosResponse struct {
	Count int                  `json:"count"` // Total number
	Items []object.PhotosPhoto `json:"items"`
}

PhotosGetUserPhotosResponse struct.

type PhotosGetWallUploadServerResponse

type PhotosGetWallUploadServerResponse object.PhotosPhotoUpload

PhotosGetWallUploadServerResponse struct.

type PhotosSaveMarketAlbumPhotoResponse

type PhotosSaveMarketAlbumPhotoResponse []object.PhotosPhoto

PhotosSaveMarketAlbumPhotoResponse struct.

type PhotosSaveMarketPhotoResponse

type PhotosSaveMarketPhotoResponse []object.PhotosPhoto

PhotosSaveMarketPhotoResponse struct.

type PhotosSaveMessagesPhotoResponse

type PhotosSaveMessagesPhotoResponse []object.PhotosPhoto

PhotosSaveMessagesPhotoResponse struct.

type PhotosSaveOwnerCoverPhotoResponse

type PhotosSaveOwnerCoverPhotoResponse struct {
	Images []object.PhotosImage `json:"images"`
}

PhotosSaveOwnerCoverPhotoResponse struct.

type PhotosSaveOwnerPhotoResponse

type PhotosSaveOwnerPhotoResponse struct {
	PhotoHash string `json:"photo_hash"`
	// BUG(VK): returns false
	// PhotoSrc      string `json:"photo_src"`
	// PhotoSrcBig   string `json:"photo_src_big"`
	// PhotoSrcSmall string `json:"photo_src_small"`
	Saved  int `json:"saved"`
	PostID int `json:"post_id"`
}

PhotosSaveOwnerPhotoResponse struct.

type PhotosSaveResponse

type PhotosSaveResponse []object.PhotosPhoto

PhotosSaveResponse struct.

type PhotosSaveWallPhotoResponse

type PhotosSaveWallPhotoResponse []object.PhotosPhoto

PhotosSaveWallPhotoResponse struct.

type PhotosSearchResponse

type PhotosSearchResponse struct {
	Count int                      `json:"count"` // Total number
	Items []object.PhotosPhotoFull `json:"items"`
}

PhotosSearchResponse struct.

type PodcastsGetCatalogExtendedResponse

type PodcastsGetCatalogExtendedResponse struct {
	Items []object.PodcastsItem `json:"items"`
	object.ExtendedResponse
}

PodcastsGetCatalogExtendedResponse struct.

type PodcastsGetCatalogResponse

type PodcastsGetCatalogResponse struct {
	Items []object.PodcastsItem `json:"items"`
}

PodcastsGetCatalogResponse struct.

type PodcastsGetCategoriesResponse

type PodcastsGetCategoriesResponse []object.PodcastsCategory

PodcastsGetCategoriesResponse struct.

type PodcastsGetEpisodesResponse

type PodcastsGetEpisodesResponse struct {
	Count int                      `json:"count"`
	Items []object.PodcastsEpisode `json:"items"`
}

PodcastsGetEpisodesResponse struct.

type PodcastsGetFeedExtendedResponse

type PodcastsGetFeedExtendedResponse struct {
	Items    []object.PodcastsEpisode `json:"items"`
	NextFrom string                   `json:"next_from"`
	object.ExtendedResponse
}

PodcastsGetFeedExtendedResponse struct.

type PodcastsGetFeedResponse

type PodcastsGetFeedResponse struct {
	Items    []object.PodcastsEpisode `json:"items"`
	NextFrom string                   `json:"next_from"`
}

PodcastsGetFeedResponse struct.

type PodcastsGetStartPageExtendedResponse

type PodcastsGetStartPageExtendedResponse struct {
	Order               []string                  `json:"order"`
	InProgress          []object.PodcastsEpisode  `json:"in_progress"`
	Bookmarks           []object.PodcastsEpisode  `json:"bookmarks"`
	Articles            []object.Article          `json:"articles"`
	StaticHowTo         []bool                    `json:"static_how_to"`
	FriendsLiked        []object.PodcastsEpisode  `json:"friends_liked"`
	Subscriptions       []object.PodcastsEpisode  `json:"subscriptions"`
	CategoriesList      []object.PodcastsCategory `json:"categories_list"`
	RecommendedEpisodes []object.PodcastsEpisode  `json:"recommended_episodes"`
	Catalog             []struct {
		Category object.PodcastsCategory `json:"category"`
		Items    []object.PodcastsItem   `json:"items"`
	} `json:"catalog"`
	object.ExtendedResponse
}

PodcastsGetStartPageExtendedResponse struct.

type PodcastsGetStartPageResponse

type PodcastsGetStartPageResponse struct {
	Order               []string                  `json:"order"`
	InProgress          []object.PodcastsEpisode  `json:"in_progress"`
	Bookmarks           []object.PodcastsEpisode  `json:"bookmarks"`
	Articles            []object.Article          `json:"articles"`
	StaticHowTo         []bool                    `json:"static_how_to"`
	FriendsLiked        []object.PodcastsEpisode  `json:"friends_liked"`
	Subscriptions       []object.PodcastsEpisode  `json:"subscriptions"`
	CategoriesList      []object.PodcastsCategory `json:"categories_list"`
	RecommendedEpisodes []object.PodcastsEpisode  `json:"recommended_episodes"`
	Catalog             []struct {
		Category object.PodcastsCategory `json:"category"`
		Items    []object.PodcastsItem   `json:"items"`
	} `json:"catalog"`
}

PodcastsGetStartPageResponse struct.

type PollsCreateResponse

type PollsCreateResponse object.PollsPoll

PollsCreateResponse struct.

type PollsGetBackgroundsResponse

type PollsGetBackgroundsResponse []object.PollsBackground

PollsGetBackgroundsResponse struct.

type PollsGetByIDResponse

type PollsGetByIDResponse object.PollsPoll

PollsGetByIDResponse struct.

type PollsGetPhotoUploadServerResponse

type PollsGetPhotoUploadServerResponse struct {
	UploadURL string `json:"upload_url"`
}

PollsGetPhotoUploadServerResponse struct.

type PollsGetVotersFieldsResponse

type PollsGetVotersFieldsResponse []object.PollsVotersFields

PollsGetVotersFieldsResponse struct.

type PollsGetVotersResponse

type PollsGetVotersResponse []object.PollsVoters

PollsGetVotersResponse struct.

type PollsSavePhotoResponse

type PollsSavePhotoResponse object.PollsPhoto

PollsSavePhotoResponse struct.

type PrettyCardsCreateResponse

type PrettyCardsCreateResponse struct {
	OwnerID int    `json:"owner_id"` // Owner ID of created pretty card
	CardID  string `json:"card_id"`  // Card ID of created pretty card
}

PrettyCardsCreateResponse struct.

type PrettyCardsDeleteResponse

type PrettyCardsDeleteResponse struct {
	OwnerID int    `json:"owner_id"` // Owner ID of created pretty card
	CardID  string `json:"card_id"`  // Card ID of created pretty card
	Error   string `json:"error"`    // Error reason if error happened
}

PrettyCardsDeleteResponse struct.

type PrettyCardsEditResponse

type PrettyCardsEditResponse struct {
	OwnerID int    `json:"owner_id"` // Owner ID of created pretty card
	CardID  string `json:"card_id"`  // Card ID of created pretty card
}

PrettyCardsEditResponse struct.

type PrettyCardsGetByIDResponse

type PrettyCardsGetByIDResponse []object.PrettyCardsPrettyCard

PrettyCardsGetByIDResponse struct.

type PrettyCardsGetResponse

type PrettyCardsGetResponse struct {
	Count int                            `json:"count"` // Total number
	Items []object.PrettyCardsPrettyCard `json:"items"`
}

PrettyCardsGetResponse struct.

type Response

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

Response struct.

type SearchGetHintsResponse

type SearchGetHintsResponse struct {
	Count int                 `json:"count"`
	Items []object.SearchHint `json:"items"`
}

SearchGetHintsResponse struct.

type SecureAddAppEventResponse

type SecureAddAppEventResponse int // FIXME: not found documentation. https://github.com/VKCOM/vk-api-schema/issues/98

SecureAddAppEventResponse struct.

type SecureCheckTokenResponse

type SecureCheckTokenResponse object.SecureTokenChecked

SecureCheckTokenResponse struct.

type SecureGetSMSHistoryResponse

type SecureGetSMSHistoryResponse []object.SecureSmsNotification

SecureGetSMSHistoryResponse struct.

type SecureGetTransactionsHistoryResponse

type SecureGetTransactionsHistoryResponse []object.SecureTransaction

SecureGetTransactionsHistoryResponse struct.

type SecureGetUserLevelResponse

type SecureGetUserLevelResponse []object.SecureLevel

SecureGetUserLevelResponse struct.

type SecureGiveEventStickerResponse

type SecureGiveEventStickerResponse []struct {
	UserID int    `json:"user_id"`
	Status string `json:"status"`
}

SecureGiveEventStickerResponse struct.

type SecureSendNotificationResponse

type SecureSendNotificationResponse []int // User ID

SecureSendNotificationResponse struct.

type StatsGetPostReachResponse

type StatsGetPostReachResponse []object.StatsWallpostStat

StatsGetPostReachResponse struct.

type StatsGetResponse

type StatsGetResponse []object.StatsPeriod

StatsGetResponse struct.

type StatusGetResponse

type StatusGetResponse struct {
	Audio object.AudioAudio `json:"audio"`
	Text  string            `json:"text"`
}

StatusGetResponse struct.

type StorageGetKeysResponse

type StorageGetKeysResponse []string

StorageGetKeysResponse struct.

type StorageGetResponse

type StorageGetResponse []object.BaseRequestParam

StorageGetResponse struct.

func (StorageGetResponse) ToMap

func (s StorageGetResponse) ToMap() map[string]string

ToMap return map from StorageGetResponse.

type StoreGetFavoriteStickersResponse added in v2.10.0

type StoreGetFavoriteStickersResponse struct {
	Count int                  `json:"count"`
	Items []object.BaseSticker `json:"items"`
}

StoreGetFavoriteStickersResponse struct.

type StoriesGetBannedExtendedResponse

type StoriesGetBannedExtendedResponse struct {
	Count int   `json:"count"`
	Items []int `json:"items"`
	object.ExtendedResponse
}

StoriesGetBannedExtendedResponse struct.

type StoriesGetBannedResponse

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

StoriesGetBannedResponse struct.

type StoriesGetByIDExtendedResponse

type StoriesGetByIDExtendedResponse struct {
	Count int                   `json:"count"`
	Items []object.StoriesStory `json:"items"`
	object.ExtendedResponse
}

StoriesGetByIDExtendedResponse struct.

type StoriesGetByIDResponse

type StoriesGetByIDResponse struct {
	Count int                   `json:"count"`
	Items []object.StoriesStory `json:"items"`
}

StoriesGetByIDResponse struct.

type StoriesGetExtendedResponse

type StoriesGetExtendedResponse struct {
	Count            int                      `json:"count"`
	Items            []object.StoriesFeedItem `json:"items"`
	PromoData        object.StoriesPromoData  `json:"promo_data"`
	NeedUploadScreen object.BaseBoolInt       `json:"need_upload_screen"`
	object.ExtendedResponse
}

StoriesGetExtendedResponse struct.

type StoriesGetPhotoUploadServerResponse

type StoriesGetPhotoUploadServerResponse struct {
	UploadURL string `json:"upload_url"`
	PeerIDs   []int  `json:"peer_ids"`
	UserIDs   []int  `json:"user_ids"`
}

StoriesGetPhotoUploadServerResponse struct.

type StoriesGetRepliesExtendedResponse

type StoriesGetRepliesExtendedResponse struct {
	Count int                      `json:"count"`
	Items []object.StoriesFeedItem `json:"items"`
	object.ExtendedResponse
}

StoriesGetRepliesExtendedResponse struct.

type StoriesGetRepliesResponse

type StoriesGetRepliesResponse struct {
	Count int                      `json:"count"`
	Items []object.StoriesFeedItem `json:"items"`
}

StoriesGetRepliesResponse struct.

type StoriesGetResponse

type StoriesGetResponse struct {
	Count            int                      `json:"count"`
	Items            []object.StoriesFeedItem `json:"items"`
	PromoData        object.StoriesPromoData  `json:"promo_data"`
	NeedUploadScreen object.BaseBoolInt       `json:"need_upload_screen"`
}

StoriesGetResponse struct.

type StoriesGetStatsResponse

type StoriesGetStatsResponse object.StoriesStoryStats

StoriesGetStatsResponse struct.

type StoriesGetVideoUploadServerResponse

type StoriesGetVideoUploadServerResponse struct {
	UploadURL string `json:"upload_url"`
	PeerIDs   []int  `json:"peer_ids"`
	UserIDs   []int  `json:"user_ids"`
}

StoriesGetVideoUploadServerResponse struct.

type StoriesGetViewersResponse

type StoriesGetViewersResponse struct {
	Count int                    `json:"count"`
	Items []object.StoriesViewer `json:"items"`
}

StoriesGetViewersResponse struct.

type StoriesSaveResponse

type StoriesSaveResponse struct {
	Count int                   `json:"count"`
	Items []object.StoriesStory `json:"items"`
	object.ExtendedResponse
}

StoriesSaveResponse struct.

type StoriesSearchExtendedResponse

type StoriesSearchExtendedResponse struct {
	Count int                      `json:"count"`
	Items []object.StoriesFeedItem `json:"items"`
	object.ExtendedResponse
}

StoriesSearchExtendedResponse struct.

type StoriesSearchResponse

type StoriesSearchResponse struct {
	Count int                      `json:"count"`
	Items []object.StoriesFeedItem `json:"items"`
}

StoriesSearchResponse struct.

type StreamingGetServerURLResponse

type StreamingGetServerURLResponse struct {
	Endpoint string `json:"endpoint"`
	Key      string `json:"key"`
}

StreamingGetServerURLResponse struct.

type StreamingGetSettingsResponse

type StreamingGetSettingsResponse struct {
	MonthlyLimit string `json:"monthly_limit"`
}

StreamingGetSettingsResponse struct.

type StreamingGetStatsResponse

type StreamingGetStatsResponse []struct {
	EventType string `json:"event_type"`
	Stats     []struct {
		Timestamp int `json:"timestamp"`
		Value     int `json:"value"`
	} `json:"stats"`
}

StreamingGetStatsResponse struct.

type StreamingGetStemResponse

type StreamingGetStemResponse struct {
	Stem string `json:"stem"`
}

StreamingGetStemResponse struct.

type UploadError

type UploadError struct {
	Err      string `json:"error"`
	Code     int    `json:"error_code"`
	Descr    string `json:"error_descr"`
	IsLogged bool   `json:"error_is_logged"`
}

UploadError type.

func (UploadError) Error

func (e UploadError) Error() string

Error returns the message of a UploadError.

type UploadStories

type UploadStories struct {
	UploadResult string `json:"upload_result"`
	Sig          string `json:"_sig"`
}

UploadStories struct.

type UsersGetFollowersFieldsResponse

type UsersGetFollowersFieldsResponse struct {
	Count int                `json:"count"`
	Items []object.UsersUser `json:"items"`
}

UsersGetFollowersFieldsResponse struct.

type UsersGetFollowersResponse

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

UsersGetFollowersResponse struct.

type UsersGetResponse

type UsersGetResponse []object.UsersUser

UsersGetResponse users.get response.

type UsersGetSubscriptionsResponse

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

UsersGetSubscriptionsResponse struct.

type UsersSearchResponse

type UsersSearchResponse struct {
	Count int                `json:"count"`
	Items []object.UsersUser `json:"items"`
}

UsersSearchResponse struct.

type UtilsCheckLinkResponse

type UtilsCheckLinkResponse object.UtilsLinkChecked

UtilsCheckLinkResponse struct.

type UtilsGetLastShortenedLinksResponse

type UtilsGetLastShortenedLinksResponse struct {
	Count int                             `json:"count"`
	Items []object.UtilsLastShortenedLink `json:"items"`
}

UtilsGetLastShortenedLinksResponse struct.

type UtilsGetLinkStatsExtendedResponse

type UtilsGetLinkStatsExtendedResponse object.UtilsLinkStatsExtended

UtilsGetLinkStatsExtendedResponse struct.

type UtilsGetLinkStatsResponse

type UtilsGetLinkStatsResponse object.UtilsLinkStats

UtilsGetLinkStatsResponse struct.

type UtilsGetShortLinkResponse

type UtilsGetShortLinkResponse object.UtilsShortLink

UtilsGetShortLinkResponse struct.

type UtilsResolveScreenNameResponse

type UtilsResolveScreenNameResponse object.UtilsDomainResolved

UtilsResolveScreenNameResponse struct.

func (*UtilsResolveScreenNameResponse) DecodeMsgpack added in v2.13.0

func (resp *UtilsResolveScreenNameResponse) DecodeMsgpack(dec *msgpack.Decoder) error

DecodeMsgpack UtilsResolveScreenNameResponse.

BUG(VK): UtilsResolveScreenNameResponse return [].

func (*UtilsResolveScreenNameResponse) UnmarshalJSON added in v2.13.0

func (resp *UtilsResolveScreenNameResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON UtilsResolveScreenNameResponse.

BUG(VK): UtilsResolveScreenNameResponse return [].

type VK

type VK struct {
	MethodURL string
	Version   string
	Client    *http.Client
	Limit     int
	UserAgent string
	Handler   func(method string, params ...Params) (Response, error)
	// contains filtered or unexported fields
}

VK struct.

func NewVK

func NewVK(tokens ...string) *VK

NewVK returns a new VK.

The VKSDK will use the http.DefaultClient. This means that if the http.DefaultClient is modified by other components of your application the modifications will be picked up by the SDK as well.

In some cases this might be intended, but it is a better practice to create a custom HTTP Client to share explicitly through your application. You can configure the VKSDK to use the custom HTTP Client by setting the VK.Client value.

This set limit 20 requests per second for one token.

func (*VK) AccountBan

func (vk *VK) AccountBan(params Params) (response int, err error)

AccountBan account.ban.

https://vk.com/dev/account.ban

func (*VK) AccountChangePassword

func (vk *VK) AccountChangePassword(params Params) (response AccountChangePasswordResponse, err error)

AccountChangePassword changes a user password after access is successfully restored with the auth.restore method.

https://vk.com/dev/account.changePassword

func (*VK) AccountGetActiveOffers

func (vk *VK) AccountGetActiveOffers(params Params) (response AccountGetActiveOffersResponse, err error)

AccountGetActiveOffers returns a list of active ads (offers). If the user fulfill their conditions, he will be able to get the appropriate number of votes to his balance.

https://vk.com/dev/account.getActiveOffers

func (*VK) AccountGetAppPermissions

func (vk *VK) AccountGetAppPermissions(params Params) (response int, err error)

AccountGetAppPermissions gets settings of the user in this application.

https://vk.com/dev/account.getAppPermissions

func (*VK) AccountGetBanned

func (vk *VK) AccountGetBanned(params Params) (response AccountGetBannedResponse, err error)

AccountGetBanned returns a user's blacklist.

https://vk.com/dev/account.getBanned

func (*VK) AccountGetCounters

func (vk *VK) AccountGetCounters(params Params) (response AccountGetCountersResponse, err error)

AccountGetCounters returns non-null values of user counters.

https://vk.com/dev/account.getCounters

func (*VK) AccountGetInfo

func (vk *VK) AccountGetInfo(params Params) (response AccountGetInfoResponse, err error)

AccountGetInfo returns current account info.

https://vk.com/dev/account.getInfo

func (*VK) AccountGetProfileInfo

func (vk *VK) AccountGetProfileInfo(params Params) (response AccountGetProfileInfoResponse, err error)

AccountGetProfileInfo returns the current account info.

https://vk.com/dev/account.getProfileInfo

func (*VK) AccountGetPushSettings

func (vk *VK) AccountGetPushSettings(params Params) (response AccountGetPushSettingsResponse, err error)

AccountGetPushSettings account.getPushSettings Gets settings of push notifications.

https://vk.com/dev/account.getPushSettings

func (*VK) AccountRegisterDevice

func (vk *VK) AccountRegisterDevice(params Params) (response int, err error)

AccountRegisterDevice subscribes an iOS/Android/Windows/Mac based device to receive push notifications.

https://vk.com/dev/account.registerDevice

func (*VK) AccountSaveProfileInfo

func (vk *VK) AccountSaveProfileInfo(params Params) (response AccountSaveProfileInfoResponse, err error)

AccountSaveProfileInfo edits current profile info.

https://vk.com/dev/account.saveProfileInfo

func (*VK) AccountSetInfo

func (vk *VK) AccountSetInfo(params Params) (response int, err error)

AccountSetInfo allows to edit the current account info.

https://vk.com/dev/account.setInfo

func (*VK) AccountSetNameInMenu deprecated

func (vk *VK) AccountSetNameInMenu(params Params) (response int, err error)

AccountSetNameInMenu sets an application screen name (up to 17 characters), that is shown to the user in the left menu.

Deprecated: This method is deprecated and may be disabled soon, please avoid

https://vk.com/dev/account.setNameInMenu

func (*VK) AccountSetOffline

func (vk *VK) AccountSetOffline(params Params) (response int, err error)

AccountSetOffline marks a current user as offline.

https://vk.com/dev/account.setOffline

func (*VK) AccountSetOnline

func (vk *VK) AccountSetOnline(params Params) (response int, err error)

AccountSetOnline marks the current user as online for 5 minutes.

https://vk.com/dev/account.setOnline

func (*VK) AccountSetPushSettings

func (vk *VK) AccountSetPushSettings(params Params) (response int, err error)

AccountSetPushSettings change push settings.

https://vk.com/dev/account.setPushSettings

func (*VK) AccountSetSilenceMode

func (vk *VK) AccountSetSilenceMode(params Params) (response int, err error)

AccountSetSilenceMode mutes push notifications for the set period of time.

https://vk.com/dev/account.setSilenceMode

func (*VK) AccountUnban

func (vk *VK) AccountUnban(params Params) (response int, err error)

AccountUnban account.unban.

https://vk.com/dev/account.unban

func (*VK) AccountUnregisterDevice

func (vk *VK) AccountUnregisterDevice(params Params) (response int, err error)

AccountUnregisterDevice unsubscribes a device from push notifications.

https://vk.com/dev/account.unregisterDevice

func (*VK) AdsAddOfficeUsers added in v2.7.0

func (vk *VK) AdsAddOfficeUsers(params Params) (response AdsAddOfficeUsersResponse, err error)

AdsAddOfficeUsers adds managers and/or supervisors to advertising account.

https://vk.com/dev/ads.addOfficeUsers

func (vk *VK) AdsCheckLink(params Params) (response AdsCheckLinkResponse, err error)

AdsCheckLink allows to check the ad link.

https://vk.com/dev/ads.checkLink

func (*VK) AdsCreateAds added in v2.7.0

func (vk *VK) AdsCreateAds(params Params) (response AdsCreateAdsResponse, err error)

AdsCreateAds creates ads.

Please note! Maximum allowed number of ads created in one request is 5. Minimum size of ad audience is 50 people.

https://vk.com/dev/ads.createAds

func (*VK) AdsCreateCampaigns added in v2.7.0

func (vk *VK) AdsCreateCampaigns(params Params) (response AdsCreateCampaignsResponse, err error)

AdsCreateCampaigns creates advertising campaigns.

Please note! Allowed number of campaigns created in one request is 50.

https://vk.com/dev/ads.createCampaigns

func (*VK) AdsCreateClients added in v2.7.0

func (vk *VK) AdsCreateClients(params Params) (response AdsCreateClientsResponse, err error)

AdsCreateClients creates clients of an advertising agency.

Available only for advertising agencies.

Please note! Allowed number of clients created in one request is 50.

https://vk.com/dev/ads.createClients

func (*VK) AdsCreateLookalikeRequest added in v2.7.0

func (vk *VK) AdsCreateLookalikeRequest(params Params) (response AdsCreateLookalikeRequestResponse, err error)

AdsCreateLookalikeRequest creates a request to find a similar audience.

https://vk.com/dev/ads.createLookalikeRequest

func (*VK) AdsCreateTargetGroup added in v2.7.0

func (vk *VK) AdsCreateTargetGroup(params Params) (response AdsCreateTargetGroupResponse, err error)

AdsCreateTargetGroup Creates a group to re-target ads for users who visited advertiser's site (viewed information about the product, registered, etc.).

When executed successfully this method returns user accounting code on advertiser's site. You shall add this code to the site page, so users registered in VK will be added to the created target group after they visit this page.

Use ads.importTargetContacts method to import existing user contacts to the group.

Please note! Maximum allowed number of groups for one advertising account is 100.

https://vk.com/dev/ads.createTargetGroup

func (*VK) AdsCreateTargetPixel added in v2.7.0

func (vk *VK) AdsCreateTargetPixel(params Params) (response AdsCreateTargetPixelResponse, err error)

AdsCreateTargetPixel Creates retargeting pixel.

Method returns pixel code for users accounting on the advertiser site. Authorized VK users who visited the page with pixel code on it will be added to retargeting audience with corresponding rules. You can also use Open API, ads.importTargetContacts method and loading from file.

Maximum pixels number per advertising account is 25.

https://vk.com/dev/ads.createTargetPixel

func (*VK) AdsDeleteAds added in v2.7.0

func (vk *VK) AdsDeleteAds(params Params) (response AdsDeleteAdsResponse, err error)

AdsDeleteAds archives ads.

Warning! Maximum allowed number of ads archived in one request is 100.

https://vk.com/dev/ads.deleteAds

func (*VK) AdsDeleteCampaigns added in v2.7.0

func (vk *VK) AdsDeleteCampaigns(params Params) (response AdsDeleteCampaignsResponse, err error)

AdsDeleteCampaigns archives advertising campaigns.

Warning! Maximum allowed number of campaigns archived in one request is 100.

https://vk.com/dev/ads.deleteCampaigns

func (*VK) AdsDeleteClients added in v2.7.0

func (vk *VK) AdsDeleteClients(params Params) (response AdsDeleteClientsResponse, err error)

AdsDeleteClients archives clients of an advertising agency.

Available only for advertising agencies.

Please note! Maximum allowed number of clients edited in one request is 10.

https://vk.com/dev/ads.deleteClients

func (*VK) AdsDeleteTargetGroup

func (vk *VK) AdsDeleteTargetGroup(params Params) (response int, err error)

AdsDeleteTargetGroup deletes target group.

https://vk.com/dev/ads.deleteTargetGroup

func (*VK) AdsDeleteTargetPixel

func (vk *VK) AdsDeleteTargetPixel(params Params) (response int, err error)

AdsDeleteTargetPixel deletes target pixel.

https://vk.com/dev/ads.deleteTargetPixel

func (*VK) AdsGetAccounts

func (vk *VK) AdsGetAccounts(params Params) (response AdsGetAccountsResponse, err error)

AdsGetAccounts returns a list of advertising accounts.

https://vk.com/dev/ads.getAccounts

func (*VK) AdsGetAds added in v2.7.0

func (vk *VK) AdsGetAds(params Params) (response AdsGetAdsResponse, err error)

AdsGetAds returns a list of ads.

https://vk.com/dev/ads.getAds

func (*VK) AdsGetAdsLayout added in v2.7.0

func (vk *VK) AdsGetAdsLayout(params Params) (response AdsGetAdsLayoutResponse, err error)

AdsGetAdsLayout returns descriptions of ad layouts.

https://vk.com/dev/ads.getAdsLayout

func (*VK) AdsGetMusicians

func (vk *VK) AdsGetMusicians(params Params) (response AdsGetMusiciansResponse, err error)

AdsGetMusicians returns a list of musicians.

https://vk.com/dev/ads.getMusicians

func (*VK) AdsGetTargetGroups added in v2.7.0

func (vk *VK) AdsGetTargetGroups(params Params) (response AdsGetTargetGroupsResponse, err error)

AdsGetTargetGroups returns a list of target groups.

https://vk.com/dev/ads.getTargetGroups

func (*VK) AdsRemoveTargetContacts

func (vk *VK) AdsRemoveTargetContacts(params Params) (response int, err error)

AdsRemoveTargetContacts accepts the request to exclude the advertiser's contacts from the retargeting audience.

The maximum allowed number of contacts to be excluded by a single request is 1000.

Contacts are excluded within a few hours of the request.

https://vk.com/dev/ads.removeTargetContacts

func (*VK) AdsUpdateTargetGroup

func (vk *VK) AdsUpdateTargetGroup(params Params) (response int, err error)

AdsUpdateTargetGroup edits target group.

https://vk.com/dev/ads.updateTargetGroup

func (*VK) AdsUpdateTargetPixel

func (vk *VK) AdsUpdateTargetPixel(params Params) (response int, err error)

AdsUpdateTargetPixel edits target pixel.

https://vk.com/dev/ads.updateTargetPixel

func (*VK) AppWidgetsGetAppImageUploadServer

func (vk *VK) AppWidgetsGetAppImageUploadServer(params Params) (
	response AppWidgetsGetAppImageUploadServerResponse,
	err error,
)

AppWidgetsGetAppImageUploadServer returns a URL for uploading a photo to the app collection for community app widgets.

https://vk.com/dev/appWidgets.getAppImageUploadServer

func (*VK) AppWidgetsGetAppImages

func (vk *VK) AppWidgetsGetAppImages(params Params) (response AppWidgetsGetAppImagesResponse, err error)

AppWidgetsGetAppImages returns an app collection of images for community app widgets.

https://vk.com/dev/appWidgets.getAppImages

func (*VK) AppWidgetsGetGroupImageUploadServer

func (vk *VK) AppWidgetsGetGroupImageUploadServer(params Params) (
	response AppWidgetsGetGroupImageUploadServerResponse,
	err error,
)

AppWidgetsGetGroupImageUploadServer returns a URL for uploading a photo to the community collection for community app widgets.

https://vk.com/dev/appWidgets.getGroupImageUploadServer

func (*VK) AppWidgetsGetGroupImages

func (vk *VK) AppWidgetsGetGroupImages(params Params) (response AppWidgetsGetGroupImagesResponse, err error)

AppWidgetsGetGroupImages returns a community collection of images for community app widgets.

https://vk.com/dev/appWidgets.getGroupImages

func (*VK) AppWidgetsGetImagesByID

func (vk *VK) AppWidgetsGetImagesByID(params Params) (response object.AppWidgetsImage, err error)

AppWidgetsGetImagesByID returns an image for community app widgets by its ID.

https://vk.com/dev/appWidgets.getImagesById

func (*VK) AppWidgetsSaveAppImage

func (vk *VK) AppWidgetsSaveAppImage(params Params) (response object.AppWidgetsImage, err error)

AppWidgetsSaveAppImage allows to save image into app collection for community app widgets.

https://vk.com/dev/appWidgets.saveAppImage

func (*VK) AppWidgetsSaveGroupImage

func (vk *VK) AppWidgetsSaveGroupImage(params Params) (response object.AppWidgetsImage, err error)

AppWidgetsSaveGroupImage allows to save image into community collection for community app widgets.

https://vk.com/dev/appWidgets.saveGroupImage

func (*VK) AppWidgetsUpdate

func (vk *VK) AppWidgetsUpdate(params Params) (response int, err error)

AppWidgetsUpdate allows to update community app widget.

https://vk.com/dev/appWidgets.update

func (*VK) AppsAddUsersToTestingGroup added in v2.15.0

func (vk *VK) AppsAddUsersToTestingGroup(params Params) (response int, err error)

AppsAddUsersToTestingGroup method.

https://vk.com/dev/apps.addUsersToTestingGroup

func (*VK) AppsDeleteAppRequests

func (vk *VK) AppsDeleteAppRequests(params Params) (response int, err error)

AppsDeleteAppRequests deletes all request notifications from the current app.

https://vk.com/dev/apps.deleteAppRequests

func (*VK) AppsGet

func (vk *VK) AppsGet(params Params) (response AppsGetResponse, err error)

AppsGet returns applications data.

https://vk.com/dev/apps.get

func (*VK) AppsGetCatalog

func (vk *VK) AppsGetCatalog(params Params) (response AppsGetCatalogResponse, err error)

AppsGetCatalog returns a list of applications (apps) available to users in the App Catalog.

https://vk.com/dev/apps.getCatalog

func (*VK) AppsGetFriendsList

func (vk *VK) AppsGetFriendsList(params Params) (response AppsGetFriendsListResponse, err error)

AppsGetFriendsList creates friends list for requests and invites in current app.

extended=0

https://vk.com/dev/apps.getFriendsList

func (*VK) AppsGetFriendsListExtended

func (vk *VK) AppsGetFriendsListExtended(params Params) (response AppsGetFriendsListExtendedResponse, err error)

AppsGetFriendsListExtended creates friends list for requests and invites in current app.

extended=1

https://vk.com/dev/apps.getFriendsList

func (*VK) AppsGetLeaderboard

func (vk *VK) AppsGetLeaderboard(params Params) (response AppsGetLeaderboardResponse, err error)

AppsGetLeaderboard returns players rating in the game.

extended=0

https://vk.com/dev/apps.getLeaderboard

func (*VK) AppsGetLeaderboardExtended

func (vk *VK) AppsGetLeaderboardExtended(params Params) (response AppsGetLeaderboardExtendedResponse, err error)

AppsGetLeaderboardExtended returns players rating in the game.

extended=1

https://vk.com/dev/apps.getLeaderboard

func (*VK) AppsGetScopes

func (vk *VK) AppsGetScopes(params Params) (response AppsGetScopesResponse, err error)

AppsGetScopes ...

TODO: write docs.

https://vk.com/dev/apps.getScopes

func (*VK) AppsGetScore

func (vk *VK) AppsGetScore(params Params) (response string, err error)

AppsGetScore returns user score in app.

NOTE: vk wtf!?

https://vk.com/dev/apps.getScore

func (*VK) AppsGetTestingGroups added in v2.15.0

func (vk *VK) AppsGetTestingGroups(params Params) (response AppsGetTestingGroupsResponse, err error)

AppsGetTestingGroups method.

https://vk.com/dev/apps.getTestingGroups

func (*VK) AppsRemoveTestingGroup added in v2.15.0

func (vk *VK) AppsRemoveTestingGroup(params Params) (response int, err error)

AppsRemoveTestingGroup method.

https://vk.com/dev/apps.removeTestingGroup

func (*VK) AppsRemoveUsersFromTestingGroups added in v2.15.0

func (vk *VK) AppsRemoveUsersFromTestingGroups(params Params) (response int, err error)

AppsRemoveUsersFromTestingGroups method.

https://vk.com/dev/apps.removeUsersFromTestingGroups

func (*VK) AppsSendRequest

func (vk *VK) AppsSendRequest(params Params) (response int, err error)

AppsSendRequest sends a request to another user in an app that uses VK authorization.

https://vk.com/dev/apps.sendRequest

func (*VK) AppsUpdateMetaForTestingGroup added in v2.15.0

func (vk *VK) AppsUpdateMetaForTestingGroup(params Params) (response AppsUpdateMetaForTestingGroupResponse, err error)

AppsUpdateMetaForTestingGroup method.

https://vk.com/dev/apps.updateMetaForTestingGroup

func (*VK) AuthCheckPhone deprecated

func (vk *VK) AuthCheckPhone(params Params) (response int, err error)

AuthCheckPhone checks a user's phone number for correctness.

https://vk.com/dev/auth.checkPhone

Deprecated: This method is deprecated and may be disabled soon, please avoid using it.

func (*VK) AuthExchangeSilentAuthToken added in v2.13.0

func (vk *VK) AuthExchangeSilentAuthToken(params Params) (response AuthExchangeSilentAuthTokenResponse, err error)

AuthExchangeSilentAuthToken method.

https://platform.vk.com/?p=DocsDashboard&docs=tokens_access-token

func (*VK) AuthGetProfileInfoBySilentToken added in v2.13.0

func (vk *VK) AuthGetProfileInfoBySilentToken(params Params) (response AuthGetProfileInfoBySilentTokenResponse, err error)

AuthGetProfileInfoBySilentToken method.

https://platform.vk.com/?p=DocsDashboard&docs=tokens_silent-token

func (*VK) AuthRestore

func (vk *VK) AuthRestore(params Params) (response AuthRestoreResponse, err error)

AuthRestore allows to restore account access using a code received via SMS.

https://vk.com/dev/auth.restore

func (*VK) BoardAddTopic

func (vk *VK) BoardAddTopic(params Params) (response int, err error)

BoardAddTopic creates a new topic on a community's discussion board.

https://vk.com/dev/board.addTopic

func (*VK) BoardCloseTopic

func (vk *VK) BoardCloseTopic(params Params) (response int, err error)

BoardCloseTopic closes a topic on a community's discussion board so that comments cannot be posted.

https://vk.com/dev/board.closeTopic

func (*VK) BoardCreateComment

func (vk *VK) BoardCreateComment(params Params) (response int, err error)

BoardCreateComment adds a comment on a topic on a community's discussion board.

https://vk.com/dev/board.createComment

func (*VK) BoardDeleteComment

func (vk *VK) BoardDeleteComment(params Params) (response int, err error)

BoardDeleteComment deletes a comment on a topic on a community's discussion board.

https://vk.com/dev/board.deleteComment

func (*VK) BoardDeleteTopic

func (vk *VK) BoardDeleteTopic(params Params) (response int, err error)

BoardDeleteTopic deletes a topic from a community's discussion board.

https://vk.com/dev/board.deleteTopic

func (*VK) BoardEditComment

func (vk *VK) BoardEditComment(params Params) (response int, err error)

BoardEditComment edits a comment on a topic on a community's discussion board.

https://vk.com/dev/board.editComment

func (*VK) BoardEditTopic

func (vk *VK) BoardEditTopic(params Params) (response int, err error)

BoardEditTopic edits the title of a topic on a community's discussion board.

https://vk.com/dev/board.editTopic

func (*VK) BoardFixTopic

func (vk *VK) BoardFixTopic(params Params) (response int, err error)

BoardFixTopic pins a topic (fixes its place) to the top of a community's discussion board.

https://vk.com/dev/board.fixTopic

func (*VK) BoardGetComments

func (vk *VK) BoardGetComments(params Params) (response BoardGetCommentsResponse, err error)

BoardGetComments returns a list of comments on a topic on a community's discussion board.

extended=0

https://vk.com/dev/board.getComments

func (*VK) BoardGetCommentsExtended

func (vk *VK) BoardGetCommentsExtended(params Params) (response BoardGetCommentsExtendedResponse, err error)

BoardGetCommentsExtended returns a list of comments on a topic on a community's discussion board.

extended=1

https://vk.com/dev/board.getComments

func (*VK) BoardGetTopics

func (vk *VK) BoardGetTopics(params Params) (response BoardGetTopicsResponse, err error)

BoardGetTopics returns a list of topics on a community's discussion board.

extended=0

https://vk.com/dev/board.getTopics

func (*VK) BoardGetTopicsExtended

func (vk *VK) BoardGetTopicsExtended(params Params) (response BoardGetTopicsExtendedResponse, err error)

BoardGetTopicsExtended returns a list of topics on a community's discussion board.

extended=1

https://vk.com/dev/board.getTopics

func (*VK) BoardOpenTopic

func (vk *VK) BoardOpenTopic(params Params) (response int, err error)

BoardOpenTopic re-opens a previously closed topic on a community's discussion board.

https://vk.com/dev/board.openTopic

func (*VK) BoardRestoreComment

func (vk *VK) BoardRestoreComment(params Params) (response int, err error)

BoardRestoreComment restores a comment deleted from a topic on a community's discussion board.

https://vk.com/dev/board.restoreComment

func (*VK) BoardUnfixTopic

func (vk *VK) BoardUnfixTopic(params Params) (response int, err error)

BoardUnfixTopic unpins a pinned topic from the top of a community's discussion board.

https://vk.com/dev/board.unfixTopic

func (*VK) CallsForceFinish added in v2.16.0

func (vk *VK) CallsForceFinish(params Params) (response int, err error)

CallsForceFinish method.

https://vk.com/dev/calls.forceFinish

func (*VK) CallsStart added in v2.16.0

func (vk *VK) CallsStart(params Params) (response CallsStartResponse, err error)

CallsStart method.

https://vk.com/dev/calls.start

func (*VK) CaptchaForce

func (vk *VK) CaptchaForce(params Params) (response int, err error)

CaptchaForce api method.

func (*VK) DatabaseGetChairs

func (vk *VK) DatabaseGetChairs(params Params) (response DatabaseGetChairsResponse, err error)

DatabaseGetChairs returns list of chairs on a specified faculty.

https://vk.com/dev/database.getChairs

func (*VK) DatabaseGetCities

func (vk *VK) DatabaseGetCities(params Params) (response DatabaseGetCitiesResponse, err error)

DatabaseGetCities returns a list of cities.

https://vk.com/dev/database.getCities

func (*VK) DatabaseGetCitiesByID

func (vk *VK) DatabaseGetCitiesByID(params Params) (response DatabaseGetCitiesByIDResponse, err error)

DatabaseGetCitiesByID returns information about cities by their IDs.

https://vk.com/dev/database.getCitiesByID

func (*VK) DatabaseGetCountries

func (vk *VK) DatabaseGetCountries(params Params) (response DatabaseGetCountriesResponse, err error)

DatabaseGetCountries returns a list of countries.

https://vk.com/dev/database.getCountries

func (*VK) DatabaseGetCountriesByID

func (vk *VK) DatabaseGetCountriesByID(params Params) (response DatabaseGetCountriesByIDResponse, err error)

DatabaseGetCountriesByID returns information about countries by their IDs.

https://vk.com/dev/database.getCountriesByID

func (*VK) DatabaseGetFaculties

func (vk *VK) DatabaseGetFaculties(params Params) (response DatabaseGetFacultiesResponse, err error)

DatabaseGetFaculties returns a list of faculties (i.e., university departments).

https://vk.com/dev/database.getFaculties

func (*VK) DatabaseGetMetroStations

func (vk *VK) DatabaseGetMetroStations(params Params) (response DatabaseGetMetroStationsResponse, err error)

DatabaseGetMetroStations returns the list of metro stations.

https://vk.com/dev/database.getMetroStations

func (*VK) DatabaseGetMetroStationsByID

func (vk *VK) DatabaseGetMetroStationsByID(params Params) (response DatabaseGetMetroStationsByIDResponse, err error)

DatabaseGetMetroStationsByID returns information about one or several metro stations by their identifiers.

https://vk.com/dev/database.getMetroStationsById

func (*VK) DatabaseGetRegions

func (vk *VK) DatabaseGetRegions(params Params) (response DatabaseGetRegionsResponse, err error)

DatabaseGetRegions returns a list of regions.

https://vk.com/dev/database.getRegions

func (*VK) DatabaseGetSchoolClasses

func (vk *VK) DatabaseGetSchoolClasses(params Params) (response DatabaseGetSchoolClassesResponse, err error)

DatabaseGetSchoolClasses returns a list of school classes specified for the country.

BUG(VK): database.getSchoolClasses bad return.

https://vk.com/dev/database.getSchoolClasses

func (*VK) DatabaseGetSchools

func (vk *VK) DatabaseGetSchools(params Params) (response DatabaseGetSchoolsResponse, err error)

DatabaseGetSchools returns a list of schools.

https://vk.com/dev/database.getSchools

func (*VK) DatabaseGetUniversities

func (vk *VK) DatabaseGetUniversities(params Params) (response DatabaseGetUniversitiesResponse, err error)

DatabaseGetUniversities returns a list of higher education institutions.

https://vk.com/dev/database.getUniversities

func (*VK) DefaultHandler added in v2.12.0

func (vk *VK) DefaultHandler(method string, sliceParams ...Params) (Response, error)

DefaultHandler provides access to VK API methods.

func (*VK) DocsAdd

func (vk *VK) DocsAdd(params Params) (response int, err error)

DocsAdd copies a document to a user's or community's document list.

https://vk.com/dev/docs.add

func (*VK) DocsDelete

func (vk *VK) DocsDelete(params Params) (response int, err error)

DocsDelete deletes a user or community document.

https://vk.com/dev/docs.delete

func (*VK) DocsEdit

func (vk *VK) DocsEdit(params Params) (response int, err error)

DocsEdit edits a document.

https://vk.com/dev/docs.edit

func (*VK) DocsGet

func (vk *VK) DocsGet(params Params) (response DocsGetResponse, err error)

DocsGet returns detailed information about user or community documents.

https://vk.com/dev/docs.get

func (*VK) DocsGetByID

func (vk *VK) DocsGetByID(params Params) (response DocsGetByIDResponse, err error)

DocsGetByID returns information about documents by their IDs.

https://vk.com/dev/docs.getById

func (*VK) DocsGetMessagesUploadServer

func (vk *VK) DocsGetMessagesUploadServer(params Params) (response DocsGetMessagesUploadServerResponse, err error)

DocsGetMessagesUploadServer returns the server address for document upload.

https://vk.com/dev/docs.getMessagesUploadServer

func (*VK) DocsGetTypes

func (vk *VK) DocsGetTypes(params Params) (response DocsGetTypesResponse, err error)

DocsGetTypes returns documents types available for current user.

https://vk.com/dev/docs.getTypes

func (*VK) DocsGetUploadServer

func (vk *VK) DocsGetUploadServer(params Params) (response DocsGetUploadServerResponse, err error)

DocsGetUploadServer returns the server address for document upload.

https://vk.com/dev/docs.getUploadServer

func (*VK) DocsGetWallUploadServer

func (vk *VK) DocsGetWallUploadServer(params Params) (response DocsGetWallUploadServerResponse, err error)

DocsGetWallUploadServer returns the server address for document upload onto a user's or community's wall.

https://vk.com/dev/docs.getWallUploadServer

func (*VK) DocsSave

func (vk *VK) DocsSave(params Params) (response DocsSaveResponse, err error)

DocsSave saves a document after uploading it to a server.

https://vk.com/dev/docs.save

func (*VK) DocsSearch

func (vk *VK) DocsSearch(params Params) (response DocsSearchResponse, err error)

DocsSearch returns a list of documents matching the search criteria.

https://vk.com/dev/docs.search

func (*VK) DonutGetFriends added in v2.7.0

func (vk *VK) DonutGetFriends(params Params) (response DonutGetFriendsResponse, err error)

DonutGetFriends method.

https://vk.com/dev/donut.getFriends

func (*VK) DonutGetSubscription added in v2.7.0

func (vk *VK) DonutGetSubscription(params Params) (response object.DonutDonatorSubscriptionInfo, err error)

DonutGetSubscription method.

https://vk.com/dev/donut.getSubscription

func (*VK) DonutGetSubscriptions added in v2.7.0

func (vk *VK) DonutGetSubscriptions(params Params) (response DonutGetSubscriptionsResponse, err error)

DonutGetSubscriptions method.

https://vk.com/dev/donut.getSubscriptions

func (*VK) DonutIsDon added in v2.7.0

func (vk *VK) DonutIsDon(params Params) (response int, err error)

DonutIsDon method.

https://vk.com/dev/donut.isDon

func (*VK) DownloadedGamesGetPaidStatus

func (vk *VK) DownloadedGamesGetPaidStatus(params Params) (response DownloadedGamesGetPaidStatusResponse, err error)

DownloadedGamesGetPaidStatus method.

https://vk.com/dev/downloadedGames.getPaidStatus

func (*VK) EnableMessagePack added in v2.13.0

func (vk *VK) EnableMessagePack()

EnableMessagePack enable using MessagePack instead of JSON.

THIS IS EXPERIMENTAL FUNCTION! Broken encoding returned in some methods.

See https://msgpack.org

func (*VK) EnableZstd added in v2.13.0

func (vk *VK) EnableZstd()

EnableZstd enable using zstd instead of gzip.

This not use dict.

func (*VK) Execute

func (vk *VK) Execute(code string, obj interface{}) error

Execute a universal method for calling a sequence of other methods while saving and filtering interim results.

https://vk.com/dev/execute

func (*VK) ExecuteWithArgs

func (vk *VK) ExecuteWithArgs(code string, params Params, obj interface{}) error

ExecuteWithArgs a universal method for calling a sequence of other methods while saving and filtering interim results.

The Args map variable allows you to retrieve the parameters passed during the request and avoids code formatting.

return Args.code; // return parameter "code"
return Args.v; // return parameter "v"

https://vk.com/dev/execute

func (*VK) FaveAddArticle

func (vk *VK) FaveAddArticle(params Params) (response int, err error)

FaveAddArticle adds a link to user faves.

https://vk.com/dev/fave.addArticle

func (vk *VK) FaveAddLink(params Params) (response int, err error)

FaveAddLink adds a link to user faves.

https://vk.com/dev/fave.addLink

func (*VK) FaveAddPage

func (vk *VK) FaveAddPage(params Params) (response int, err error)

FaveAddPage method.

https://vk.com/dev/fave.addPage

func (*VK) FaveAddPost

func (vk *VK) FaveAddPost(params Params) (response int, err error)

FaveAddPost method.

https://vk.com/dev/fave.addPost

func (*VK) FaveAddProduct

func (vk *VK) FaveAddProduct(params Params) (response int, err error)

FaveAddProduct method.

https://vk.com/dev/fave.addProduct

func (*VK) FaveAddTag

func (vk *VK) FaveAddTag(params Params) (response FaveAddTagResponse, err error)

FaveAddTag method.

https://vk.com/dev/fave.addTag

func (*VK) FaveAddVideo

func (vk *VK) FaveAddVideo(params Params) (response int, err error)

FaveAddVideo method.

https://vk.com/dev/fave.addVideo

func (*VK) FaveEditTag

func (vk *VK) FaveEditTag(params Params) (response int, err error)

FaveEditTag method.

https://vk.com/dev/fave.editTag

func (*VK) FaveGet

func (vk *VK) FaveGet(params Params) (response FaveGetResponse, err error)

FaveGet method.

extended=0

https://vk.com/dev/fave.get

func (*VK) FaveGetExtended

func (vk *VK) FaveGetExtended(params Params) (response FaveGetExtendedResponse, err error)

FaveGetExtended method.

extended=1

https://vk.com/dev/fave.get

func (*VK) FaveGetPages

func (vk *VK) FaveGetPages(params Params) (response FaveGetPagesResponse, err error)

FaveGetPages method.

https://vk.com/dev/fave.getPages

func (*VK) FaveGetTags

func (vk *VK) FaveGetTags(params Params) (response FaveGetTagsResponse, err error)

FaveGetTags method.

https://vk.com/dev/fave.getTags

func (*VK) FaveMarkSeen

func (vk *VK) FaveMarkSeen(params Params) (response int, err error)

FaveMarkSeen method.

https://vk.com/dev/fave.markSeen

func (*VK) FaveRemoveArticle

func (vk *VK) FaveRemoveArticle(params Params) (response int, err error)

FaveRemoveArticle method.

https://vk.com/dev/fave.removeArticle

func (vk *VK) FaveRemoveLink(params Params) (response int, err error)

FaveRemoveLink removes link from the user's faves.

https://vk.com/dev/fave.removeLink

func (*VK) FaveRemovePage

func (vk *VK) FaveRemovePage(params Params) (response int, err error)

FaveRemovePage method.

https://vk.com/dev/fave.removePage

func (*VK) FaveRemovePost

func (vk *VK) FaveRemovePost(params Params) (response int, err error)

FaveRemovePost method.

https://vk.com/dev/fave.removePost

func (*VK) FaveRemoveProduct

func (vk *VK) FaveRemoveProduct(params Params) (response int, err error)

FaveRemoveProduct method.

https://vk.com/dev/fave.removeProduct

func (*VK) FaveRemoveTag

func (vk *VK) FaveRemoveTag(params Params) (response int, err error)

FaveRemoveTag method.

https://vk.com/dev/fave.removeTag

func (*VK) FaveRemoveVideo

func (vk *VK) FaveRemoveVideo(params Params) (response int, err error)

FaveRemoveVideo method.

https://vk.com/dev/fave.removeVideo

func (*VK) FaveReorderTags

func (vk *VK) FaveReorderTags(params Params) (response int, err error)

FaveReorderTags method.

https://vk.com/dev/fave.reorderTags

func (*VK) FaveSetPageTags

func (vk *VK) FaveSetPageTags(params Params) (response int, err error)

FaveSetPageTags method.

https://vk.com/dev/fave.setPageTags

func (*VK) FaveSetTags

func (vk *VK) FaveSetTags(params Params) (response int, err error)

FaveSetTags method.

https://vk.com/dev/fave.setTags

func (*VK) FaveTrackPageInteraction

func (vk *VK) FaveTrackPageInteraction(params Params) (response int, err error)

FaveTrackPageInteraction method.

https://vk.com/dev/fave.trackPageInteraction

func (*VK) FriendsAdd

func (vk *VK) FriendsAdd(params Params) (response int, err error)

FriendsAdd approves or creates a friend request.

https://vk.com/dev/friends.add

func (*VK) FriendsAddList

func (vk *VK) FriendsAddList(params Params) (response FriendsAddListResponse, err error)

FriendsAddList creates a new friend list for the current user.

https://vk.com/dev/friends.addList

func (*VK) FriendsAreFriends

func (vk *VK) FriendsAreFriends(params Params) (response FriendsAreFriendsResponse, err error)

FriendsAreFriends checks the current user's friendship status with other specified users.

https://vk.com/dev/friends.areFriends

func (*VK) FriendsDelete

func (vk *VK) FriendsDelete(params Params) (response FriendsDeleteResponse, err error)

FriendsDelete declines a friend request or deletes a user from the current user's friend list.

https://vk.com/dev/friends.delete

func (*VK) FriendsDeleteAllRequests

func (vk *VK) FriendsDeleteAllRequests(params Params) (response int, err error)

FriendsDeleteAllRequests marks all incoming friend requests as viewed.

https://vk.com/dev/friends.deleteAllRequests

func (*VK) FriendsDeleteList

func (vk *VK) FriendsDeleteList(params Params) (response int, err error)

FriendsDeleteList deletes a friend list of the current user.

https://vk.com/dev/friends.deleteList

func (*VK) FriendsEdit

func (vk *VK) FriendsEdit(params Params) (response int, err error)

FriendsEdit edits the friend lists of the selected user.

https://vk.com/dev/friends.edit

func (*VK) FriendsEditList

func (vk *VK) FriendsEditList(params Params) (response int, err error)

FriendsEditList edits a friend list of the current user.

https://vk.com/dev/friends.editList

func (*VK) FriendsGet

func (vk *VK) FriendsGet(params Params) (response FriendsGetResponse, err error)

FriendsGet returns a list of user IDs or detailed information about a user's friends.

https://vk.com/dev/friends.get

func (*VK) FriendsGetAppUsers

func (vk *VK) FriendsGetAppUsers(params Params) (response FriendsGetAppUsersResponse, err error)

FriendsGetAppUsers returns a list of IDs of the current user's friends who installed the application.

https://vk.com/dev/friends.getAppUsers

func (*VK) FriendsGetByPhones

func (vk *VK) FriendsGetByPhones(params Params) (response FriendsGetByPhonesResponse, err error)

FriendsGetByPhones returns a list of the current user's friends whose phone numbers, validated or specified in a profile, are in a given list.

https://vk.com/dev/friends.getByPhones

func (*VK) FriendsGetFields

func (vk *VK) FriendsGetFields(params Params) (response FriendsGetFieldsResponse, err error)

FriendsGetFields returns a list of user IDs or detailed information about a user's friends.

https://vk.com/dev/friends.get

func (*VK) FriendsGetLists

func (vk *VK) FriendsGetLists(params Params) (response FriendsGetListsResponse, err error)

FriendsGetLists returns a list of the user's friend lists.

https://vk.com/dev/friends.getLists

func (*VK) FriendsGetMutual

func (vk *VK) FriendsGetMutual(params Params) (response FriendsGetMutualResponse, err error)

FriendsGetMutual returns a list of user IDs of the mutual friends of two users.

https://vk.com/dev/friends.getMutual

func (*VK) FriendsGetOnline

func (vk *VK) FriendsGetOnline(params Params) (response []int, err error)

FriendsGetOnline returns a list of user IDs of a user's friends who are online.

online_mobile=0

https://vk.com/dev/friends.getOnline

func (*VK) FriendsGetOnlineOnlineMobile

func (vk *VK) FriendsGetOnlineOnlineMobile(params Params) (response FriendsGetOnlineOnlineMobileResponse, err error)

FriendsGetOnlineOnlineMobile returns a list of user IDs of a user's friends who are online.

online_mobile=1

https://vk.com/dev/friends.getOnline

func (*VK) FriendsGetRecent

func (vk *VK) FriendsGetRecent(params Params) (response FriendsGetRecentResponse, err error)

FriendsGetRecent returns a list of user IDs of the current user's recently added friends.

https://vk.com/dev/friends.getRecent

func (*VK) FriendsGetRequests

func (vk *VK) FriendsGetRequests(params Params) (response FriendsGetRequestsResponse, err error)

FriendsGetRequests returns information about the current user's incoming and outgoing friend requests.

https://vk.com/dev/friends.getRequests

func (*VK) FriendsGetRequestsExtended

func (vk *VK) FriendsGetRequestsExtended(params Params) (response FriendsGetRequestsExtendedResponse, err error)

FriendsGetRequestsExtended returns information about the current user's incoming and outgoing friend requests.

https://vk.com/dev/friends.getRequests

func (*VK) FriendsGetRequestsNeedMutual

func (vk *VK) FriendsGetRequestsNeedMutual(params Params) (response FriendsGetRequestsNeedMutualResponse, err error)

FriendsGetRequestsNeedMutual returns information about the current user's incoming and outgoing friend requests.

https://vk.com/dev/friends.getRequests

func (*VK) FriendsGetSuggestions

func (vk *VK) FriendsGetSuggestions(params Params) (response FriendsGetSuggestionsResponse, err error)

FriendsGetSuggestions returns a list of profiles of users whom the current user may know.

https://vk.com/dev/friends.getSuggestions

func (*VK) FriendsSearch

func (vk *VK) FriendsSearch(params Params) (response FriendsSearchResponse, err error)

FriendsSearch returns a list of friends matching the search criteria.

https://vk.com/dev/friends.search

func (*VK) GiftsGet

func (vk *VK) GiftsGet(params Params) (response GiftsGetResponse, err error)

GiftsGet returns a list of user gifts.

https://vk.com/dev/gifts.get

func (*VK) GiftsGetCatalog

func (vk *VK) GiftsGetCatalog(params Params) (response GiftsGetCatalogResponse, err error)

GiftsGetCatalog returns catalog.

https://vk.com/dev/gifts.get

func (*VK) GroupsAddAddress

func (vk *VK) GroupsAddAddress(params Params) (response GroupsAddAddressResponse, err error)

GroupsAddAddress groups.addAddress.

https://vk.com/dev/groups.addAddress

func (*VK) GroupsAddCallbackServer

func (vk *VK) GroupsAddCallbackServer(params Params) (response GroupsAddCallbackServerResponse, err error)

GroupsAddCallbackServer callback API server to the community.

https://vk.com/dev/groups.addCallbackServer

func (vk *VK) GroupsAddLink(params Params) (response GroupsAddLinkResponse, err error)

GroupsAddLink allows to add a link to the community.

https://vk.com/dev/groups.addLink

func (*VK) GroupsApproveRequest

func (vk *VK) GroupsApproveRequest(params Params) (response int, err error)

GroupsApproveRequest allows to approve join request to the community.

https://vk.com/dev/groups.approveRequest

func (*VK) GroupsBan

func (vk *VK) GroupsBan(params Params) (response int, err error)

GroupsBan adds a user or a group to the community blacklist.

https://vk.com/dev/groups.ban

func (*VK) GroupsCreate

func (vk *VK) GroupsCreate(params Params) (response GroupsCreateResponse, err error)

GroupsCreate creates a new community.

https://vk.com/dev/groups.create

func (*VK) GroupsDeleteAddress

func (vk *VK) GroupsDeleteAddress(params Params) (response int, err error)

GroupsDeleteAddress groups.deleteAddress.

https://vk.com/dev/groups.deleteAddress

func (*VK) GroupsDeleteCallbackServer

func (vk *VK) GroupsDeleteCallbackServer(params Params) (response int, err error)

GroupsDeleteCallbackServer callback API server from the community.

https://vk.com/dev/groups.deleteCallbackServer

func (vk *VK) GroupsDeleteLink(params Params) (response int, err error)

GroupsDeleteLink allows to delete a link from the community.

https://vk.com/dev/groups.deleteLink

func (*VK) GroupsDisableOnline

func (vk *VK) GroupsDisableOnline(params Params) (response int, err error)

GroupsDisableOnline disables "online" status in the community.

https://vk.com/dev/groups.disableOnline

func (*VK) GroupsEdit

func (vk *VK) GroupsEdit(params Params) (response int, err error)

GroupsEdit edits a community.

https://vk.com/dev/groups.edit

func (*VK) GroupsEditAddress

func (vk *VK) GroupsEditAddress(params Params) (response GroupsEditAddressResponse, err error)

GroupsEditAddress groups.editAddress.

https://vk.com/dev/groups.editAddress

func (*VK) GroupsEditCallbackServer

func (vk *VK) GroupsEditCallbackServer(params Params) (response int, err error)

GroupsEditCallbackServer edits Callback API server in the community.

https://vk.com/dev/groups.editCallbackServer

func (vk *VK) GroupsEditLink(params Params) (response int, err error)

GroupsEditLink allows to edit a link in the community.

https://vk.com/dev/groups.editLink

func (*VK) GroupsEditManager

func (vk *VK) GroupsEditManager(params Params) (response int, err error)

GroupsEditManager allows to add, remove or edit the community manager .

https://vk.com/dev/groups.editManager

func (*VK) GroupsEnableOnline

func (vk *VK) GroupsEnableOnline(params Params) (response int, err error)

GroupsEnableOnline enables "online" status in the community.

https://vk.com/dev/groups.enableOnline

func (*VK) GroupsGet

func (vk *VK) GroupsGet(params Params) (response GroupsGetResponse, err error)

GroupsGet returns a list of the communities to which a user belongs.

extended=0

https://vk.com/dev/groups.get

func (*VK) GroupsGetAddresses

func (vk *VK) GroupsGetAddresses(params Params) (response GroupsGetAddressesResponse, err error)

GroupsGetAddresses groups.getAddresses.

https://vk.com/dev/groups.getAddresses

func (*VK) GroupsGetBanned

func (vk *VK) GroupsGetBanned(params Params) (response GroupsGetBannedResponse, err error)

GroupsGetBanned returns a list of users on a community blacklist.

https://vk.com/dev/groups.getBanned

func (*VK) GroupsGetByID

func (vk *VK) GroupsGetByID(params Params) (response GroupsGetByIDResponse, err error)

GroupsGetByID returns information about communities by their IDs.

https://vk.com/dev/groups.getById

func (*VK) GroupsGetCallbackConfirmationCode

func (vk *VK) GroupsGetCallbackConfirmationCode(params Params) (
	response GroupsGetCallbackConfirmationCodeResponse,
	err error,
)

GroupsGetCallbackConfirmationCode returns Callback API confirmation code for the community.

https://vk.com/dev/groups.getCallbackConfirmationCode

func (*VK) GroupsGetCallbackServers

func (vk *VK) GroupsGetCallbackServers(params Params) (response GroupsGetCallbackServersResponse, err error)

GroupsGetCallbackServers receives a list of Callback API servers from the community.

https://vk.com/dev/groups.getCallbackServers

func (*VK) GroupsGetCallbackSettings

func (vk *VK) GroupsGetCallbackSettings(params Params) (response GroupsGetCallbackSettingsResponse, err error)

GroupsGetCallbackSettings returns Callback API notifications settings.

BUG(VK): MessageEdit always 0 https://vk.com/bugtracker?act=show&id=86762

https://vk.com/dev/groups.getCallbackSettings

func (*VK) GroupsGetCatalog deprecated

func (vk *VK) GroupsGetCatalog(params Params) (response GroupsGetCatalogResponse, err error)

GroupsGetCatalog returns communities list for a catalog category.

Deprecated: This method is deprecated and may be disabled soon, please avoid

https://vk.com/dev/groups.getCatalog

func (*VK) GroupsGetCatalogInfo

func (vk *VK) GroupsGetCatalogInfo(params Params) (response GroupsGetCatalogInfoResponse, err error)

GroupsGetCatalogInfo returns categories list for communities catalog.

extended=0

https://vk.com/dev/groups.getCatalogInfo

func (*VK) GroupsGetCatalogInfoExtended

func (vk *VK) GroupsGetCatalogInfoExtended(params Params) (response GroupsGetCatalogInfoExtendedResponse, err error)

GroupsGetCatalogInfoExtended returns categories list for communities catalog.

extended=1

https://vk.com/dev/groups.getCatalogInfo

func (*VK) GroupsGetExtended

func (vk *VK) GroupsGetExtended(params Params) (response GroupsGetExtendedResponse, err error)

GroupsGetExtended returns a list of the communities to which a user belongs.

extended=1

https://vk.com/dev/groups.get

func (*VK) GroupsGetInvitedUsers

func (vk *VK) GroupsGetInvitedUsers(params Params) (response GroupsGetInvitedUsersResponse, err error)

GroupsGetInvitedUsers returns invited users list of a community.

https://vk.com/dev/groups.getInvitedUsers

func (*VK) GroupsGetInvites

func (vk *VK) GroupsGetInvites(params Params) (response GroupsGetInvitesResponse, err error)

GroupsGetInvites returns a list of invitations to join communities and events.

https://vk.com/dev/groups.getInvites

func (*VK) GroupsGetInvitesExtended

func (vk *VK) GroupsGetInvitesExtended(params Params) (response GroupsGetInvitesExtendedResponse, err error)

GroupsGetInvitesExtended returns a list of invitations to join communities and events.

https://vk.com/dev/groups.getInvites

func (*VK) GroupsGetLongPollServer

func (vk *VK) GroupsGetLongPollServer(params Params) (response GroupsGetLongPollServerResponse, err error)

GroupsGetLongPollServer returns data for Bots Long Poll API connection.

https://vk.com/dev/groups.getLongPollServer

func (*VK) GroupsGetLongPollSettings

func (vk *VK) GroupsGetLongPollSettings(params Params) (response GroupsGetLongPollSettingsResponse, err error)

GroupsGetLongPollSettings returns Bots Long Poll API settings.

https://vk.com/dev/groups.getLongPollSettings

func (*VK) GroupsGetMembers

func (vk *VK) GroupsGetMembers(params Params) (response GroupsGetMembersResponse, err error)

GroupsGetMembers returns a list of community members.

https://vk.com/dev/groups.getMembers

func (*VK) GroupsGetMembersFields

func (vk *VK) GroupsGetMembersFields(params Params) (response GroupsGetMembersFieldsResponse, err error)

GroupsGetMembersFields returns a list of community members.

https://vk.com/dev/groups.getMembers

func (*VK) GroupsGetMembersFilterManagers

func (vk *VK) GroupsGetMembersFilterManagers(params Params) (
	response GroupsGetMembersFilterManagersResponse,
	err error,
)

GroupsGetMembersFilterManagers returns a list of community members.

filter=managers

https://vk.com/dev/groups.getMembers

func (*VK) GroupsGetOnlineStatus

func (vk *VK) GroupsGetOnlineStatus(params Params) (response GroupsGetOnlineStatusResponse, err error)

GroupsGetOnlineStatus returns a community's online status.

https://vk.com/dev/groups.getOnlineStatus

func (*VK) GroupsGetRequests

func (vk *VK) GroupsGetRequests(params Params) (response GroupsGetRequestsResponse, err error)

GroupsGetRequests returns a list of requests to the community.

https://vk.com/dev/groups.getRequests

func (*VK) GroupsGetRequestsFields

func (vk *VK) GroupsGetRequestsFields(params Params) (response GroupsGetRequestsFieldsResponse, err error)

GroupsGetRequestsFields returns a list of requests to the community.

https://vk.com/dev/groups.getRequests

func (*VK) GroupsGetSettings

func (vk *VK) GroupsGetSettings(params Params) (response GroupsGetSettingsResponse, err error)

GroupsGetSettings returns community settings.

https://vk.com/dev/groups.getSettings

func (*VK) GroupsGetTagList

func (vk *VK) GroupsGetTagList(params Params) (response GroupsGetTagListResponse, err error)

GroupsGetTagList returns community tags list.

https://vk.com/dev/groups.getTagList

func (*VK) GroupsGetTokenPermissions

func (vk *VK) GroupsGetTokenPermissions(params Params) (response GroupsGetTokenPermissionsResponse, err error)

GroupsGetTokenPermissions returns permissions scope for the community's access_token.

https://vk.com/dev/groups.getTokenPermissions

func (*VK) GroupsInvite

func (vk *VK) GroupsInvite(params Params) (response int, err error)

GroupsInvite allows to invite friends to the community.

https://vk.com/dev/groups.invite

func (*VK) GroupsIsMember

func (vk *VK) GroupsIsMember(params Params) (response int, err error)

GroupsIsMember returns information specifying whether a user is a member of a community.

extended=0

https://vk.com/dev/groups.isMember

func (*VK) GroupsIsMemberExtended

func (vk *VK) GroupsIsMemberExtended(params Params) (response GroupsIsMemberExtendedResponse, err error)

GroupsIsMemberExtended returns information specifying whether a user is a member of a community.

extended=1

https://vk.com/dev/groups.isMember

func (*VK) GroupsIsMemberUserIDs

func (vk *VK) GroupsIsMemberUserIDs(params Params) (response GroupsIsMemberUserIDsResponse, err error)

GroupsIsMemberUserIDs returns information specifying whether a user is a member of a community.

extended=0
need user_ids

https://vk.com/dev/groups.isMember

func (*VK) GroupsIsMemberUserIDsExtended

func (vk *VK) GroupsIsMemberUserIDsExtended(params Params) (response GroupsIsMemberUserIDsExtendedResponse, err error)

GroupsIsMemberUserIDsExtended returns information specifying whether a user is a member of a community.

extended=1
need user_ids

https://vk.com/dev/groups.isMember

func (*VK) GroupsJoin

func (vk *VK) GroupsJoin(params Params) (response int, err error)

GroupsJoin with this method you can join the group or public page, and also confirm your participation in an event.

https://vk.com/dev/groups.join

func (*VK) GroupsLeave

func (vk *VK) GroupsLeave(params Params) (response int, err error)

GroupsLeave with this method you can leave a group, public page, or event.

https://vk.com/dev/groups.leave

func (*VK) GroupsRemoveUser

func (vk *VK) GroupsRemoveUser(params Params) (response int, err error)

GroupsRemoveUser removes a user from the community.

https://vk.com/dev/groups.removeUser

func (vk *VK) GroupsReorderLink(params Params) (response int, err error)

GroupsReorderLink allows to reorder links in the community.

https://vk.com/dev/groups.reorderLink

func (*VK) GroupsSearch

func (vk *VK) GroupsSearch(params Params) (response GroupsSearchResponse, err error)

GroupsSearch returns a list of communities matching the search criteria.

https://vk.com/dev/groups.search

func (*VK) GroupsSetCallbackSettings

func (vk *VK) GroupsSetCallbackSettings(params Params) (response int, err error)

GroupsSetCallbackSettings allow to set notifications settings for Callback API.

https://vk.com/dev/groups.setCallbackSettings

func (*VK) GroupsSetLongPollSettings

func (vk *VK) GroupsSetLongPollSettings(params Params) (response int, err error)

GroupsSetLongPollSettings allows to set Bots Long Poll API settings in the community.

https://vk.com/dev/groups.setLongPollSettings

func (*VK) GroupsSetSettings

func (vk *VK) GroupsSetSettings(params Params) (response int, err error)

GroupsSetSettings sets community settings.

https://vk.com/dev/groups.setSettings

func (*VK) GroupsSetUserNote

func (vk *VK) GroupsSetUserNote(params Params) (response int, err error)

GroupsSetUserNote allows to create or edit a note about a user as part of the user's correspondence with the community.

https://vk.com/dev/groups.setUserNote

func (*VK) GroupsTagAdd

func (vk *VK) GroupsTagAdd(params Params) (response int, err error)

GroupsTagAdd allows to add a new tag to the community.

https://vk.com/dev/groups.tagAdd

func (*VK) GroupsTagBind

func (vk *VK) GroupsTagBind(params Params) (response int, err error)

GroupsTagBind allows to "bind" and "unbind" community tags to conversations.

https://vk.com/dev/groups.tagBind

func (*VK) GroupsTagDelete

func (vk *VK) GroupsTagDelete(params Params) (response int, err error)

GroupsTagDelete allows to remove a community tag

The remote tag will be automatically "unbind" from all conversations to which it was "bind" earlier.

https://vk.com/dev/groups.tagDelete

func (*VK) GroupsTagUpdate

func (vk *VK) GroupsTagUpdate(params Params) (response int, err error)

GroupsTagUpdate allows to change an existing tag.

https://vk.com/dev/groups.tagUpdate

func (*VK) GroupsToggleMarket

func (vk *VK) GroupsToggleMarket(params Params) (response int, err error)

GroupsToggleMarket method.

https://vk.com/dev/groups.toggleMarket

func (*VK) GroupsUnban

func (vk *VK) GroupsUnban(params Params) (response int, err error)

GroupsUnban groups.unban.

https://vk.com/dev/groups.unban

func (*VK) LeadFormsCreate

func (vk *VK) LeadFormsCreate(params Params) (response LeadFormsCreateResponse, err error)

LeadFormsCreate leadForms.create.

https://vk.com/dev/leadForms.create

func (*VK) LeadFormsDelete

func (vk *VK) LeadFormsDelete(params Params) (response LeadFormsDeleteResponse, err error)

LeadFormsDelete leadForms.delete.

https://vk.com/dev/leadForms.delete

func (*VK) LeadFormsGet

func (vk *VK) LeadFormsGet(params Params) (response LeadFormsGetResponse, err error)

LeadFormsGet leadForms.get.

https://vk.com/dev/leadForms.get

func (*VK) LeadFormsGetLeads

func (vk *VK) LeadFormsGetLeads(params Params) (response LeadFormsGetLeadsResponse, err error)

LeadFormsGetLeads leadForms.getLeads.

https://vk.com/dev/leadForms.getLeads

func (*VK) LeadFormsGetUploadURL

func (vk *VK) LeadFormsGetUploadURL(params Params) (response string, err error)

LeadFormsGetUploadURL leadForms.getUploadURL.

https://vk.com/dev/leadForms.getUploadURL

func (*VK) LeadFormsList

func (vk *VK) LeadFormsList(params Params) (response LeadFormsListResponse, err error)

LeadFormsList leadForms.list.

https://vk.com/dev/leadForms.list

func (*VK) LeadFormsUpdate

func (vk *VK) LeadFormsUpdate(params Params) (response LeadFormsUpdateResponse, err error)

LeadFormsUpdate leadForms.update.

https://vk.com/dev/leadForms.update

func (*VK) LeadsCheckUser

func (vk *VK) LeadsCheckUser(params Params) (response LeadsCheckUserResponse, err error)

LeadsCheckUser checks if the user can start the lead.

https://vk.com/dev/leads.checkUser

func (*VK) LeadsComplete

func (vk *VK) LeadsComplete(params Params) (response LeadsCompleteResponse, err error)

LeadsComplete completes the lead started by user.

https://vk.com/dev/leads.complete

func (*VK) LeadsGetStats

func (vk *VK) LeadsGetStats(params Params) (response LeadsGetStatsResponse, err error)

LeadsGetStats returns lead stats data.

https://vk.com/dev/leads.getStats

func (*VK) LeadsGetUsers

func (vk *VK) LeadsGetUsers(params Params) (response LeadsGetUsersResponse, err error)

LeadsGetUsers returns a list of last user actions for the offer.

https://vk.com/dev/leads.getUsers

func (*VK) LeadsMetricHit

func (vk *VK) LeadsMetricHit(params Params) (response LeadsMetricHitResponse, err error)

LeadsMetricHit counts the metric event.

https://vk.com/dev/leads.metricHit

func (*VK) LeadsStart

func (vk *VK) LeadsStart(params Params) (response LeadsStartResponse, err error)

LeadsStart creates new session for the user passing the offer.

https://vk.com/dev/leads.start

func (*VK) LikesAdd

func (vk *VK) LikesAdd(params Params) (response LikesAddResponse, err error)

LikesAdd adds the specified object to the Likes list of the current user.

https://vk.com/dev/likes.add

func (*VK) LikesDelete

func (vk *VK) LikesDelete(params Params) (response LikesDeleteResponse, err error)

LikesDelete deletes the specified object from the Likes list of the current user.

https://vk.com/dev/likes.delete

func (*VK) LikesGetList

func (vk *VK) LikesGetList(params Params) (response LikesGetListResponse, err error)

LikesGetList likes.getList returns a list of IDs of users who added the specified object to their Likes list.

extended=0

https://vk.com/dev/likes.getList

func (*VK) LikesGetListExtended

func (vk *VK) LikesGetListExtended(params Params) (response LikesGetListExtendedResponse, err error)

LikesGetListExtended likes.getList returns a list of IDs of users who added the specified object to their Likes list.

extended=1

https://vk.com/dev/likes.getList

func (*VK) LikesIsLiked

func (vk *VK) LikesIsLiked(params Params) (response LikesIsLikedResponse, err error)

LikesIsLiked checks for the object in the Likes list of the specified user.

https://vk.com/dev/likes.isLiked

func (*VK) MarketAdd

func (vk *VK) MarketAdd(params Params) (response MarketAddResponse, err error)

MarketAdd adds a new item to the market.

https://vk.com/dev/market.add

func (*VK) MarketAddAlbum

func (vk *VK) MarketAddAlbum(params Params) (response MarketAddAlbumResponse, err error)

MarketAddAlbum creates new collection of items.

https://vk.com/dev/market.addAlbum

func (*VK) MarketAddToAlbum

func (vk *VK) MarketAddToAlbum(params Params) (response int, err error)

MarketAddToAlbum adds an item to one or multiple collections.

https://vk.com/dev/market.addToAlbum

func (*VK) MarketCreateComment

func (vk *VK) MarketCreateComment(params Params) (response int, err error)

MarketCreateComment creates a new comment for an item.

https://vk.com/dev/market.createComment

func (*VK) MarketDelete

func (vk *VK) MarketDelete(params Params) (response int, err error)

MarketDelete deletes an item.

https://vk.com/dev/market.delete

func (*VK) MarketDeleteAlbum

func (vk *VK) MarketDeleteAlbum(params Params) (response int, err error)

MarketDeleteAlbum deletes a collection of items.

https://vk.com/dev/market.deleteAlbum

func (*VK) MarketDeleteComment

func (vk *VK) MarketDeleteComment(params Params) (response int, err error)

MarketDeleteComment deletes an item's comment.

https://vk.com/dev/market.deleteComment

func (*VK) MarketEdit

func (vk *VK) MarketEdit(params Params) (response int, err error)

MarketEdit edits an item.

https://vk.com/dev/market.edit

func (*VK) MarketEditAlbum

func (vk *VK) MarketEditAlbum(params Params) (response int, err error)

MarketEditAlbum edits a collection of items.

https://vk.com/dev/market.editAlbum

func (*VK) MarketEditComment

func (vk *VK) MarketEditComment(params Params) (response int, err error)

MarketEditComment changes item comment's text.

https://vk.com/dev/market.editComment

func (*VK) MarketEditOrder

func (vk *VK) MarketEditOrder(params Params) (response int, err error)

MarketEditOrder edits an order.

https://vk.com/dev/market.editOrder

func (*VK) MarketGet

func (vk *VK) MarketGet(params Params) (response MarketGetResponse, err error)

MarketGet returns items list for a community.

https://vk.com/dev/market.get

func (*VK) MarketGetAlbumByID

func (vk *VK) MarketGetAlbumByID(params Params) (response MarketGetAlbumByIDResponse, err error)

MarketGetAlbumByID returns items album's data.

https://vk.com/dev/market.getAlbumById

func (*VK) MarketGetAlbums

func (vk *VK) MarketGetAlbums(params Params) (response MarketGetAlbumsResponse, err error)

MarketGetAlbums returns community's collections list.

https://vk.com/dev/market.getAlbums

func (*VK) MarketGetByID

func (vk *VK) MarketGetByID(params Params) (response MarketGetByIDResponse, err error)

MarketGetByID returns information about market items by their iDs.

https://vk.com/dev/market.getById

func (*VK) MarketGetCategories

func (vk *VK) MarketGetCategories(params Params) (response MarketGetCategoriesResponse, err error)

MarketGetCategories returns a list of market categories.

https://vk.com/dev/market.getCategories

func (*VK) MarketGetComments

func (vk *VK) MarketGetComments(params Params) (response MarketGetCommentsResponse, err error)

MarketGetComments returns comments list for an item.

extended=0

https://vk.com/dev/market.getComments

func (*VK) MarketGetCommentsExtended

func (vk *VK) MarketGetCommentsExtended(params Params) (response MarketGetCommentsExtendedResponse, err error)

MarketGetCommentsExtended returns comments list for an item.

extended=1

https://vk.com/dev/market.getComments

func (*VK) MarketGetGroupOrders

func (vk *VK) MarketGetGroupOrders(params Params) (response MarketGetGroupOrdersResponse, err error)

MarketGetGroupOrders returns community's orders list.

https://vk.com/dev/market.getGroupOrders

func (*VK) MarketGetOrderByID

func (vk *VK) MarketGetOrderByID(params Params) (response MarketGetOrderByIDResponse, err error)

MarketGetOrderByID returns order by id.

https://vk.com/dev/market.getOrderById

func (*VK) MarketGetOrderItems

func (vk *VK) MarketGetOrderItems(params Params) (response MarketGetOrderItemsResponse, err error)

MarketGetOrderItems returns items of an order.

https://vk.com/dev/market.getOrderItems

func (*VK) MarketRemoveFromAlbum

func (vk *VK) MarketRemoveFromAlbum(params Params) (response int, err error)

MarketRemoveFromAlbum removes an item from one or multiple collections.

https://vk.com/dev/market.removeFromAlbum

func (*VK) MarketReorderAlbums

func (vk *VK) MarketReorderAlbums(params Params) (response int, err error)

MarketReorderAlbums reorders the collections list.

https://vk.com/dev/market.reorderAlbums

func (*VK) MarketReorderItems

func (vk *VK) MarketReorderItems(params Params) (response int, err error)

MarketReorderItems changes item place in a collection.

https://vk.com/dev/market.reorderItems

func (*VK) MarketReport

func (vk *VK) MarketReport(params Params) (response int, err error)

MarketReport sends a complaint to the item.

https://vk.com/dev/market.report

func (*VK) MarketReportComment

func (vk *VK) MarketReportComment(params Params) (response int, err error)

MarketReportComment sends a complaint to the item's comment.

https://vk.com/dev/market.reportComment

func (*VK) MarketRestore

func (vk *VK) MarketRestore(params Params) (response int, err error)

MarketRestore restores recently deleted item.

https://vk.com/dev/market.restore

func (*VK) MarketRestoreComment

func (vk *VK) MarketRestoreComment(params Params) (response int, err error)

MarketRestoreComment restores a recently deleted comment.

https://vk.com/dev/market.restoreComment

func (*VK) MarketSearch

func (vk *VK) MarketSearch(params Params) (response MarketSearchResponse, err error)

MarketSearch searches market items in a community's catalog.

https://vk.com/dev/market.search

func (*VK) MarketSearchItems added in v2.11.0

func (vk *VK) MarketSearchItems(params Params) (response MarketSearchItemsResponse, err error)

MarketSearchItems method.

https://vk.com/dev/market.searchItems

func (*VK) MarusiaCreateAudio added in v2.11.0

func (vk *VK) MarusiaCreateAudio(params Params) (response MarusiaCreateAudioResponse, err error)

MarusiaCreateAudio method.

https://vk.com/dev/marusia_skill_docs10

func (*VK) MarusiaDeleteAudio added in v2.11.0

func (vk *VK) MarusiaDeleteAudio(params Params) (response int, err error)

MarusiaDeleteAudio delete audio.

https://vk.com/dev/marusia_skill_docs10

func (*VK) MarusiaDeletePicture added in v2.11.0

func (vk *VK) MarusiaDeletePicture(params Params) (response int, err error)

MarusiaDeletePicture delete picture.

https://vk.com/dev/marusia_skill_docs10

func (vk *VK) MarusiaGetAudioUploadLink(params Params) (response MarusiaGetAudioUploadLinkResponse, err error)

MarusiaGetAudioUploadLink method.

https://vk.com/dev/marusia_skill_docs10

func (*VK) MarusiaGetAudios added in v2.11.0

func (vk *VK) MarusiaGetAudios(params Params) (response MarusiaGetAudiosResponse, err error)

MarusiaGetAudios method.

https://vk.com/dev/marusia_skill_docs10

func (vk *VK) MarusiaGetPictureUploadLink(params Params) (response MarusiaGetPictureUploadLinkResponse, err error)

MarusiaGetPictureUploadLink method.

https://vk.com/dev/marusia_skill_docs10

func (*VK) MarusiaGetPictures added in v2.11.0

func (vk *VK) MarusiaGetPictures(params Params) (response MarusiaGetPicturesResponse, err error)

MarusiaGetPictures method.

https://vk.com/dev/marusia_skill_docs10

func (*VK) MarusiaSavePicture added in v2.11.0

func (vk *VK) MarusiaSavePicture(params Params) (response MarusiaSavePictureResponse, err error)

MarusiaSavePicture method.

https://vk.com/dev/marusia_skill_docs10

func (*VK) MessagesAddChatUser

func (vk *VK) MessagesAddChatUser(params Params) (response int, err error)

MessagesAddChatUser adds a new user to a chat.

https://vk.com/dev/messages.addChatUser

func (*VK) MessagesAllowMessagesFromGroup

func (vk *VK) MessagesAllowMessagesFromGroup(params Params) (response int, err error)

MessagesAllowMessagesFromGroup allows sending messages from community to the current user.

https://vk.com/dev/messages.allowMessagesFromGroup

func (*VK) MessagesCreateChat

func (vk *VK) MessagesCreateChat(params Params) (response int, err error)

MessagesCreateChat creates a chat with several participants.

https://vk.com/dev/messages.createChat

func (*VK) MessagesDelete

func (vk *VK) MessagesDelete(params Params) (response MessagesDeleteResponse, err error)

MessagesDelete deletes one or more messages.

https://vk.com/dev/messages.delete

func (*VK) MessagesDeleteChatPhoto

func (vk *VK) MessagesDeleteChatPhoto(params Params) (response MessagesDeleteChatPhotoResponse, err error)

MessagesDeleteChatPhoto deletes a chat's cover picture.

https://vk.com/dev/messages.deleteChatPhoto

func (*VK) MessagesDeleteConversation

func (vk *VK) MessagesDeleteConversation(params Params) (response MessagesDeleteConversationResponse, err error)

MessagesDeleteConversation deletes private messages in a conversation.

https://vk.com/dev/messages.deleteConversation

func (*VK) MessagesDenyMessagesFromGroup

func (vk *VK) MessagesDenyMessagesFromGroup(params Params) (response int, err error)

MessagesDenyMessagesFromGroup denies sending message from community to the current user.

https://vk.com/dev/messages.denyMessagesFromGroup

func (*VK) MessagesEdit

func (vk *VK) MessagesEdit(params Params) (response int, err error)

MessagesEdit edits the message.

https://vk.com/dev/messages.edit

func (*VK) MessagesEditChat

func (vk *VK) MessagesEditChat(params Params) (response int, err error)

MessagesEditChat edits the title of a chat.

https://vk.com/dev/messages.editChat

func (*VK) MessagesForceCallFinish deprecated added in v2.15.0

func (vk *VK) MessagesForceCallFinish(params Params) (response int, err error)

MessagesForceCallFinish method.

Deprecated: Use CallsForceFinish

https://vk.com/dev/messages.forceCallFinish

func (*VK) MessagesGetByConversationMessageID

func (vk *VK) MessagesGetByConversationMessageID(params Params) (
	response MessagesGetByConversationMessageIDResponse,
	err error,
)

MessagesGetByConversationMessageID messages.getByConversationMessageId.

https://vk.com/dev/messages.getByConversationMessageId

func (*VK) MessagesGetByID

func (vk *VK) MessagesGetByID(params Params) (response MessagesGetByIDResponse, err error)

MessagesGetByID returns messages by their IDs.

extended=0

https://vk.com/dev/messages.getById

func (*VK) MessagesGetByIDExtended

func (vk *VK) MessagesGetByIDExtended(params Params) (response MessagesGetByIDExtendedResponse, err error)

MessagesGetByIDExtended returns messages by their IDs.

extended=1

https://vk.com/dev/messages.getById

func (*VK) MessagesGetChat

func (vk *VK) MessagesGetChat(params Params) (response MessagesGetChatResponse, err error)

MessagesGetChat returns information about a chat.

https://vk.com/dev/messages.getChat

func (*VK) MessagesGetChatChatIDs

func (vk *VK) MessagesGetChatChatIDs(params Params) (response MessagesGetChatChatIDsResponse, err error)

MessagesGetChatChatIDs returns information about a chat.

https://vk.com/dev/messages.getChat

func (*VK) MessagesGetChatPreview

func (vk *VK) MessagesGetChatPreview(params Params) (response MessagesGetChatPreviewResponse, err error)

MessagesGetChatPreview allows to receive chat preview by the invitation link.

https://vk.com/dev/messages.getChatPreview

func (*VK) MessagesGetConversationMembers

func (vk *VK) MessagesGetConversationMembers(params Params) (
	response MessagesGetConversationMembersResponse,
	err error,
)

MessagesGetConversationMembers returns a list of IDs of users participating in a conversation.

https://vk.com/dev/messages.getConversationMembers

func (*VK) MessagesGetConversations

func (vk *VK) MessagesGetConversations(params Params) (response MessagesGetConversationsResponse, err error)

MessagesGetConversations returns a list of conversations.

https://vk.com/dev/messages.getConversations

func (*VK) MessagesGetConversationsByID

func (vk *VK) MessagesGetConversationsByID(params Params) (response MessagesGetConversationsByIDResponse, err error)

MessagesGetConversationsByID returns conversations by their IDs.

extended=0

https://vk.com/dev/messages.getConversationsById

func (*VK) MessagesGetConversationsByIDExtended

func (vk *VK) MessagesGetConversationsByIDExtended(params Params) (
	response MessagesGetConversationsByIDExtendedResponse,
	err error,
)

MessagesGetConversationsByIDExtended returns conversations by their IDs.

extended=1

https://vk.com/dev/messages.getConversationsById

func (*VK) MessagesGetHistory

func (vk *VK) MessagesGetHistory(params Params) (response MessagesGetHistoryResponse, err error)

MessagesGetHistory returns message history for the specified user or group chat.

https://vk.com/dev/messages.getHistory

func (*VK) MessagesGetHistoryAttachments

func (vk *VK) MessagesGetHistoryAttachments(params Params) (response MessagesGetHistoryAttachmentsResponse, err error)

MessagesGetHistoryAttachments returns media files from the dialog or group chat.

https://vk.com/dev/messages.getHistoryAttachments

func (*VK) MessagesGetImportantMessages

func (vk *VK) MessagesGetImportantMessages(params Params) (response MessagesGetImportantMessagesResponse, err error)

MessagesGetImportantMessages messages.getImportantMessages.

https://vk.com/dev/messages.getImportantMessages

func (*VK) MessagesGetIntentUsers added in v2.9.0

func (vk *VK) MessagesGetIntentUsers(params Params) (response MessagesGetIntentUsersResponse, err error)

MessagesGetIntentUsers method.

https://vk.com/dev/messages.getIntentUsers

func (vk *VK) MessagesGetInviteLink(params Params) (response MessagesGetInviteLinkResponse, err error)

MessagesGetInviteLink receives a link to invite a user to the chat.

https://vk.com/dev/messages.getInviteLink

func (*VK) MessagesGetLastActivity

func (vk *VK) MessagesGetLastActivity(params Params) (response MessagesGetLastActivityResponse, err error)

MessagesGetLastActivity returns a user's current status and date of last activity.

https://vk.com/dev/messages.getLastActivity

func (*VK) MessagesGetLongPollHistory

func (vk *VK) MessagesGetLongPollHistory(params Params) (response MessagesGetLongPollHistoryResponse, err error)

MessagesGetLongPollHistory returns updates in user's private messages.

https://vk.com/dev/messages.getLongPollHistory

func (*VK) MessagesGetLongPollServer

func (vk *VK) MessagesGetLongPollServer(params Params) (response MessagesGetLongPollServerResponse, err error)

MessagesGetLongPollServer returns data required for connection to a Long Poll server.

https://vk.com/dev/messages.getLongPollServer

func (*VK) MessagesIsMessagesFromGroupAllowed

func (vk *VK) MessagesIsMessagesFromGroupAllowed(params Params) (
	response MessagesIsMessagesFromGroupAllowedResponse,
	err error,
)

MessagesIsMessagesFromGroupAllowed returns information whether sending messages from the community to current user is allowed.

https://vk.com/dev/messages.isMessagesFromGroupAllowed

func (vk *VK) MessagesJoinChatByInviteLink(params Params) (response MessagesJoinChatByInviteLinkResponse, err error)

MessagesJoinChatByInviteLink allows to enter the chat by the invitation link.

https://vk.com/dev/messages.joinChatByInviteLink

func (*VK) MessagesMarkAsAnsweredConversation

func (vk *VK) MessagesMarkAsAnsweredConversation(params Params) (response int, err error)

MessagesMarkAsAnsweredConversation messages.markAsAnsweredConversation.

https://vk.com/dev/messages.markAsAnsweredConversation

func (*VK) MessagesMarkAsImportant

func (vk *VK) MessagesMarkAsImportant(params Params) (response MessagesMarkAsImportantResponse, err error)

MessagesMarkAsImportant marks and un marks messages as important (starred).

https://vk.com/dev/messages.markAsImportant

func (*VK) MessagesMarkAsImportantConversation

func (vk *VK) MessagesMarkAsImportantConversation(params Params) (response int, err error)

MessagesMarkAsImportantConversation messages.markAsImportantConversation.

https://vk.com/dev/messages.markAsImportantConversation

func (*VK) MessagesMarkAsRead

func (vk *VK) MessagesMarkAsRead(params Params) (response int, err error)

MessagesMarkAsRead marks messages as read.

https://vk.com/dev/messages.markAsRead

func (*VK) MessagesPin

func (vk *VK) MessagesPin(params Params) (response MessagesPinResponse, err error)

MessagesPin messages.pin.

https://vk.com/dev/messages.pin

func (*VK) MessagesRemoveChatUser

func (vk *VK) MessagesRemoveChatUser(params Params) (response int, err error)

MessagesRemoveChatUser allows the current user to leave a chat or, if the current user started the chat, allows the user to remove another user from the chat.

https://vk.com/dev/messages.removeChatUser

func (*VK) MessagesRestore

func (vk *VK) MessagesRestore(params Params) (response int, err error)

MessagesRestore restores a deleted message.

https://vk.com/dev/messages.restore

func (*VK) MessagesSearch

func (vk *VK) MessagesSearch(params Params) (response MessagesSearchResponse, err error)

MessagesSearch returns a list of the current user's private messages that match search criteria.

https://vk.com/dev/messages.search

func (*VK) MessagesSearchConversations

func (vk *VK) MessagesSearchConversations(params Params) (response MessagesSearchConversationsResponse, err error)

MessagesSearchConversations returns a list of conversations that match search criteria.

https://vk.com/dev/messages.searchConversations

func (*VK) MessagesSend

func (vk *VK) MessagesSend(params Params) (response int, err error)

MessagesSend sends a message.

For user_ids or peer_ids parameters, use MessagesSendUserIDs.

https://vk.com/dev/messages.send

func (*VK) MessagesSendMessageEventAnswer

func (vk *VK) MessagesSendMessageEventAnswer(params Params) (response int, err error)

MessagesSendMessageEventAnswer method.

https://vk.com/dev/messages.sendMessageEventAnswer

func (*VK) MessagesSendPeerIDs added in v2.6.0

func (vk *VK) MessagesSendPeerIDs(params Params) (response MessagesSendUserIDsResponse, err error)

MessagesSendPeerIDs sends a message.

need peer_ids;

https://vk.com/dev/messages.send

func (*VK) MessagesSendSticker

func (vk *VK) MessagesSendSticker(params Params) (response int, err error)

MessagesSendSticker sends a message.

https://vk.com/dev/messages.sendSticker

func (*VK) MessagesSendUserIDs deprecated

func (vk *VK) MessagesSendUserIDs(params Params) (response MessagesSendUserIDsResponse, err error)

MessagesSendUserIDs sends a message.

need user_ids or peer_ids;

https://vk.com/dev/messages.send

Deprecated: user_ids outdated, use MessagesSendPeerIDs.

func (*VK) MessagesSetActivity

func (vk *VK) MessagesSetActivity(params Params) (response int, err error)

MessagesSetActivity changes the status of a user as typing in a conversation.

https://vk.com/dev/messages.setActivity

func (*VK) MessagesSetChatPhoto

func (vk *VK) MessagesSetChatPhoto(params Params) (response MessagesSetChatPhotoResponse, err error)

MessagesSetChatPhoto sets a previously-uploaded picture as the cover picture of a chat.

https://vk.com/dev/messages.setChatPhoto

func (*VK) MessagesStartCall deprecated added in v2.15.0

func (vk *VK) MessagesStartCall(params Params) (response MessagesStartCallResponse, err error)

MessagesStartCall method.

Deprecated: Use CallsStart

https://vk.com/dev/messages.startCall

func (*VK) MessagesUnpin

func (vk *VK) MessagesUnpin(params Params) (response int, err error)

MessagesUnpin messages.unpin.

https://vk.com/dev/messages.unpin

func (*VK) NewsfeedAddBan

func (vk *VK) NewsfeedAddBan(params Params) (response int, err error)

NewsfeedAddBan prevents news from specified users and communities from appearing in the current user's newsfeed.

https://vk.com/dev/newsfeed.addBan

func (*VK) NewsfeedDeleteBan

func (vk *VK) NewsfeedDeleteBan(params Params) (response int, err error)

NewsfeedDeleteBan allows news from previously banned users and communities to be shown in the current user's newsfeed.

https://vk.com/dev/newsfeed.deleteBan

func (*VK) NewsfeedDeleteList

func (vk *VK) NewsfeedDeleteList(params Params) (response int, err error)

NewsfeedDeleteList the method allows you to delete a custom news list.

https://vk.com/dev/newsfeed.deleteList

func (*VK) NewsfeedGet

func (vk *VK) NewsfeedGet(params Params) (response NewsfeedGetResponse, err error)

NewsfeedGet returns data required to show newsfeed for the current user.

https://vk.com/dev/newsfeed.get

func (*VK) NewsfeedGetBanned

func (vk *VK) NewsfeedGetBanned(params Params) (response NewsfeedGetBannedResponse, err error)

NewsfeedGetBanned returns a list of users and communities banned from the current user's newsfeed.

extended=0

https://vk.com/dev/newsfeed.getBanned

func (*VK) NewsfeedGetBannedExtended

func (vk *VK) NewsfeedGetBannedExtended(params Params) (response NewsfeedGetBannedExtendedResponse, err error)

NewsfeedGetBannedExtended returns a list of users and communities banned from the current user's newsfeed.

extended=1

https://vk.com/dev/newsfeed.getBanned

func (*VK) NewsfeedGetComments

func (vk *VK) NewsfeedGetComments(params Params) (response NewsfeedGetCommentsResponse, err error)

NewsfeedGetComments returns a list of comments in the current user's newsfeed.

https://vk.com/dev/newsfeed.getComments

func (*VK) NewsfeedGetLists

func (vk *VK) NewsfeedGetLists(params Params) (response NewsfeedGetListsResponse, err error)

NewsfeedGetLists returns a list of newsfeeds followed by the current user.

https://vk.com/dev/newsfeed.getLists

func (*VK) NewsfeedGetMentions

func (vk *VK) NewsfeedGetMentions(params Params) (response NewsfeedGetMentionsResponse, err error)

NewsfeedGetMentions returns a list of posts on user walls in which the current user is mentioned.

https://vk.com/dev/newsfeed.getMentions

func (*VK) NewsfeedGetRecommended

func (vk *VK) NewsfeedGetRecommended(params Params) (response NewsfeedGetRecommendedResponse, err error)

NewsfeedGetRecommended returns a list of newsfeeds recommended to the current user.

https://vk.com/dev/newsfeed.getRecommended

func (*VK) NewsfeedGetSuggestedSources

func (vk *VK) NewsfeedGetSuggestedSources(params Params) (response NewsfeedGetSuggestedSourcesResponse, err error)

NewsfeedGetSuggestedSources returns communities and users that current user is suggested to follow.

https://vk.com/dev/newsfeed.getSuggestedSources

func (*VK) NewsfeedIgnoreItem

func (vk *VK) NewsfeedIgnoreItem(params Params) (response int, err error)

NewsfeedIgnoreItem hides an item from the newsfeed.

https://vk.com/dev/newsfeed.ignoreItem

func (*VK) NewsfeedSaveList

func (vk *VK) NewsfeedSaveList(params Params) (response int, err error)

NewsfeedSaveList creates and edits user newsfeed lists.

https://vk.com/dev/newsfeed.saveList

func (*VK) NewsfeedSearch

func (vk *VK) NewsfeedSearch(params Params) (response NewsfeedSearchResponse, err error)

NewsfeedSearch returns search results by statuses.

extended=0

https://vk.com/dev/newsfeed.search

func (*VK) NewsfeedSearchExtended

func (vk *VK) NewsfeedSearchExtended(params Params) (response NewsfeedSearchExtendedResponse, err error)

NewsfeedSearchExtended returns search results by statuses.

extended=1

https://vk.com/dev/newsfeed.search

func (*VK) NewsfeedUnignoreItem

func (vk *VK) NewsfeedUnignoreItem(params Params) (response int, err error)

NewsfeedUnignoreItem returns a hidden item to the newsfeed.

https://vk.com/dev/newsfeed.unignoreItem

func (*VK) NewsfeedUnsubscribe

func (vk *VK) NewsfeedUnsubscribe(params Params) (response int, err error)

NewsfeedUnsubscribe unsubscribes the current user from specified newsfeeds.

https://vk.com/dev/newsfeed.unsubscribe

func (*VK) NotesAdd

func (vk *VK) NotesAdd(params Params) (response int, err error)

NotesAdd creates a new note for the current user.

https://vk.com/dev/notes.add

func (*VK) NotesCreateComment

func (vk *VK) NotesCreateComment(params Params) (response int, err error)

NotesCreateComment adds a new comment on a note.

https://vk.com/dev/notes.createComment

func (*VK) NotesDelete

func (vk *VK) NotesDelete(params Params) (response int, err error)

NotesDelete deletes a note of the current user.

https://vk.com/dev/notes.delete

func (*VK) NotesDeleteComment

func (vk *VK) NotesDeleteComment(params Params) (response int, err error)

NotesDeleteComment deletes a comment on a note.

https://vk.com/dev/notes.deleteComment

func (*VK) NotesEdit

func (vk *VK) NotesEdit(params Params) (response int, err error)

NotesEdit edits a note of the current user.

https://vk.com/dev/notes.edit

func (*VK) NotesEditComment

func (vk *VK) NotesEditComment(params Params) (response int, err error)

NotesEditComment edits a comment on a note.

https://vk.com/dev/notes.editComment

func (*VK) NotesGet

func (vk *VK) NotesGet(params Params) (response NotesGetResponse, err error)

NotesGet returns a list of notes created by a user.

https://vk.com/dev/notes.get

func (*VK) NotesGetByID

func (vk *VK) NotesGetByID(params Params) (response NotesGetByIDResponse, err error)

NotesGetByID returns a note by its ID.

https://vk.com/dev/notes.getById

func (*VK) NotesGetComments

func (vk *VK) NotesGetComments(params Params) (response NotesGetCommentsResponse, err error)

NotesGetComments returns a list of comments on a note.

https://vk.com/dev/notes.getComments

func (*VK) NotesRestoreComment

func (vk *VK) NotesRestoreComment(params Params) (response int, err error)

NotesRestoreComment restores a deleted comment on a note.

https://vk.com/dev/notes.restoreComment

func (*VK) NotificationsGet

func (vk *VK) NotificationsGet(params Params) (response NotificationsGetResponse, err error)

NotificationsGet returns a list of notifications about other users' feedback to the current user's wall posts.

https://vk.com/dev/notifications.get

func (*VK) NotificationsMarkAsViewed

func (vk *VK) NotificationsMarkAsViewed(params Params) (response int, err error)

NotificationsMarkAsViewed resets the counter of new notifications about other users' feedback to the current user's wall posts.

https://vk.com/dev/notifications.markAsViewed

func (*VK) NotificationsSendMessage

func (vk *VK) NotificationsSendMessage(params Params) (response NotificationsSendMessageResponse, err error)

NotificationsSendMessage sends notification to the VK Apps user.

https://vk.com/dev/notifications.sendMessage

func (*VK) OrdersCancelSubscription

func (vk *VK) OrdersCancelSubscription(params Params) (response int, err error)

OrdersCancelSubscription allows to cancel subscription.

https://vk.com/dev/orders.cancelSubscription

func (*VK) OrdersChangeState

func (vk *VK) OrdersChangeState(params Params) (response OrdersChangeStateResponse, err error)

OrdersChangeState changes order status.

https://vk.com/dev/orders.changeState

func (*VK) OrdersGet

func (vk *VK) OrdersGet(params Params) (response OrdersGetResponse, err error)

OrdersGet returns a list of orders.

https://vk.com/dev/orders.get

func (*VK) OrdersGetAmount

func (vk *VK) OrdersGetAmount(params Params) (response OrdersGetAmountResponse, err error)

OrdersGetAmount returns the cost of votes in the user's consent.

https://vk.com/dev/orders.getAmount

func (*VK) OrdersGetByID

func (vk *VK) OrdersGetByID(params Params) (response OrdersGetByIDResponse, err error)

OrdersGetByID returns information about orders by their IDs.

https://vk.com/dev/orders.getByID

func (*VK) OrdersGetUserSubscriptionByID

func (vk *VK) OrdersGetUserSubscriptionByID(params Params) (response OrdersGetUserSubscriptionByIDResponse, err error)

OrdersGetUserSubscriptionByID allows to get subscription by its ID.

https://vk.com/dev/orders.getUserSubscriptionById

func (*VK) OrdersGetUserSubscriptions

func (vk *VK) OrdersGetUserSubscriptions(params Params) (response OrdersGetUserSubscriptionsResponse, err error)

OrdersGetUserSubscriptions allows to get user's active subscriptions.

https://vk.com/dev/orders.getUserSubscriptions

func (*VK) OrdersUpdateSubscription

func (vk *VK) OrdersUpdateSubscription(params Params) (response int, err error)

OrdersUpdateSubscription allows to update subscription price.

https://vk.com/dev/orders.updateSubscription

func (*VK) PagesClearCache

func (vk *VK) PagesClearCache(params Params) (response int, err error)

PagesClearCache allows to clear the cache of particular external pages which may be attached to VK posts.

https://vk.com/dev/pages.clearCache

func (*VK) PagesGet

func (vk *VK) PagesGet(params Params) (response PagesGetResponse, err error)

PagesGet returns information about a wiki page.

https://vk.com/dev/pages.get

func (*VK) PagesGetHistory

func (vk *VK) PagesGetHistory(params Params) (response PagesGetHistoryResponse, err error)

PagesGetHistory returns a list of all previous versions of a wiki page.

https://vk.com/dev/pages.getHistory

func (*VK) PagesGetTitles

func (vk *VK) PagesGetTitles(params Params) (response PagesGetTitlesResponse, err error)

PagesGetTitles returns a list of wiki pages in a group.

https://vk.com/dev/pages.getTitles

func (*VK) PagesGetVersion

func (vk *VK) PagesGetVersion(params Params) (response PagesGetVersionResponse, err error)

PagesGetVersion returns the text of one of the previous versions of a wiki page.

https://vk.com/dev/pages.getVersion

func (*VK) PagesParseWiki

func (vk *VK) PagesParseWiki(params Params) (response string, err error)

PagesParseWiki returns HTML representation of the wiki markup.

https://vk.com/dev/pages.parseWiki

func (*VK) PagesSave

func (vk *VK) PagesSave(params Params) (response int, err error)

PagesSave saves the text of a wiki page.

https://vk.com/dev/pages.save

func (*VK) PagesSaveAccess

func (vk *VK) PagesSaveAccess(params Params) (response int, err error)

PagesSaveAccess saves modified read and edit access settings for a wiki page.

https://vk.com/dev/pages.saveAccess

func (*VK) PhotosConfirmTag

func (vk *VK) PhotosConfirmTag(params Params) (response int, err error)

PhotosConfirmTag confirms a tag on a photo.

https://vk.com/dev/photos.confirmTag

func (*VK) PhotosCopy

func (vk *VK) PhotosCopy(params Params) (response int, err error)

PhotosCopy allows to copy a photo to the "Saved photos" album.

https://vk.com/dev/photos.copy

func (*VK) PhotosCreateAlbum

func (vk *VK) PhotosCreateAlbum(params Params) (response PhotosCreateAlbumResponse, err error)

PhotosCreateAlbum creates an empty photo album.

https://vk.com/dev/photos.createAlbum

func (*VK) PhotosCreateComment

func (vk *VK) PhotosCreateComment(params Params) (response int, err error)

PhotosCreateComment adds a new comment on the photo.

https://vk.com/dev/photos.createComment

func (*VK) PhotosDelete

func (vk *VK) PhotosDelete(params Params) (response int, err error)

PhotosDelete deletes a photo.

https://vk.com/dev/photos.delete

func (*VK) PhotosDeleteAlbum

func (vk *VK) PhotosDeleteAlbum(params Params) (response int, err error)

PhotosDeleteAlbum deletes a photo album belonging to the current user.

https://vk.com/dev/photos.deleteAlbum

func (*VK) PhotosDeleteComment

func (vk *VK) PhotosDeleteComment(params Params) (response int, err error)

PhotosDeleteComment deletes a comment on the photo.

https://vk.com/dev/photos.deleteComment

func (*VK) PhotosEdit

func (vk *VK) PhotosEdit(params Params) (response int, err error)

PhotosEdit edits the caption of a photo.

https://vk.com/dev/photos.edit

func (*VK) PhotosEditAlbum

func (vk *VK) PhotosEditAlbum(params Params) (response int, err error)

PhotosEditAlbum edits information about a photo album.

https://vk.com/dev/photos.editAlbum

func (*VK) PhotosEditComment

func (vk *VK) PhotosEditComment(params Params) (response int, err error)

PhotosEditComment edits a comment on a photo.

https://vk.com/dev/photos.editComment

func (*VK) PhotosGet

func (vk *VK) PhotosGet(params Params) (response PhotosGetResponse, err error)

PhotosGet returns a list of a user's or community's photos.

extended=0

https://vk.com/dev/photos.get

func (*VK) PhotosGetAlbums

func (vk *VK) PhotosGetAlbums(params Params) (response PhotosGetAlbumsResponse, err error)

PhotosGetAlbums returns a list of a user's or community's photo albums.

https://vk.com/dev/photos.getAlbums

func (*VK) PhotosGetAlbumsCount

func (vk *VK) PhotosGetAlbumsCount(params Params) (response int, err error)

PhotosGetAlbumsCount returns the number of photo albums belonging to a user or community.

https://vk.com/dev/photos.getAlbumsCount

func (*VK) PhotosGetAll

func (vk *VK) PhotosGetAll(params Params) (response PhotosGetAllResponse, err error)

PhotosGetAll returns a list of photos belonging to a user or community, in reverse chronological order.

extended=0

https://vk.com/dev/photos.getAll

func (*VK) PhotosGetAllComments

func (vk *VK) PhotosGetAllComments(params Params) (response PhotosGetAllCommentsResponse, err error)

PhotosGetAllComments returns a list of comments on a specific photo album or all albums of the user sorted in reverse chronological order.

https://vk.com/dev/photos.getAllComments

func (*VK) PhotosGetAllExtended

func (vk *VK) PhotosGetAllExtended(params Params) (response PhotosGetAllExtendedResponse, err error)

PhotosGetAllExtended returns a list of photos belonging to a user or community, in reverse chronological order.

extended=1

https://vk.com/dev/photos.getAll

func (*VK) PhotosGetByID

func (vk *VK) PhotosGetByID(params Params) (response PhotosGetByIDResponse, err error)

PhotosGetByID returns information about photos by their IDs.

extended=0

https://vk.com/dev/photos.getById

func (*VK) PhotosGetByIDExtended

func (vk *VK) PhotosGetByIDExtended(params Params) (response PhotosGetByIDExtendedResponse, err error)

PhotosGetByIDExtended returns information about photos by their IDs.

extended=1

https://vk.com/dev/photos.getById

func (*VK) PhotosGetChatUploadServer

func (vk *VK) PhotosGetChatUploadServer(params Params) (response PhotosGetChatUploadServerResponse, err error)

PhotosGetChatUploadServer returns an upload link for chat cover pictures.

https://vk.com/dev/photos.getChatUploadServer

func (*VK) PhotosGetComments

func (vk *VK) PhotosGetComments(params Params) (response PhotosGetCommentsResponse, err error)

PhotosGetComments returns a list of comments on a photo.

extended=0

https://vk.com/dev/photos.getComments

func (*VK) PhotosGetCommentsExtended

func (vk *VK) PhotosGetCommentsExtended(params Params) (response PhotosGetCommentsExtendedResponse, err error)

PhotosGetCommentsExtended returns a list of comments on a photo.

extended=1

https://vk.com/dev/photos.getComments

func (*VK) PhotosGetExtended

func (vk *VK) PhotosGetExtended(params Params) (response PhotosGetExtendedResponse, err error)

PhotosGetExtended returns a list of a user's or community's photos.

extended=1

https://vk.com/dev/photos.get

func (*VK) PhotosGetMarketAlbumUploadServer

func (vk *VK) PhotosGetMarketAlbumUploadServer(params Params) (
	response PhotosGetMarketAlbumUploadServerResponse,
	err error,
)

PhotosGetMarketAlbumUploadServer returns the server address for market album photo upload.

https://vk.com/dev/photos.getMarketAlbumUploadServer

func (*VK) PhotosGetMarketUploadServer

func (vk *VK) PhotosGetMarketUploadServer(params Params) (response PhotosGetMarketUploadServerResponse, err error)

PhotosGetMarketUploadServer returns the server address for market photo upload.

https://vk.com/dev/photos.getMarketUploadServer

func (*VK) PhotosGetMessagesUploadServer

func (vk *VK) PhotosGetMessagesUploadServer(params Params) (response PhotosGetMessagesUploadServerResponse, err error)

PhotosGetMessagesUploadServer returns the server address for photo upload onto a messages.

https://vk.com/dev/photos.getMessagesUploadServer

func (*VK) PhotosGetNewTags

func (vk *VK) PhotosGetNewTags(params Params) (response PhotosGetNewTagsResponse, err error)

PhotosGetNewTags returns a list of photos with tags that have not been viewed.

https://vk.com/dev/photos.getNewTags

func (*VK) PhotosGetOwnerCoverPhotoUploadServer

func (vk *VK) PhotosGetOwnerCoverPhotoUploadServer(params Params) (
	response PhotosGetOwnerCoverPhotoUploadServerResponse,
	err error,
)

PhotosGetOwnerCoverPhotoUploadServer receives server address for uploading community cover.

https://vk.com/dev/photos.getOwnerCoverPhotoUploadServer

func (*VK) PhotosGetOwnerPhotoUploadServer

func (vk *VK) PhotosGetOwnerPhotoUploadServer(params Params) (
	response PhotosGetOwnerPhotoUploadServerResponse,
	err error,
)

PhotosGetOwnerPhotoUploadServer returns an upload server address for a profile or community photo.

https://vk.com/dev/photos.getOwnerPhotoUploadServer

func (*VK) PhotosGetTags

func (vk *VK) PhotosGetTags(params Params) (response PhotosGetTagsResponse, err error)

PhotosGetTags returns a list of tags on a photo.

https://vk.com/dev/photos.getTags

func (*VK) PhotosGetUploadServer

func (vk *VK) PhotosGetUploadServer(params Params) (response PhotosGetUploadServerResponse, err error)

PhotosGetUploadServer returns the server address for photo upload.

https://vk.com/dev/photos.getUploadServer

func (*VK) PhotosGetUserPhotos

func (vk *VK) PhotosGetUserPhotos(params Params) (response PhotosGetUserPhotosResponse, err error)

PhotosGetUserPhotos returns a list of photos in which a user is tagged.

extended=0

https://vk.com/dev/photos.getUserPhotos

func (*VK) PhotosGetUserPhotosExtended

func (vk *VK) PhotosGetUserPhotosExtended(params Params) (response PhotosGetUserPhotosExtendedResponse, err error)

PhotosGetUserPhotosExtended returns a list of photos in which a user is tagged.

extended=1

https://vk.com/dev/photos.getUserPhotos

func (*VK) PhotosGetWallUploadServer

func (vk *VK) PhotosGetWallUploadServer(params Params) (response PhotosGetWallUploadServerResponse, err error)

PhotosGetWallUploadServer returns the server address for photo upload onto a user's wall.

https://vk.com/dev/photos.getWallUploadServer

func (*VK) PhotosMakeCover

func (vk *VK) PhotosMakeCover(params Params) (response int, err error)

PhotosMakeCover makes a photo into an album cover.

https://vk.com/dev/photos.makeCover

func (*VK) PhotosMove

func (vk *VK) PhotosMove(params Params) (response int, err error)

PhotosMove a photo from one album to another.

https://vk.com/dev/photos.moveMoves

func (*VK) PhotosPutTag

func (vk *VK) PhotosPutTag(params Params) (response int, err error)

PhotosPutTag adds a tag on the photo.

https://vk.com/dev/photos.putTag

func (*VK) PhotosRemoveTag

func (vk *VK) PhotosRemoveTag(params Params) (response int, err error)

PhotosRemoveTag removes a tag from a photo.

https://vk.com/dev/photos.removeTag

func (*VK) PhotosReorderAlbums

func (vk *VK) PhotosReorderAlbums(params Params) (response int, err error)

PhotosReorderAlbums reorders the album in the list of user albums.

https://vk.com/dev/photos.reorderAlbums

func (*VK) PhotosReorderPhotos

func (vk *VK) PhotosReorderPhotos(params Params) (response int, err error)

PhotosReorderPhotos reorders the photo in the list of photos of the user album.

https://vk.com/dev/photos.reorderPhotos

func (*VK) PhotosReport

func (vk *VK) PhotosReport(params Params) (response int, err error)

PhotosReport reports (submits a complaint about) a photo.

https://vk.com/dev/photos.report

func (*VK) PhotosReportComment

func (vk *VK) PhotosReportComment(params Params) (response int, err error)

PhotosReportComment reports (submits a complaint about) a comment on a photo.

https://vk.com/dev/photos.reportComment

func (*VK) PhotosRestore

func (vk *VK) PhotosRestore(params Params) (response int, err error)

PhotosRestore restores a deleted photo.

https://vk.com/dev/photos.restore

func (*VK) PhotosRestoreComment

func (vk *VK) PhotosRestoreComment(params Params) (response int, err error)

PhotosRestoreComment restores a deleted comment on a photo.

https://vk.com/dev/photos.restoreComment

func (*VK) PhotosSave

func (vk *VK) PhotosSave(params Params) (response PhotosSaveResponse, err error)

PhotosSave saves photos after successful uploading.

https://vk.com/dev/photos.save

func (*VK) PhotosSaveMarketAlbumPhoto

func (vk *VK) PhotosSaveMarketAlbumPhoto(params Params) (response PhotosSaveMarketAlbumPhotoResponse, err error)

PhotosSaveMarketAlbumPhoto photo Saves market album photos after successful uploading.

https://vk.com/dev/photos.saveMarketAlbumPhoto

func (*VK) PhotosSaveMarketPhoto

func (vk *VK) PhotosSaveMarketPhoto(params Params) (response PhotosSaveMarketPhotoResponse, err error)

PhotosSaveMarketPhoto saves market photos after successful uploading.

https://vk.com/dev/photos.saveMarketPhoto

func (*VK) PhotosSaveMessagesPhoto

func (vk *VK) PhotosSaveMessagesPhoto(params Params) (response PhotosSaveMessagesPhotoResponse, err error)

PhotosSaveMessagesPhoto saves a photo after being successfully.

https://vk.com/dev/photos.saveMessagesPhoto

func (*VK) PhotosSaveOwnerCoverPhoto

func (vk *VK) PhotosSaveOwnerCoverPhoto(params Params) (response PhotosSaveOwnerCoverPhotoResponse, err error)

PhotosSaveOwnerCoverPhoto saves cover photo after successful uploading.

https://vk.com/dev/photos.saveOwnerCoverPhoto

func (*VK) PhotosSaveOwnerPhoto

func (vk *VK) PhotosSaveOwnerPhoto(params Params) (response PhotosSaveOwnerPhotoResponse, err error)

PhotosSaveOwnerPhoto saves a profile or community photo.

https://vk.com/dev/photos.saveOwnerPhoto

func (*VK) PhotosSaveWallPhoto

func (vk *VK) PhotosSaveWallPhoto(params Params) (response PhotosSaveWallPhotoResponse, err error)

PhotosSaveWallPhoto saves a photo to a user's or community's wall after being uploaded.

https://vk.com/dev/photos.saveWallPhoto

func (*VK) PhotosSearch

func (vk *VK) PhotosSearch(params Params) (response PhotosSearchResponse, err error)

PhotosSearch returns a list of photos.

https://vk.com/dev/photos.search

func (*VK) PodcastsGetCatalog

func (vk *VK) PodcastsGetCatalog(params Params) (response PodcastsGetCatalogResponse, err error)

PodcastsGetCatalog method.

extended=0

https://vk.com/dev/podcasts.getCatalog

func (*VK) PodcastsGetCatalogExtended

func (vk *VK) PodcastsGetCatalogExtended(params Params) (response PodcastsGetCatalogExtendedResponse, err error)

PodcastsGetCatalogExtended method.

extended=1

https://vk.com/dev/podcasts.getCatalog

func (*VK) PodcastsGetCategories

func (vk *VK) PodcastsGetCategories(params Params) (response PodcastsGetCategoriesResponse, err error)

PodcastsGetCategories method.

https://vk.com/dev/podcasts.getCategories

func (*VK) PodcastsGetEpisodes

func (vk *VK) PodcastsGetEpisodes(params Params) (response PodcastsGetEpisodesResponse, err error)

PodcastsGetEpisodes method.

https://vk.com/dev/podcasts.getEpisodes

func (*VK) PodcastsGetFeed

func (vk *VK) PodcastsGetFeed(params Params) (response PodcastsGetFeedResponse, err error)

PodcastsGetFeed method.

extended=0

https://vk.com/dev/podcasts.getFeed

func (*VK) PodcastsGetFeedExtended

func (vk *VK) PodcastsGetFeedExtended(params Params) (response PodcastsGetFeedExtendedResponse, err error)

PodcastsGetFeedExtended method.

extended=1

https://vk.com/dev/podcasts.getFeed

func (*VK) PodcastsGetStartPage

func (vk *VK) PodcastsGetStartPage(params Params) (response PodcastsGetStartPageResponse, err error)

PodcastsGetStartPage method.

extended=0

https://vk.com/dev/podcasts.getStartPage

func (*VK) PodcastsGetStartPageExtended

func (vk *VK) PodcastsGetStartPageExtended(params Params) (response PodcastsGetStartPageExtendedResponse, err error)

PodcastsGetStartPageExtended method.

extended=1

https://vk.com/dev/podcasts.getStartPage

func (*VK) PodcastsMarkAsListened

func (vk *VK) PodcastsMarkAsListened(params Params) (response int, err error)

PodcastsMarkAsListened method.

https://vk.com/dev/podcasts.markAsListened

func (*VK) PodcastsSubscribe

func (vk *VK) PodcastsSubscribe(params Params) (response int, err error)

PodcastsSubscribe method.

https://vk.com/dev/podcasts.subscribe

func (*VK) PodcastsUnsubscribe

func (vk *VK) PodcastsUnsubscribe(params Params) (response int, err error)

PodcastsUnsubscribe method.

https://vk.com/dev/podcasts.unsubscribe

func (*VK) PollsAddVote

func (vk *VK) PollsAddVote(params Params) (response int, err error)

PollsAddVote adds the current user's vote to the selected answer in the poll.

https://vk.com/dev/polls.addVote

func (*VK) PollsCreate

func (vk *VK) PollsCreate(params Params) (response PollsCreateResponse, err error)

PollsCreate creates polls that can be attached to the users' or communities' posts.

https://vk.com/dev/polls.create

func (*VK) PollsDeleteVote

func (vk *VK) PollsDeleteVote(params Params) (response int, err error)

PollsDeleteVote deletes the current user's vote from the selected answer in the poll.

https://vk.com/dev/polls.deleteVote

func (*VK) PollsEdit

func (vk *VK) PollsEdit(params Params) (response int, err error)

PollsEdit edits created polls.

https://vk.com/dev/polls.edit

func (*VK) PollsGetBackgrounds

func (vk *VK) PollsGetBackgrounds(params Params) (response PollsGetBackgroundsResponse, err error)

PollsGetBackgrounds return default backgrounds for polls.

https://vk.com/dev/polls.getBackgrounds

func (*VK) PollsGetByID

func (vk *VK) PollsGetByID(params Params) (response PollsGetByIDResponse, err error)

PollsGetByID returns detailed information about a poll by its ID.

https://vk.com/dev/polls.getById

func (*VK) PollsGetPhotoUploadServer

func (vk *VK) PollsGetPhotoUploadServer(params Params) (response PollsGetPhotoUploadServerResponse, err error)

PollsGetPhotoUploadServer returns a URL for uploading a photo to a poll.

https://vk.com/dev/polls.getPhotoUploadServer

func (*VK) PollsGetVoters

func (vk *VK) PollsGetVoters(params Params) (response PollsGetVotersResponse, err error)

PollsGetVoters returns a list of IDs of users who selected specific answers in the poll.

https://vk.com/dev/polls.getVoters

func (*VK) PollsGetVotersFields

func (vk *VK) PollsGetVotersFields(params Params) (response PollsGetVotersFieldsResponse, err error)

PollsGetVotersFields returns a list of IDs of users who selected specific answers in the poll.

https://vk.com/dev/polls.getVoters

func (*VK) PollsSavePhoto

func (vk *VK) PollsSavePhoto(params Params) (response PollsSavePhotoResponse, err error)

PollsSavePhoto allows to save poll's uploaded photo.

https://vk.com/dev/polls.savePhoto

func (*VK) PrettyCardsCreate

func (vk *VK) PrettyCardsCreate(params Params) (response PrettyCardsCreateResponse, err error)

PrettyCardsCreate method.

https://vk.com/dev/prettyCards.create

func (*VK) PrettyCardsDelete

func (vk *VK) PrettyCardsDelete(params Params) (response PrettyCardsDeleteResponse, err error)

PrettyCardsDelete method.

https://vk.com/dev/prettyCards.delete

func (*VK) PrettyCardsEdit

func (vk *VK) PrettyCardsEdit(params Params) (response PrettyCardsEditResponse, err error)

PrettyCardsEdit method.

https://vk.com/dev/prettyCards.edit

func (*VK) PrettyCardsGet

func (vk *VK) PrettyCardsGet(params Params) (response PrettyCardsGetResponse, err error)

PrettyCardsGet method.

https://vk.com/dev/prettyCards.get

func (*VK) PrettyCardsGetByID

func (vk *VK) PrettyCardsGetByID(params Params) (response PrettyCardsGetByIDResponse, err error)

PrettyCardsGetByID method.

https://vk.com/dev/prettyCards.getById

func (*VK) PrettyCardsGetUploadURL

func (vk *VK) PrettyCardsGetUploadURL(params Params) (response string, err error)

PrettyCardsGetUploadURL method.

https://vk.com/dev/prettyCards.getUploadURL

func (*VK) Request

func (vk *VK) Request(method string, sliceParams ...Params) ([]byte, error)

Request provides access to VK API methods.

func (*VK) RequestUnmarshal

func (vk *VK) RequestUnmarshal(method string, obj interface{}, sliceParams ...Params) error

RequestUnmarshal provides access to VK API methods.

func (*VK) SearchGetHints

func (vk *VK) SearchGetHints(params Params) (response SearchGetHintsResponse, err error)

SearchGetHints allows the programmer to do a quick search for any substring.

https://vk.com/dev/search.getHints

func (*VK) SecureAddAppEvent

func (vk *VK) SecureAddAppEvent(params Params) (response SecureAddAppEventResponse, err error)

SecureAddAppEvent adds user activity information to an application.

https://vk.com/dev/secure.addAppEvent

func (*VK) SecureCheckToken

func (vk *VK) SecureCheckToken(params Params) (response SecureCheckTokenResponse, err error)

SecureCheckToken checks the user authentication in IFrame and Flash apps using the access_token parameter.

https://vk.com/dev/secure.checkToken

func (*VK) SecureGetAppBalance

func (vk *VK) SecureGetAppBalance(params Params) (response int, err error)

SecureGetAppBalance returns payment balance of the application in hundredth of a vote.

https://vk.com/dev/secure.getAppBalance

func (*VK) SecureGetSMSHistory

func (vk *VK) SecureGetSMSHistory(params Params) (response SecureGetSMSHistoryResponse, err error)

SecureGetSMSHistory shows a list of SMS notifications sent by the application using secure.sendSMSNotification method.

https://vk.com/dev/secure.getSMSHistory

func (*VK) SecureGetTransactionsHistory

func (vk *VK) SecureGetTransactionsHistory(params Params) (response SecureGetTransactionsHistoryResponse, err error)

SecureGetTransactionsHistory shows history of votes transaction between users and the application.

https://vk.com/dev/secure.getTransactionsHistory

func (*VK) SecureGetUserLevel

func (vk *VK) SecureGetUserLevel(params Params) (response SecureGetUserLevelResponse, err error)

SecureGetUserLevel returns one of the previously set game levels of one or more users in the application.

https://vk.com/dev/secure.getUserLevel

func (*VK) SecureGiveEventSticker

func (vk *VK) SecureGiveEventSticker(params Params) (response SecureGiveEventStickerResponse, err error)

SecureGiveEventSticker method.

https://vk.com/dev/secure.giveEventSticker

func (*VK) SecureSendNotification

func (vk *VK) SecureSendNotification(params Params) (response SecureSendNotificationResponse, err error)

SecureSendNotification sends notification to the user.

https://vk.com/dev/secure.sendNotification

func (*VK) SecureSendSMSNotification

func (vk *VK) SecureSendSMSNotification(params Params) (response int, err error)

SecureSendSMSNotification sends SMS notification to a user's mobile device.

https://vk.com/dev/secure.sendSMSNotification

func (*VK) SecureSetCounter

func (vk *VK) SecureSetCounter(params Params) (response int, err error)

SecureSetCounter sets a counter which is shown to the user in bold in the left menu.

https://vk.com/dev/secure.setCounter

func (*VK) StatsGet

func (vk *VK) StatsGet(params Params) (response StatsGetResponse, err error)

StatsGet returns statistics of a community or an application.

https://vk.com/dev/stats.get

func (*VK) StatsGetPostReach

func (vk *VK) StatsGetPostReach(params Params) (response StatsGetPostReachResponse, err error)

StatsGetPostReach returns stats for a wall post.

https://vk.com/dev/stats.getPostReach

func (*VK) StatsTrackVisitor

func (vk *VK) StatsTrackVisitor(params Params) (response int, err error)

StatsTrackVisitor adds current session's data in the application statistics.

https://vk.com/dev/stats.trackVisitor

func (*VK) StatusGet

func (vk *VK) StatusGet(params Params) (response StatusGetResponse, err error)

StatusGet returns data required to show the status of a user or community.

func (*VK) StatusSet

func (vk *VK) StatusSet(params Params) (response int, err error)

StatusSet sets a new status for the current user.

func (*VK) StorageGet

func (vk *VK) StorageGet(params Params) (response StorageGetResponse, err error)

StorageGet returns a value of variable with the name set by key parameter.

StorageGet always return array!

https://vk.com/dev/storage.get

func (*VK) StorageGetKeys

func (vk *VK) StorageGetKeys(params Params) (response StorageGetKeysResponse, err error)

StorageGetKeys returns the names of all variables.

https://vk.com/dev/storage.getKeys

func (*VK) StorageSet

func (vk *VK) StorageSet(params Params) (response int, err error)

StorageSet saves a value of variable with the name set by key parameter.

https://vk.com/dev/storage.set

func (*VK) StoreAddStickersToFavorite added in v2.10.0

func (vk *VK) StoreAddStickersToFavorite(params Params) (response int, err error)

StoreAddStickersToFavorite add stickers to favorite.

https://vk.com/dev/store.addStickersToFavorite

func (*VK) StoreGetFavoriteStickers added in v2.10.0

func (vk *VK) StoreGetFavoriteStickers(params Params) (response StoreGetFavoriteStickersResponse, err error)

StoreGetFavoriteStickers return favorite stickers.

https://vk.com/dev/store.getFavoriteStickers

func (*VK) StoreRemoveStickersFromFavorite added in v2.10.0

func (vk *VK) StoreRemoveStickersFromFavorite(params Params) (response int, err error)

StoreRemoveStickersFromFavorite remove stickers from favorite.

https://vk.com/dev/store.removeStickersFromFavorite

func (*VK) StoriesBanOwner

func (vk *VK) StoriesBanOwner(params Params) (response int, err error)

StoriesBanOwner allows to hide stories from chosen sources from current user's feed.

https://vk.com/dev/stories.banOwner

func (*VK) StoriesDelete

func (vk *VK) StoriesDelete(params Params) (response int, err error)

StoriesDelete allows to delete story.

https://vk.com/dev/stories.delete

func (*VK) StoriesGet

func (vk *VK) StoriesGet(params Params) (response StoriesGetResponse, err error)

StoriesGet returns stories available for current user.

extended=0

https://vk.com/dev/stories.get

func (*VK) StoriesGetBanned

func (vk *VK) StoriesGetBanned(params Params) (response StoriesGetBannedResponse, err error)

StoriesGetBanned returns list of sources hidden from current user's feed.

extended=0

https://vk.com/dev/stories.getBanned

func (*VK) StoriesGetBannedExtended

func (vk *VK) StoriesGetBannedExtended(params Params) (response StoriesGetBannedExtendedResponse, err error)

StoriesGetBannedExtended returns list of sources hidden from current user's feed.

extended=1

https://vk.com/dev/stories.getBanned

func (*VK) StoriesGetByID

func (vk *VK) StoriesGetByID(params Params) (response StoriesGetByIDResponse, err error)

StoriesGetByID returns story by its ID.

extended=0

https://vk.com/dev/stories.getById

func (*VK) StoriesGetByIDExtended

func (vk *VK) StoriesGetByIDExtended(params Params) (response StoriesGetByIDExtendedResponse, err error)

StoriesGetByIDExtended returns story by its ID.

extended=1

https://vk.com/dev/stories.getById

func (*VK) StoriesGetExtended

func (vk *VK) StoriesGetExtended(params Params) (response StoriesGetExtendedResponse, err error)

StoriesGetExtended returns stories available for current user.

extended=1

https://vk.com/dev/stories.get

func (*VK) StoriesGetPhotoUploadServer

func (vk *VK) StoriesGetPhotoUploadServer(params Params) (response StoriesGetPhotoUploadServerResponse, err error)

StoriesGetPhotoUploadServer returns URL for uploading a story with photo.

https://vk.com/dev/stories.getPhotoUploadServer

func (*VK) StoriesGetReplies

func (vk *VK) StoriesGetReplies(params Params) (response StoriesGetRepliesResponse, err error)

StoriesGetReplies returns replies to the story.

extended=0

https://vk.com/dev/stories.getReplies

func (*VK) StoriesGetRepliesExtended

func (vk *VK) StoriesGetRepliesExtended(params Params) (response StoriesGetRepliesExtendedResponse, err error)

StoriesGetRepliesExtended returns replies to the story.

extended=1

https://vk.com/dev/stories.getReplies

func (*VK) StoriesGetStats

func (vk *VK) StoriesGetStats(params Params) (response StoriesGetStatsResponse, err error)

StoriesGetStats return statistics data for the story.

https://vk.com/dev/stories.getStats

func (*VK) StoriesGetVideoUploadServer

func (vk *VK) StoriesGetVideoUploadServer(params Params) (response StoriesGetVideoUploadServerResponse, err error)

StoriesGetVideoUploadServer allows to receive URL for uploading story with video.

https://vk.com/dev/stories.getVideoUploadServer

func (*VK) StoriesGetViewers

func (vk *VK) StoriesGetViewers(params Params) (response StoriesGetViewersResponse, err error)

StoriesGetViewers returns a list of story viewers.

extended=0

https://vk.com/dev/stories.getViewers

func (*VK) StoriesHideAllReplies

func (vk *VK) StoriesHideAllReplies(params Params) (response int, err error)

StoriesHideAllReplies hides all replies in the last 24 hours from the user to current user's stories.

https://vk.com/dev/stories.hideAllReplies

func (*VK) StoriesHideReply

func (vk *VK) StoriesHideReply(params Params) (response int, err error)

StoriesHideReply hides the reply to the current user's story.

https://vk.com/dev/stories.hideReply

func (*VK) StoriesSave

func (vk *VK) StoriesSave(params Params) (response StoriesSaveResponse, err error)

StoriesSave method.

https://vk.com/dev/stories.save

func (*VK) StoriesSearch

func (vk *VK) StoriesSearch(params Params) (response StoriesSearchResponse, err error)

StoriesSearch returns search results for stories.

extended=0

https://vk.com/dev/stories.search

func (*VK) StoriesSearchExtended

func (vk *VK) StoriesSearchExtended(params Params) (response StoriesSearchExtendedResponse, err error)

StoriesSearchExtended returns search results for stories.

extended=1

https://vk.com/dev/stories.search

func (*VK) StoriesSendInteraction

func (vk *VK) StoriesSendInteraction(params Params) (response int, err error)

StoriesSendInteraction sends feedback to the story.

Available for applications with type VK Mini Apps. The default method is not available to applications.

https://vk.com/dev/stories.sendInteraction

func (*VK) StoriesUnbanOwner

func (vk *VK) StoriesUnbanOwner(params Params) (response int, err error)

StoriesUnbanOwner allows to show stories from hidden sources in current user's feed.

https://vk.com/dev/stories.unbanOwner

func (*VK) StreamingGetServerURL

func (vk *VK) StreamingGetServerURL(params Params) (response StreamingGetServerURLResponse, err error)

StreamingGetServerURL allows to receive data for the connection to Streaming API.

https://vk.com/dev/streaming.getServerUrl

func (*VK) StreamingGetSettings

func (vk *VK) StreamingGetSettings(params Params) (response StreamingGetSettingsResponse, err error)

StreamingGetSettings allows to receive monthly tier for Streaming API.

https://vk.com/dev/streaming.getSettings

func (*VK) StreamingGetStats

func (vk *VK) StreamingGetStats(params Params) (response StreamingGetStatsResponse, err error)

StreamingGetStats allows to receive statistics for prepared and received events in Streaming API.

https://vk.com/dev/streaming.getStats

func (*VK) StreamingGetStem

func (vk *VK) StreamingGetStem(params Params) (response StreamingGetStemResponse, err error)

StreamingGetStem allows to receive the stem of the word.

https://vk.com/dev/streaming.getStem

func (*VK) StreamingSetSettings

func (vk *VK) StreamingSetSettings(params Params) (response int, err error)

StreamingSetSettings allows to set monthly tier for Streaming API.

https://vk.com/dev/streaming.setSettings

func (*VK) UploadAppImage

func (vk *VK) UploadAppImage(imageType string, file io.Reader) (response object.AppWidgetsImage, err error)

UploadAppImage uploading a Image into App collection for community app widgets.

func (*VK) UploadChatPhoto

func (vk *VK) UploadChatPhoto(chatID int, file io.Reader) (response MessagesSetChatPhotoResponse, err error)

UploadChatPhoto uploading a Main Photo to a Group Chat without crop.

Supported formats: JPG, PNG, GIF.

Limits: size not less than 200x200px, width+height not more than 14000 px, file size up to 50 Mb, aspect ratio of at least 1:20.

func (*VK) UploadChatPhotoCrop

func (vk *VK) UploadChatPhotoCrop(chatID, cropX, cropY, cropWidth int, file io.Reader) (
	response MessagesSetChatPhotoResponse,
	err error,
)

UploadChatPhotoCrop uploading a Main Photo to a Group Chat with crop.

Supported formats: JPG, PNG, GIF.

Limits: size not less than 200x200px, width+height not more than 14000 px, file size up to 50 Mb, aspect ratio of at least 1:20.

func (*VK) UploadDoc

func (vk *VK) UploadDoc(title, tags string, file io.Reader) (response DocsSaveResponse, err error)

UploadDoc uploading Documents.

Supported formats: any formats excepting mp3 and executable files.

Limits: file size up to 200 MB.

func (*VK) UploadFile

func (vk *VK) UploadFile(url string, file io.Reader, fieldname, filename string) (bodyContent []byte, err error)

UploadFile uploading file.

func (*VK) UploadGroupDoc

func (vk *VK) UploadGroupDoc(groupID int, title, tags string, file io.Reader) (response DocsSaveResponse, err error)

UploadGroupDoc uploading Documents into Community.

Supported formats: any formats excepting mp3 and executable files.

Limits: file size up to 200 MB.

func (*VK) UploadGroupImage

func (vk *VK) UploadGroupImage(imageType string, file io.Reader) (response object.AppWidgetsImage, err error)

UploadGroupImage uploading a Image into Community collection for community app widgets.

func (*VK) UploadGroupWallDoc

func (vk *VK) UploadGroupWallDoc(groupID int, title, tags string, file io.Reader) (
	response DocsSaveResponse,
	err error,
)

UploadGroupWallDoc uploading Documents on Group Wall.

Supported formats: any formats excepting mp3 and executable files.

Limits: file size up to 200 MB.

func (*VK) UploadGroupWallPhoto

func (vk *VK) UploadGroupWallPhoto(groupID int, file io.Reader) (response PhotosSaveWallPhotoResponse, err error)

UploadGroupWallPhoto uploading Photos on Group Wall.

Supported formats: JPG, PNG, GIF.

Limits: width+height not more than 14000 px, file size up to 50 Mb, aspect ratio of at least 1:20.

func (*VK) UploadLeadFormsPhoto

func (vk *VK) UploadLeadFormsPhoto(file io.Reader) (response string, err error)

UploadLeadFormsPhoto uploading a Pretty Card Photo.

Supported formats: JPG, PNG, GIF.

func (*VK) UploadMarketAlbumPhoto

func (vk *VK) UploadMarketAlbumPhoto(groupID int, file io.Reader) (
	response PhotosSaveMarketAlbumPhotoResponse,
	err error,
)

UploadMarketAlbumPhoto uploading a Main Photo to a Group Chat.

Supported formats: JPG, PNG, GIF.

Limits: size not less than 1280x720px, width+height not more than 14000 px, file size up to 50 Mb, aspect ratio of at least 1:20.

func (*VK) UploadMarketPhoto

func (vk *VK) UploadMarketPhoto(groupID int, mainPhoto bool, file io.Reader) (
	response PhotosSaveMarketPhotoResponse,
	err error,
)

UploadMarketPhoto uploading a Market Item Photo without crop.

Supported formats: JPG, PNG, GIF.

Limits: size not less than 400x400px, width+height not more than 14000 px, file size up to 50 Mb, aspect ratio of at least 1:20.

func (*VK) UploadMarketPhotoCrop

func (vk *VK) UploadMarketPhotoCrop(groupID, cropX, cropY, cropWidth int, file io.Reader) (
	response PhotosSaveMarketPhotoResponse,
	err error,
)

UploadMarketPhotoCrop uploading a Market Item Photo with crop.

Supported formats: JPG, PNG, GIF.

Limits: size not less than 400x400px, width+height not more than 14000 px, file size up to 50 Mb, aspect ratio of at least 1:20.

func (*VK) UploadMarusiaAudio added in v2.11.0

func (vk *VK) UploadMarusiaAudio(file io.Reader) (response MarusiaCreateAudioResponse, err error)

UploadMarusiaAudio uploading audio.

https://vk.com/dev/marusia_skill_docs10

func (*VK) UploadMarusiaPicture added in v2.11.0

func (vk *VK) UploadMarusiaPicture(file io.Reader) (response MarusiaSavePictureResponse, err error)

UploadMarusiaPicture uploading picture.

Limits: height not more than 600 px, aspect ratio of at least 2:1.

func (*VK) UploadMessagesDoc

func (vk *VK) UploadMessagesDoc(peerID int, typeDoc, title, tags string, file io.Reader) (
	response DocsSaveResponse,
	err error,
)

UploadMessagesDoc uploading Documents into a Private Message.

Supported formats: any formats excepting mp3 and executable files.

Limits: file size up to 200 MB.

func (*VK) UploadMessagesPhoto

func (vk *VK) UploadMessagesPhoto(peerID int, file io.Reader) (response PhotosSaveMessagesPhotoResponse, err error)

UploadMessagesPhoto uploading Photos into a Private Message.

Supported formats: JPG, PNG, GIF.

Limits: width+height not more than 14000 px, file size up to 50 Mb, aspect ratio of at least 1:20.

func (*VK) UploadOwnerCoverPhoto

func (vk *VK) UploadOwnerCoverPhoto(groupID, cropX, cropY, cropX2, cropY2 int, file io.Reader) (
	response PhotosSaveOwnerCoverPhotoResponse,
	err error,
)

UploadOwnerCoverPhoto uploading a Main Photo to a Group Chat.

Supported formats: JPG, PNG, GIF.

Limits: minimum photo size 795x200px, width+height not more than 14000px, file size up to 50 MB. Recommended size: 1590x400px.

func (*VK) UploadOwnerPhoto

func (vk *VK) UploadOwnerPhoto(ownerID int, squareCrop string, file io.Reader) (
	response PhotosSaveOwnerPhotoResponse,
	err error,
)

UploadOwnerPhoto uploading Photos into User Profile or Community To upload a photo to a community send its negative id in the owner_id parameter.

Following parameters can be sent in addition: squareCrop in x,y,w (no quotes) format where x and y are the coordinates of the preview upper-right corner and w is square side length. That will create a square preview for a photo.

Supported formats: JPG, PNG, GIF.

Limits: size not less than 200x200px, aspect ratio from 0.25 to 3, width+height not more than 14000 px, file size up to 50 Mb.

func (*VK) UploadOwnerPollsPhoto

func (vk *VK) UploadOwnerPollsPhoto(ownerID int, file io.Reader) (response PollsSavePhotoResponse, err error)

UploadOwnerPollsPhoto uploading a Poll Photo.

Supported formats: JPG, PNG, GIF.

Limits: minimum photo size 795x200px, width+height not more than 14000px, file size up to 50 MB. Recommended size: 1590x400px.

func (*VK) UploadPhoto

func (vk *VK) UploadPhoto(albumID int, file io.Reader) (response PhotosSaveResponse, err error)

UploadPhoto uploading Photos into User Album.

Supported formats: JPG, PNG, GIF.

Limits: width+height not more than 14000 px, file size up to 50 Mb, aspect ratio of at least 1:20.

func (*VK) UploadPhotoGroup

func (vk *VK) UploadPhotoGroup(groupID, albumID int, file io.Reader) (response PhotosSaveResponse, err error)

UploadPhotoGroup uploading Photos into Group Album.

Supported formats: JPG, PNG, GIF.

Limits: width+height not more than 14000 px, file size up to 50 Mb, aspect ratio of at least 1:20.

func (*VK) UploadPollsPhoto

func (vk *VK) UploadPollsPhoto(file io.Reader) (response PollsSavePhotoResponse, err error)

UploadPollsPhoto uploading a Poll Photo.

Supported formats: JPG, PNG, GIF.

Limits: minimum photo size 795x200px, width+height not more than 14000px, file size up to 50 MB. Recommended size: 1590x400px.

func (*VK) UploadPrettyCardsPhoto

func (vk *VK) UploadPrettyCardsPhoto(file io.Reader) (response string, err error)

UploadPrettyCardsPhoto uploading a Pretty Card Photo.

Supported formats: JPG, PNG, GIF.

func (*VK) UploadStoriesPhoto

func (vk *VK) UploadStoriesPhoto(params Params, file io.Reader) (response StoriesSaveResponse, err error)

UploadStoriesPhoto uploading Story.

Supported formats: JPG, PNG, GIF. Limits: sum of with and height no more than 14000px, file size no more than 10 MB. Video format: h264 video, aac audio, maximum 720х1280, 30fps.

https://vk.com/dev/stories.getPhotoUploadServer

func (*VK) UploadStoriesVideo

func (vk *VK) UploadStoriesVideo(params Params, file io.Reader) (response StoriesSaveResponse, err error)

UploadStoriesVideo uploading Story.

Video format: h264 video, aac audio, maximum 720х1280, 30fps.

func (*VK) UploadUserPhoto

func (vk *VK) UploadUserPhoto(file io.Reader) (response PhotosSaveOwnerPhotoResponse, err error)

UploadUserPhoto uploading Photos into User Profile.

Supported formats: JPG, PNG, GIF.

Limits: size not less than 200x200px, aspect ratio from 0.25 to 3, width+height not more than 14000 px, file size up to 50 Mb.

func (*VK) UploadVideo

func (vk *VK) UploadVideo(params Params, file io.Reader) (response VideoSaveResponse, err error)

UploadVideo uploading Video Files.

Supported formats: AVI, MP4, 3GP, MPEG, MOV, FLV, WMV.

func (*VK) UploadWallDoc

func (vk *VK) UploadWallDoc(title, tags string, file io.Reader) (response DocsSaveResponse, err error)

UploadWallDoc uploading Documents on Wall.

Supported formats: any formats excepting mp3 and executable files.

Limits: file size up to 200 MB.

func (*VK) UploadWallPhoto

func (vk *VK) UploadWallPhoto(file io.Reader) (response PhotosSaveWallPhotoResponse, err error)

UploadWallPhoto uploading Photos on User Wall.

Supported formats: JPG, PNG, GIF.

Limits: width+height not more than 14000 px, file size up to 50 Mb, aspect ratio of at least 1:20.

func (*VK) UsersGet

func (vk *VK) UsersGet(params Params) (response UsersGetResponse, err error)

UsersGet returns detailed information on users.

https://vk.com/dev/users.get

func (*VK) UsersGetFollowers

func (vk *VK) UsersGetFollowers(params Params) (response UsersGetFollowersResponse, err error)

UsersGetFollowers returns a list of IDs of followers of the user in question, sorted by date added, most recent first.

fields="";

https://vk.com/dev/users.getFollowers

func (*VK) UsersGetFollowersFields

func (vk *VK) UsersGetFollowersFields(params Params) (response UsersGetFollowersFieldsResponse, err error)

UsersGetFollowersFields returns a list of IDs of followers of the user in question, sorted by date added, most recent first.

fields not empty.

https://vk.com/dev/users.getFollowers

func (*VK) UsersGetSubscriptions

func (vk *VK) UsersGetSubscriptions(params Params) (response UsersGetSubscriptionsResponse, err error)

UsersGetSubscriptions returns a list of IDs of users and public pages followed by the user.

extended=0

https://vk.com/dev/users.getSubscriptions

BUG(SevereCloud): UsersGetSubscriptions bad response with extended=1.

func (*VK) UsersReport

func (vk *VK) UsersReport(params Params) (response int, err error)

UsersReport reports (submits a complain about) a user.

https://vk.com/dev/users.report

func (*VK) UsersSearch

func (vk *VK) UsersSearch(params Params) (response UsersSearchResponse, err error)

UsersSearch returns a list of users matching the search criteria.

https://vk.com/dev/users.search

func (vk *VK) UtilsCheckLink(params Params) (response UtilsCheckLinkResponse, err error)

UtilsCheckLink checks whether a link is blocked in VK.

https://vk.com/dev/utils.checkLink

func (*VK) UtilsDeleteFromLastShortened

func (vk *VK) UtilsDeleteFromLastShortened(params Params) (response int, err error)

UtilsDeleteFromLastShortened deletes shortened link from user's list.

https://vk.com/dev/utils.deleteFromLastShortened

func (vk *VK) UtilsGetLastShortenedLinks(params Params) (response UtilsGetLastShortenedLinksResponse, err error)

UtilsGetLastShortenedLinks returns a list of user's shortened links.

https://vk.com/dev/utils.getLastShortenedLinks

func (*VK) UtilsGetLinkStats

func (vk *VK) UtilsGetLinkStats(params Params) (response UtilsGetLinkStatsResponse, err error)

UtilsGetLinkStats returns stats data for shortened link.

extended=0

https://vk.com/dev/utils.getLinkStats

func (*VK) UtilsGetLinkStatsExtended

func (vk *VK) UtilsGetLinkStatsExtended(params Params) (response UtilsGetLinkStatsExtendedResponse, err error)

UtilsGetLinkStatsExtended returns stats data for shortened link.

extended=1

https://vk.com/dev/utils.getLinkStats

func (*VK) UtilsGetServerTime

func (vk *VK) UtilsGetServerTime(params Params) (response int, err error)

UtilsGetServerTime returns the current time of the VK server.

https://vk.com/dev/utils.getServerTime

func (vk *VK) UtilsGetShortLink(params Params) (response UtilsGetShortLinkResponse, err error)

UtilsGetShortLink allows to receive a link shortened via vk.cc.

https://vk.com/dev/utils.getShortLink

func (*VK) UtilsResolveScreenName

func (vk *VK) UtilsResolveScreenName(params Params) (response UtilsResolveScreenNameResponse, err error)

UtilsResolveScreenName detects a type of object (e.g., user, community, application) and its ID by screen name.

https://vk.com/dev/utils.resolveScreenName

func (*VK) VideoAdd

func (vk *VK) VideoAdd(params Params) (response int, err error)

VideoAdd adds a video to a user or community page.

https://vk.com/dev/video.add

func (*VK) VideoAddAlbum

func (vk *VK) VideoAddAlbum(params Params) (response VideoAddAlbumResponse, err error)

VideoAddAlbum creates an empty album for videos.

https://vk.com/dev/video.addAlbum

func (*VK) VideoAddToAlbum

func (vk *VK) VideoAddToAlbum(params Params) (response int, err error)

VideoAddToAlbum allows you to add a video to the album.

https://vk.com/dev/video.addToAlbum

func (*VK) VideoCreateComment

func (vk *VK) VideoCreateComment(params Params) (response int, err error)

VideoCreateComment adds a new comment on a video.

https://vk.com/dev/video.createComment

func (*VK) VideoDelete

func (vk *VK) VideoDelete(params Params) (response int, err error)

VideoDelete deletes a video from a user or community page.

https://vk.com/dev/video.delete

func (*VK) VideoDeleteAlbum

func (vk *VK) VideoDeleteAlbum(params Params) (response int, err error)

VideoDeleteAlbum deletes a video album.

https://vk.com/dev/video.deleteAlbum

func (*VK) VideoDeleteComment

func (vk *VK) VideoDeleteComment(params Params) (response int, err error)

VideoDeleteComment deletes a comment on a video.

https://vk.com/dev/video.deleteComment

func (*VK) VideoEdit

func (vk *VK) VideoEdit(params Params) (response int, err error)

VideoEdit edits information about a video on a user or community page.

https://vk.com/dev/video.edit

func (*VK) VideoEditAlbum

func (vk *VK) VideoEditAlbum(params Params) (response int, err error)

VideoEditAlbum edits the title of a video album.

https://vk.com/dev/video.editAlbum

func (*VK) VideoEditComment

func (vk *VK) VideoEditComment(params Params) (response int, err error)

VideoEditComment edits the text of a comment on a video.

https://vk.com/dev/video.editComment

func (*VK) VideoGet

func (vk *VK) VideoGet(params Params) (response VideoGetResponse, err error)

VideoGet returns detailed information about videos.

extended=0

https://vk.com/dev/video.get

func (*VK) VideoGetAlbumByID

func (vk *VK) VideoGetAlbumByID(params Params) (response VideoGetAlbumByIDResponse, err error)

VideoGetAlbumByID returns video album info.

https://vk.com/dev/video.getAlbumById

func (*VK) VideoGetAlbums

func (vk *VK) VideoGetAlbums(params Params) (response VideoGetAlbumsResponse, err error)

VideoGetAlbums returns a list of video albums owned by a user or community.

extended=0

https://vk.com/dev/video.getAlbums

func (*VK) VideoGetAlbumsByVideo

func (vk *VK) VideoGetAlbumsByVideo(params Params) (response VideoGetAlbumsByVideoResponse, err error)

VideoGetAlbumsByVideo returns a list of albums in which the video is located.

extended=0

https://vk.com/dev/video.getAlbumsByVideo

func (*VK) VideoGetAlbumsByVideoExtended

func (vk *VK) VideoGetAlbumsByVideoExtended(params Params) (response VideoGetAlbumsByVideoExtendedResponse, err error)

VideoGetAlbumsByVideoExtended returns a list of albums in which the video is located.

extended=1

https://vk.com/dev/video.getAlbumsByVideo

func (*VK) VideoGetAlbumsExtended

func (vk *VK) VideoGetAlbumsExtended(params Params) (response VideoGetAlbumsExtendedResponse, err error)

VideoGetAlbumsExtended returns a list of video albums owned by a user or community.

extended=1

https://vk.com/dev/video.getAlbums

func (*VK) VideoGetComments

func (vk *VK) VideoGetComments(params Params) (response VideoGetCommentsResponse, err error)

VideoGetComments returns a list of comments on a video.

extended=0

https://vk.com/dev/video.getComments

func (*VK) VideoGetCommentsExtended

func (vk *VK) VideoGetCommentsExtended(params Params) (response VideoGetCommentsExtendedResponse, err error)

VideoGetCommentsExtended returns a list of comments on a video.

extended=1

https://vk.com/dev/video.getComments

func (*VK) VideoGetExtended

func (vk *VK) VideoGetExtended(params Params) (response VideoGetExtendedResponse, err error)

VideoGetExtended returns detailed information about videos.

extended=1

https://vk.com/dev/video.get

func (*VK) VideoLiveGetCategories added in v2.14.0

func (vk *VK) VideoLiveGetCategories(params Params) (response VideoLiveGetCategoriesResponse, err error)

VideoLiveGetCategories method.

https://vk.com/dev/video.liveGetCategories

func (*VK) VideoRemoveFromAlbum

func (vk *VK) VideoRemoveFromAlbum(params Params) (response int, err error)

VideoRemoveFromAlbum allows you to remove the video from the album.

https://vk.com/dev/video.removeFromAlbum

func (*VK) VideoReorderAlbums

func (vk *VK) VideoReorderAlbums(params Params) (response int, err error)

VideoReorderAlbums reorders the album in the list of user video albums.

https://vk.com/dev/video.reorderAlbums

func (*VK) VideoReorderVideos

func (vk *VK) VideoReorderVideos(params Params) (response int, err error)

VideoReorderVideos reorders the video in the video album.

https://vk.com/dev/video.reorderVideos

func (*VK) VideoReport

func (vk *VK) VideoReport(params Params) (response int, err error)

VideoReport reports (submits a complaint about) a video.

https://vk.com/dev/video.report

func (*VK) VideoReportComment

func (vk *VK) VideoReportComment(params Params) (response int, err error)

VideoReportComment reports (submits a complaint about) a comment on a video.

https://vk.com/dev/video.reportComment

func (*VK) VideoRestore

func (vk *VK) VideoRestore(params Params) (response int, err error)

VideoRestore restores a previously deleted video.

https://vk.com/dev/video.restore

func (*VK) VideoRestoreComment

func (vk *VK) VideoRestoreComment(params Params) (response int, err error)

VideoRestoreComment restores a previously deleted comment on a video.

https://vk.com/dev/video.restoreComment

func (*VK) VideoSave

func (vk *VK) VideoSave(params Params) (response VideoSaveResponse, err error)

VideoSave returns a server address (required for upload) and video data.

https://vk.com/dev/video.save

func (*VK) VideoSearch

func (vk *VK) VideoSearch(params Params) (response VideoSearchResponse, err error)

VideoSearch returns a list of videos under the set search criterion.

extended=0

https://vk.com/dev/video.search

func (*VK) VideoSearchExtended

func (vk *VK) VideoSearchExtended(params Params) (response VideoSearchExtendedResponse, err error)

VideoSearchExtended returns a list of videos under the set search criterion.

extended=1

https://vk.com/dev/video.search

func (*VK) VideoStartStreaming added in v2.14.0

func (vk *VK) VideoStartStreaming(params Params) (response VideoStartStreamingResponse, err error)

VideoStartStreaming method.

https://vk.com/dev/video.startStreaming

func (*VK) VideoStopStreaming added in v2.14.0

func (vk *VK) VideoStopStreaming(params Params) (response VideoStopStreamingResponse, err error)

VideoStopStreaming method.

https://vk.com/dev/video.stopStreaming

func (vk *VK) WallCheckCopyrightLink(params Params) (response int, err error)

WallCheckCopyrightLink method.

https://vk.com/dev/wall.checkCopyrightLink

func (*VK) WallCloseComments

func (vk *VK) WallCloseComments(params Params) (response int, err error)

WallCloseComments turn off post commenting.

https://vk.com/dev/wall.closeComments

func (*VK) WallCreateComment

func (vk *VK) WallCreateComment(params Params) (response WallCreateCommentResponse, err error)

WallCreateComment adds a comment to a post on a user wall or community wall.

https://vk.com/dev/wall.createComment

func (*VK) WallDelete

func (vk *VK) WallDelete(params Params) (response int, err error)

WallDelete deletes a post from a user wall or community wall.

https://vk.com/dev/wall.delete

func (*VK) WallDeleteComment

func (vk *VK) WallDeleteComment(params Params) (response int, err error)

WallDeleteComment deletes a comment on a post on a user wall or community wall.

https://vk.com/dev/wall.deleteComment

func (*VK) WallEdit

func (vk *VK) WallEdit(params Params) (response WallEditResponse, err error)

WallEdit edits a post on a user wall or community wall.

https://vk.com/dev/wall.edit

func (*VK) WallEditAdsStealth

func (vk *VK) WallEditAdsStealth(params Params) (response int, err error)

WallEditAdsStealth allows to edit hidden post.

https://vk.com/dev/wall.editAdsStealth

func (*VK) WallEditComment

func (vk *VK) WallEditComment(params Params) (response int, err error)

WallEditComment edits a comment on a user wall or community wall.

https://vk.com/dev/wall.editComment

func (*VK) WallGet

func (vk *VK) WallGet(params Params) (response WallGetResponse, err error)

WallGet returns a list of posts on a user wall or community wall.

extended=0

https://vk.com/dev/wall.get

func (*VK) WallGetByID

func (vk *VK) WallGetByID(params Params) (response WallGetByIDResponse, err error)

WallGetByID returns a list of posts from user or community walls by their IDs.

extended=0

https://vk.com/dev/wall.getById

func (*VK) WallGetByIDExtended

func (vk *VK) WallGetByIDExtended(params Params) (response WallGetByIDExtendedResponse, err error)

WallGetByIDExtended returns a list of posts from user or community walls by their IDs.

extended=1

https://vk.com/dev/wall.getById

func (*VK) WallGetComment

func (vk *VK) WallGetComment(params Params) (response WallGetCommentResponse, err error)

WallGetComment allows to obtain wall comment info.

extended=0

https://vk.com/dev/wall.getComment

func (*VK) WallGetCommentExtended

func (vk *VK) WallGetCommentExtended(params Params) (response WallGetCommentExtendedResponse, err error)

WallGetCommentExtended allows to obtain wall comment info.

extended=1

https://vk.com/dev/wall.getComment

func (*VK) WallGetComments

func (vk *VK) WallGetComments(params Params) (response WallGetCommentsResponse, err error)

WallGetComments returns a list of comments on a post on a user wall or community wall.

extended=0

https://vk.com/dev/wall.getComments

func (*VK) WallGetCommentsExtended

func (vk *VK) WallGetCommentsExtended(params Params) (response WallGetCommentsExtendedResponse, err error)

WallGetCommentsExtended returns a list of comments on a post on a user wall or community wall.

extended=1

https://vk.com/dev/wall.getComments

func (*VK) WallGetExtended

func (vk *VK) WallGetExtended(params Params) (response WallGetExtendedResponse, err error)

WallGetExtended returns a list of posts on a user wall or community wall.

extended=1

https://vk.com/dev/wall.get

func (*VK) WallGetReposts

func (vk *VK) WallGetReposts(params Params) (response WallGetRepostsResponse, err error)

WallGetReposts returns information about reposts of a post on user wall or community wall.

https://vk.com/dev/wall.getReposts

func (*VK) WallOpenComments

func (vk *VK) WallOpenComments(params Params) (response int, err error)

WallOpenComments includes posting comments.

https://vk.com/dev/wall.openComments

func (*VK) WallPin

func (vk *VK) WallPin(params Params) (response int, err error)

WallPin pins the post on wall.

https://vk.com/dev/wall.pin

func (*VK) WallPost

func (vk *VK) WallPost(params Params) (response WallPostResponse, err error)

WallPost adds a new post on a user wall or community wall.Can also be used to publish suggested or scheduled posts.

https://vk.com/dev/wall.post

func (*VK) WallPostAdsStealth

func (vk *VK) WallPostAdsStealth(params Params) (response WallPostAdsStealthResponse, err error)

WallPostAdsStealth allows to create hidden post which will not be shown on the community's wall and can be used for creating an ad with type "Community post".

https://vk.com/dev/wall.postAdsStealth

func (*VK) WallReportComment

func (vk *VK) WallReportComment(params Params) (response int, err error)

WallReportComment reports (submits a complaint about) a comment on a post on a user wall or community wall.

https://vk.com/dev/wall.reportComment

func (*VK) WallReportPost

func (vk *VK) WallReportPost(params Params) (response int, err error)

WallReportPost reports (submits a complaint about) a post on a user wall or community wall.

https://vk.com/dev/wall.reportPost

func (*VK) WallRepost

func (vk *VK) WallRepost(params Params) (response WallRepostResponse, err error)

WallRepost reposts ( copies) an object to a user wall or community wall.

https://vk.com/dev/wall.repost

func (*VK) WallRestore

func (vk *VK) WallRestore(params Params) (response int, err error)

WallRestore restores a post deleted from a user wall or community wall.

https://vk.com/dev/wall.restore

func (*VK) WallRestoreComment

func (vk *VK) WallRestoreComment(params Params) (response int, err error)

WallRestoreComment restores a comment deleted from a user wall or community wall.

https://vk.com/dev/wall.restoreComment

func (*VK) WallSearch

func (vk *VK) WallSearch(params Params) (response WallSearchResponse, err error)

WallSearch allows to search posts on user or community walls.

extended=0

https://vk.com/dev/wall.search

func (*VK) WallSearchExtended

func (vk *VK) WallSearchExtended(params Params) (response WallSearchExtendedResponse, err error)

WallSearchExtended allows to search posts on user or community walls.

extended=1

https://vk.com/dev/wall.search

func (*VK) WallUnpin

func (vk *VK) WallUnpin(params Params) (response int, err error)

WallUnpin unpins the post on wall.

https://vk.com/dev/wall.unpin

func (*VK) WidgetsGetComments

func (vk *VK) WidgetsGetComments(params Params) (response WidgetsGetCommentsResponse, err error)

WidgetsGetComments gets a list of comments for the page added through the Comments widget.

https://vk.com/dev/widgets.getComments

func (*VK) WidgetsGetPages

func (vk *VK) WidgetsGetPages(params Params) (response WidgetsGetPagesResponse, err error)

WidgetsGetPages gets a list of application/site pages where the Comments widget or Like widget is installed.

https://vk.com/dev/widgets.getPages

type VideoAddAlbumResponse

type VideoAddAlbumResponse struct {
	AlbumID int `json:"album_id"`
}

VideoAddAlbumResponse struct.

type VideoGetAlbumByIDResponse

type VideoGetAlbumByIDResponse object.VideoVideoAlbumFull

VideoGetAlbumByIDResponse struct.

type VideoGetAlbumsByVideoExtendedResponse

type VideoGetAlbumsByVideoExtendedResponse struct {
	Count int                          `json:"count"`
	Items []object.VideoVideoAlbumFull `json:"items"`
}

VideoGetAlbumsByVideoExtendedResponse struct.

type VideoGetAlbumsByVideoResponse

type VideoGetAlbumsByVideoResponse []int

VideoGetAlbumsByVideoResponse struct.

type VideoGetAlbumsExtendedResponse

type VideoGetAlbumsExtendedResponse struct {
	Count int                          `json:"count"`
	Items []object.VideoVideoAlbumFull `json:"items"`
}

VideoGetAlbumsExtendedResponse struct.

type VideoGetAlbumsResponse

type VideoGetAlbumsResponse struct {
	Count int                      `json:"count"`
	Items []object.VideoVideoAlbum `json:"items"`
}

VideoGetAlbumsResponse struct.

type VideoGetCommentsExtendedResponse

type VideoGetCommentsExtendedResponse struct {
	Count int                      `json:"count"`
	Items []object.WallWallComment `json:"items"`
	object.ExtendedResponse
}

VideoGetCommentsExtendedResponse struct.

type VideoGetCommentsResponse

type VideoGetCommentsResponse struct {
	Count int                      `json:"count"`
	Items []object.WallWallComment `json:"items"`
}

VideoGetCommentsResponse struct.

type VideoGetExtendedResponse

type VideoGetExtendedResponse struct {
	Count int                 `json:"count"`
	Items []object.VideoVideo `json:"items"`
	object.ExtendedResponse
}

VideoGetExtendedResponse struct.

type VideoGetResponse

type VideoGetResponse struct {
	Count int                 `json:"count"`
	Items []object.VideoVideo `json:"items"`
}

VideoGetResponse struct.

type VideoLiveGetCategoriesResponse added in v2.14.0

type VideoLiveGetCategoriesResponse []object.VideoLiveCategory

VideoLiveGetCategoriesResponse struct.

type VideoSaveResponse

type VideoSaveResponse object.VideoSaveResult

VideoSaveResponse struct.

type VideoSearchExtendedResponse

type VideoSearchExtendedResponse struct {
	Count int                 `json:"count"`
	Items []object.VideoVideo `json:"items"`
	object.ExtendedResponse
}

VideoSearchExtendedResponse struct.

type VideoSearchResponse

type VideoSearchResponse struct {
	Count int                 `json:"count"`
	Items []object.VideoVideo `json:"items"`
}

VideoSearchResponse struct.

type VideoStartStreamingResponse added in v2.14.0

type VideoStartStreamingResponse object.VideoLive

VideoStartStreamingResponse struct.

type VideoStopStreamingResponse added in v2.14.0

type VideoStopStreamingResponse struct {
	UniqueViewers int `json:"unique_viewers"`
}

VideoStopStreamingResponse struct.

type WallCreateCommentResponse

type WallCreateCommentResponse struct {
	CommentID    int   `json:"comment_id"`
	ParentsStack []int `json:"parents_stack"`
}

WallCreateCommentResponse struct.

type WallEditResponse

type WallEditResponse struct {
	PostID int `json:"post_id"`
}

WallEditResponse struct.

type WallGetByIDExtendedResponse

type WallGetByIDExtendedResponse struct {
	Items []object.WallWallpost `json:"items"`
	object.ExtendedResponse
}

WallGetByIDExtendedResponse struct.

type WallGetByIDResponse

type WallGetByIDResponse []object.WallWallpost

WallGetByIDResponse struct.

type WallGetCommentExtendedResponse

type WallGetCommentExtendedResponse struct {
	Count             int                      `json:"count"`
	Items             []object.WallWallComment `json:"items"`
	CanPost           object.BaseBoolInt       `json:"can_post"`
	ShowReplyButton   object.BaseBoolInt       `json:"show_reply_button"`
	GroupsCanPost     object.BaseBoolInt       `json:"groups_can_post"`
	CurrentLevelCount int                      `json:"current_level_count"`
	Profiles          []object.UsersUser       `json:"profiles"`
	Groups            []object.GroupsGroup     `json:"groups"`
}

WallGetCommentExtendedResponse struct.

type WallGetCommentResponse

type WallGetCommentResponse struct {
	Items             []object.WallWallComment `json:"items"`
	CanPost           object.BaseBoolInt       `json:"can_post"`
	ShowReplyButton   object.BaseBoolInt       `json:"show_reply_button"`
	GroupsCanPost     object.BaseBoolInt       `json:"groups_can_post"`
	CurrentLevelCount int                      `json:"current_level_count"`
}

WallGetCommentResponse struct.

type WallGetCommentsExtendedResponse

type WallGetCommentsExtendedResponse struct {
	CanPost           object.BaseBoolInt       `json:"can_post"`
	ShowReplyButton   object.BaseBoolInt       `json:"show_reply_button"`
	GroupsCanPost     object.BaseBoolInt       `json:"groups_can_post"`
	CurrentLevelCount int                      `json:"current_level_count"`
	Count             int                      `json:"count"`
	Items             []object.WallWallComment `json:"items"`
	object.ExtendedResponse
}

WallGetCommentsExtendedResponse struct.

type WallGetCommentsResponse

type WallGetCommentsResponse struct {
	CanPost           object.BaseBoolInt       `json:"can_post"`
	ShowReplyButton   object.BaseBoolInt       `json:"show_reply_button"`
	GroupsCanPost     object.BaseBoolInt       `json:"groups_can_post"`
	CurrentLevelCount int                      `json:"current_level_count"`
	Count             int                      `json:"count"`
	Items             []object.WallWallComment `json:"items"`
}

WallGetCommentsResponse struct.

type WallGetExtendedResponse

type WallGetExtendedResponse struct {
	Count int                   `json:"count"`
	Items []object.WallWallpost `json:"items"`
	object.ExtendedResponse
}

WallGetExtendedResponse struct.

type WallGetRepostsResponse

type WallGetRepostsResponse struct {
	Items []object.WallWallpost `json:"items"`
	object.ExtendedResponse
}

WallGetRepostsResponse struct.

type WallGetResponse

type WallGetResponse struct {
	Count int                   `json:"count"`
	Items []object.WallWallpost `json:"items"`
}

WallGetResponse struct.

type WallPostAdsStealthResponse

type WallPostAdsStealthResponse struct {
	PostID int `json:"post_id"`
}

WallPostAdsStealthResponse struct.

type WallPostResponse

type WallPostResponse struct {
	PostID int `json:"post_id"`
}

WallPostResponse struct.

type WallRepostResponse

type WallRepostResponse struct {
	Success         int `json:"success"`
	PostID          int `json:"post_id"`
	RepostsCount    int `json:"reposts_count"`
	LikesCount      int `json:"likes_count"`
	WallRepostCount int `json:"wall_repost_count"`
	MailRepostCount int `json:"mail_repost_count"`
}

WallRepostResponse struct.

type WallSearchExtendedResponse

type WallSearchExtendedResponse struct {
	Count int                   `json:"count"`
	Items []object.WallWallpost `json:"items"`
	object.ExtendedResponse
}

WallSearchExtendedResponse struct.

type WallSearchResponse

type WallSearchResponse struct {
	Count int                   `json:"count"`
	Items []object.WallWallpost `json:"items"`
}

WallSearchResponse struct.

type WidgetsGetCommentsResponse

type WidgetsGetCommentsResponse struct {
	Count int                           `json:"count"`
	Posts []object.WidgetsWidgetComment `json:"posts"`
}

WidgetsGetCommentsResponse struct.

type WidgetsGetPagesResponse

type WidgetsGetPagesResponse struct {
	Count int                        `json:"count"`
	Pages []object.WidgetsWidgetPage `json:"pages"`
}

WidgetsGetPagesResponse struct.

Notes

Bugs

Directories

Path Synopsis
Package oauth ...
Package oauth ...
Package params for generating query parameters.
Package params for generating query parameters.

Jump to

Keyboard shortcuts

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