api

package
Version: v2.15.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2022 License: MIT Imports: 22 Imported by: 35

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 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) 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 out