From 25793db7759cb75948b81dd7a72e16333ac8d2cd Mon Sep 17 00:00:00 2001 From: Daniil Suvorov Date: Sat, 24 Feb 2024 11:22:23 +0300 Subject: [PATCH] docs: update links --- api/README.md | 34 +++++----- api/account.go | 38 +++++------ api/ads.go | 90 ++++++++++++------------- api/api.go | 14 ++-- api/apps.go | 30 ++++----- api/appwidgets.go | 16 ++--- api/auth.go | 4 +- api/board.go | 30 ++++----- api/calls.go | 4 +- api/database.go | 24 +++---- api/docs.go | 22 +++--- api/donut.go | 8 +-- api/downloadedGames.go | 2 +- api/errors.go | 18 ++--- api/execute.go | 4 +- api/fave.go | 48 ++++++------- api/friends.go | 44 ++++++------ api/gifts.go | 4 +- api/groups.go | 122 +++++++++++++++++----------------- api/leadforms.go | 14 ++-- api/leads.go | 12 ++-- api/likes.go | 10 +-- api/market.go | 60 ++++++++--------- api/marusia.go | 16 ++--- api/messages.go | 96 +++++++++++++------------- api/newsfeed.go | 34 +++++----- api/notes.go | 20 +++--- api/notifications.go | 6 +- api/oauth/README.md | 37 +++++------ api/oauth/group.go | 4 +- api/oauth/user.go | 6 +- api/orders.go | 16 ++--- api/pages.go | 16 ++--- api/params/account.go | 34 +++++----- api/params/ads.go | 68 +++++++++---------- api/params/appWidgets.go | 2 +- api/params/apps.go | 24 +++---- api/params/auth.go | 4 +- api/params/board.go | 26 ++++---- api/params/calls.go | 4 +- api/params/database.go | 24 +++---- api/params/docs.go | 22 +++--- api/params/downloadedGames.go | 2 +- api/params/fave.go | 40 +++++------ api/params/friends.go | 32 ++++----- api/params/gifts.go | 2 +- api/params/groups.go | 96 +++++++++++++------------- api/params/leads.go | 12 ++-- api/params/likes.go | 8 +-- api/params/market.go | 58 ++++++++-------- api/params/marusia.go | 8 +-- api/params/messages.go | 92 ++++++++++++------------- api/params/newsfeed.go | 30 ++++----- api/params/notes.go | 20 +++--- api/params/notifications.go | 4 +- api/params/orders.go | 16 ++--- api/params/pages.go | 16 ++--- api/params/photos.go | 92 ++++++++++++------------- api/params/polls.go | 12 ++-- api/params/prettyCards.go | 10 +-- api/params/search.go | 2 +- api/params/secure.go | 18 ++--- api/params/stats.go | 6 +- api/params/status.go | 4 +- api/params/storage.go | 6 +- api/params/stories.go | 30 ++++----- api/params/streaming.go | 2 +- api/params/users.go | 12 ++-- api/params/utils.go | 12 ++-- api/params/video.go | 52 +++++++-------- api/params/wall.go | 46 ++++++------- api/params/widgets.go | 4 +- api/photos.go | 102 ++++++++++++++-------------- api/podcasts.go | 22 +++--- api/polls.go | 20 +++--- api/prettycards.go | 12 ++-- api/search.go | 2 +- api/secure.go | 20 +++--- api/stats.go | 6 +- api/storage.go | 6 +- api/store.go | 6 +- api/stories.go | 42 ++++++------ api/streaming.go | 10 +-- api/upload.go | 4 +- api/users.go | 12 ++-- api/utils.go | 16 ++--- api/video.go | 64 +++++++++--------- api/wall.go | 58 ++++++++-------- api/widgets.go | 4 +- callback/README.md | 4 +- callback/callback.go | 2 +- events/events.go | 2 +- games/doc.go | 2 +- longpoll-bot/README.md | 4 +- longpoll-bot/longpoll.go | 2 +- longpoll-user/README.md | 4 +- longpoll-user/longpoll.go | 2 +- longpoll-user/v3/README.md | 2 +- longpoll-user/v3/doc.go | 2 +- longpoll-user/v3/extra.go | 2 +- marusia/deeplink.go | 2 +- marusia/skill.go | 6 +- object/messages.go | 4 +- object/object.go | 2 +- object/pages.go | 2 +- object/stories.go | 2 +- payments/payments.go | 30 ++++----- streaming/errors.go | 2 +- streaming/streaming.go | 2 +- vkapps/README.md | 4 +- vkapps/doc.go | 2 +- 111 files changed, 1173 insertions(+), 1174 deletions(-) diff --git a/api/README.md b/api/README.md index 5d2d0c76..fd53252c 100644 --- a/api/README.md +++ b/api/README.md @@ -1,13 +1,13 @@ # API [![PkgGoDev](https://pkg.go.dev/badge/github.com/SevereCloud/vksdk/v2/api)](https://pkg.go.dev/github.com/SevereCloud/vksdk/v2/api) -[![VK](https://img.shields.io/badge/developers-%234a76a8.svg?logo=VK&logoColor=white)](https://vk.com/dev/first_guide) +[![VK](https://img.shields.io/badge/developers-%234a76a8.svg?logo=VK&logoColor=white)](https://dev.vk.com/ru/api/getting-started) Данная библиотека поддерживает версию API **5.131**. ## Запросы -В начале необходимо инициализировать api с помощью [ключа доступа](https://vk.com/dev/access_token): +В начале необходимо инициализировать api с помощью [ключа доступа](https://dev.vk.com/ru/api/access-token/getting-started): ```go vk := api.NewVK("") @@ -21,7 +21,7 @@ vk := api.NewVK("") Список всех методов можно найти на [данной странице](https://pkg.go.dev/github.com/SevereCloud/vksdk/v2/api?tab=doc#VK). -Пример запроса [`users.get`](https://vk.com/dev/users.get) +Пример запроса [`users.get`](https://dev.vk.com/method/users.get) ```go users, err := vk.UsersGet(api.Params{ @@ -52,7 +52,7 @@ res, err = api.MessageSend(b.Params) ### Обработка ошибок -[![VK](https://img.shields.io/badge/developers-%234a76a8.svg?logo=VK&logoColor=white)](https://vk.com/dev/errors) +[![VK](https://img.shields.io/badge/developers-%234a76a8.svg?logo=VK&logoColor=white)](https://dev.vk.com/ru/reference/errors) Обработка ошибок полностью поддерживает методы [go 1.13](https://blog.golang.org/go1.13-errors) @@ -130,7 +130,7 @@ log.Println("msgpack:", len(r)) // msgpack: 650775 ### Запрос любого метода -Пример запроса [users.get](https://vk.com/dev/users.get) +Пример запроса [users.get](https://dev.vk.com/method/users.get) ```go // Определяем структуру, которую вернет API @@ -153,7 +153,7 @@ log.Print(response) ### Execute [![PkgGoDev](https://pkg.go.dev/badge/github.com/SevereCloud/vksdk/v2/errors)](https://pkg.go.dev/github.com/SevereCloud/vksdk/v2/api#VK.Execute) -[![VK](https://img.shields.io/badge/developers-%234a76a8.svg?logo=VK&logoColor=white)](https://vk.com/dev/execute) +[![VK](https://img.shields.io/badge/developers-%234a76a8.svg?logo=VK&logoColor=white)](https://dev.vk.com/ru/method/execute) Универсальный метод, который позволяет запускать последовательность других методов, сохраняя и фильтруя промежуточные результаты. @@ -199,7 +199,7 @@ vk.Handler = func(method string, params ...api.Params) (api.Response, error) { позволяет совершить до 25 обращений к разным методам в рамках одного запроса. Для методов секции ads действуют собственные ограничения, ознакомиться с ними -Вы можете на [этой странице](https://vk.com/dev/ads_limits). +Вы можете на [этой странице](https://dev.vk.com/ru/method/ads). Максимальное число обращений к методам секции secure зависит от числа пользователей, установивших приложение. Если приложение установило меньше 10 @@ -236,7 +236,7 @@ vk.Client = client ### Ошибка с Captcha -[![VK](https://img.shields.io/badge/developers-%234a76a8.svg?logo=VK&logoColor=white)](https://vk.com/dev/captcha_error) +[![VK](https://img.shields.io/badge/developers-%234a76a8.svg?logo=VK&logoColor=white)](https://dev.vk.com/ru/api/captcha-error) Если какое-либо действие (например, отправка сообщения) выполняется пользователем слишком часто, то запрос к API может возвращать ошибку @@ -262,7 +262,7 @@ vk.Client = client ## Загрузка файлов -[![VK](https://img.shields.io/badge/developers-%234a76a8.svg?logo=VK&logoColor=white)](https://vk.com/dev/upload_files) +[![VK](https://img.shields.io/badge/developers-%234a76a8.svg?logo=VK&logoColor=white)](https://dev.vk.com/ru/api/upload/overview) ### 1. Загрузка фотографий в альбом @@ -364,7 +364,7 @@ messageInfo, err = vk.UploadChatPhotoCrop(peerID, cropX, cropY, cropWidth, file) не более 14000px, файл объемом не более 50 МБ, соотношение сторон не менее 1:20. Если Вы хотите загрузить основную фотографию товара, необходимо передать -параметр `mainPhoto = true`. Если фотография не основная, она не будет обрезаться. +параметр `mainPhoto = true`. Если фотография не основная, она не будет обрезаться. Без обрезки: @@ -392,7 +392,7 @@ photosPhoto, err = vk.UploadMarketAlbumPhoto(groupID, file) Допустимые форматы: AVI, MP4, 3GP, MPEG, MOV, MP3, FLV, WMV. -[Параметры](https://vk.com/dev/video.save) +[Параметры](https://dev.vk.com/method/video.save) ```go videoUploadResponse, err = vk.UploadVideo(params, file) @@ -476,13 +476,13 @@ docsDoc, err = vk.UploadMessagesDoc(peerID, "audio_message", title, tags, file) не более 10МБ. Формат видео: h264 video, aac audio, максимальное разрешение 720х1280, 30fps. -Загрузить историю с фотографией. [Параметры](https://vk.com/dev/stories.getPhotoUploadServer) +Загрузить историю с фотографией. [Параметры](https://dev.vk.com/method/stories.getPhotoUploadServer) ```go uploadInfo, err = vk.UploadStoriesPhoto(params, file) ``` -Загрузить историю с видео. [Параметры](https://vk.com/dev/stories.getVideoUploadServer) +Загрузить историю с видео. [Параметры](https://dev.vk.com/method/stories.getVideoUploadServer) ```go uploadInfo, err = vk.UploadStoriesVideo(params, file) @@ -529,14 +529,14 @@ photo, err = vk.UploadLeadFormsPhoto(file) ``` Полученные данные можно использовать в методах -[leadForms.create](https://vk.com/dev/leadForms.create) +[leadForms.create](https://dev.vk.com/method/leadForms.create) и -[leadForms.edit](https://vk.com/dev/leadForms.edit). +[leadForms.edit](https://dev.vk.com/method/leadForms.edit). Полученные данные можно использовать в методах -[prettyCards.create](https://vk.com/dev/prettyCards.create) +[prettyCards.create](https://dev.vk.com/method/prettyCards.create) и -[prettyCards.edit](https://vk.com/dev/prettyCards.edit). +[prettyCards.edit](https://dev.vk.com/method/prettyCards.edit). ### Загрузки фотографии в коллекцию приложения для виджетов приложений сообществ diff --git a/api/account.go b/api/account.go index 5732ed61..6500d971 100644 --- a/api/account.go +++ b/api/account.go @@ -6,7 +6,7 @@ import ( // AccountBan account.ban. // -// https://vk.com/dev/account.ban +// https://dev.vk.com/method/account.ban func (vk *VK) AccountBan(params Params) (response int, err error) { err = vk.RequestUnmarshal("account.ban", &response, params) return @@ -19,7 +19,7 @@ type AccountChangePasswordResponse struct { // AccountChangePassword changes a user password after access is successfully restored with the auth.restore method. // -// https://vk.com/dev/account.changePassword +// https://dev.vk.com/method/account.changePassword func (vk *VK) AccountChangePassword(params Params) (response AccountChangePasswordResponse, err error) { err = vk.RequestUnmarshal("account.changePassword", &response, params) return @@ -35,7 +35,7 @@ type AccountGetActiveOffersResponse struct { // 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 +// https://dev.vk.com/method/account.getActiveOffers func (vk *VK) AccountGetActiveOffers(params Params) (response AccountGetActiveOffersResponse, err error) { err = vk.RequestUnmarshal("account.getActiveOffers", &response, params) return @@ -43,7 +43,7 @@ func (vk *VK) AccountGetActiveOffers(params Params) (response AccountGetActiveOf // AccountGetAppPermissions gets settings of the user in this application. // -// https://vk.com/dev/account.getAppPermissions +// https://dev.vk.com/method/account.getAppPermissions func (vk *VK) AccountGetAppPermissions(params Params) (response int, err error) { err = vk.RequestUnmarshal("account.getAppPermissions", &response, params) return @@ -58,7 +58,7 @@ type AccountGetBannedResponse struct { // AccountGetBanned returns a user's blacklist. // -// https://vk.com/dev/account.getBanned +// https://dev.vk.com/method/account.getBanned func (vk *VK) AccountGetBanned(params Params) (response AccountGetBannedResponse, err error) { err = vk.RequestUnmarshal("account.getBanned", &response, params) return @@ -69,7 +69,7 @@ type AccountGetCountersResponse object.AccountAccountCounters // AccountGetCounters returns non-null values of user counters. // -// https://vk.com/dev/account.getCounters +// https://dev.vk.com/method/account.getCounters func (vk *VK) AccountGetCounters(params Params) (response AccountGetCountersResponse, err error) { err = vk.RequestUnmarshal("account.getCounters", &response, params) return @@ -80,7 +80,7 @@ type AccountGetInfoResponse object.AccountInfo // AccountGetInfo returns current account info. // -// https://vk.com/dev/account.getInfo +// https://dev.vk.com/method/account.getInfo func (vk *VK) AccountGetInfo(params Params) (response AccountGetInfoResponse, err error) { err = vk.RequestUnmarshal("account.getInfo", &response, params) return @@ -91,7 +91,7 @@ type AccountGetProfileInfoResponse object.AccountUserSettings // AccountGetProfileInfo returns the current account info. // -// https://vk.com/dev/account.getProfileInfo +// https://dev.vk.com/method/account.getProfileInfo func (vk *VK) AccountGetProfileInfo(params Params) (response AccountGetProfileInfoResponse, err error) { err = vk.RequestUnmarshal("account.getProfileInfo", &response, params) return @@ -102,7 +102,7 @@ type AccountGetPushSettingsResponse object.AccountPushSettings // AccountGetPushSettings account.getPushSettings Gets settings of push notifications. // -// https://vk.com/dev/account.getPushSettings +// https://dev.vk.com/method/account.getPushSettings func (vk *VK) AccountGetPushSettings(params Params) (response AccountGetPushSettingsResponse, err error) { err = vk.RequestUnmarshal("account.getPushSettings", &response, params) return @@ -110,7 +110,7 @@ func (vk *VK) AccountGetPushSettings(params Params) (response AccountGetPushSett // AccountRegisterDevice subscribes an iOS/Android/Windows/Mac based device to receive push notifications. // -// https://vk.com/dev/account.registerDevice +// https://dev.vk.com/method/account.registerDevice func (vk *VK) AccountRegisterDevice(params Params) (response int, err error) { err = vk.RequestUnmarshal("account.registerDevice", &response, params) return @@ -124,7 +124,7 @@ type AccountSaveProfileInfoResponse struct { // AccountSaveProfileInfo edits current profile info. // -// https://vk.com/dev/account.saveProfileInfo +// https://dev.vk.com/method/account.saveProfileInfo func (vk *VK) AccountSaveProfileInfo(params Params) (response AccountSaveProfileInfoResponse, err error) { err = vk.RequestUnmarshal("account.saveProfileInfo", &response, params) return @@ -132,7 +132,7 @@ func (vk *VK) AccountSaveProfileInfo(params Params) (response AccountSaveProfile // AccountSetInfo allows to edit the current account info. // -// https://vk.com/dev/account.setInfo +// https://dev.vk.com/method/account.setInfo func (vk *VK) AccountSetInfo(params Params) (response int, err error) { err = vk.RequestUnmarshal("account.setInfo", &response, params) return @@ -143,7 +143,7 @@ func (vk *VK) AccountSetInfo(params Params) (response int, err error) { // // Deprecated: This method is deprecated and may be disabled soon, please avoid // -// https://vk.com/dev/account.setNameInMenu +// https://dev.vk.com/method/account.setNameInMenu func (vk *VK) AccountSetNameInMenu(params Params) (response int, err error) { err = vk.RequestUnmarshal("account.setNameInMenu", &response, params) return @@ -151,7 +151,7 @@ func (vk *VK) AccountSetNameInMenu(params Params) (response int, err error) { // AccountSetOffline marks a current user as offline. // -// https://vk.com/dev/account.setOffline +// https://dev.vk.com/method/account.setOffline func (vk *VK) AccountSetOffline(params Params) (response int, err error) { err = vk.RequestUnmarshal("account.setOffline", &response, params) return @@ -159,7 +159,7 @@ func (vk *VK) AccountSetOffline(params Params) (response int, err error) { // AccountSetOnline marks the current user as online for 5 minutes. // -// https://vk.com/dev/account.setOnline +// https://dev.vk.com/method/account.setOnline func (vk *VK) AccountSetOnline(params Params) (response int, err error) { err = vk.RequestUnmarshal("account.setOnline", &response, params) return @@ -167,7 +167,7 @@ func (vk *VK) AccountSetOnline(params Params) (response int, err error) { // AccountSetPushSettings change push settings. // -// https://vk.com/dev/account.setPushSettings +// https://dev.vk.com/method/account.setPushSettings func (vk *VK) AccountSetPushSettings(params Params) (response int, err error) { err = vk.RequestUnmarshal("account.setPushSettings", &response, params) return @@ -175,7 +175,7 @@ func (vk *VK) AccountSetPushSettings(params Params) (response int, err error) { // AccountSetSilenceMode mutes push notifications for the set period of time. // -// https://vk.com/dev/account.setSilenceMode +// https://dev.vk.com/method/account.setSilenceMode func (vk *VK) AccountSetSilenceMode(params Params) (response int, err error) { err = vk.RequestUnmarshal("account.setSilenceMode", &response, params) return @@ -183,7 +183,7 @@ func (vk *VK) AccountSetSilenceMode(params Params) (response int, err error) { // AccountUnban account.unban. // -// https://vk.com/dev/account.unban +// https://dev.vk.com/method/account.unban func (vk *VK) AccountUnban(params Params) (response int, err error) { err = vk.RequestUnmarshal("account.unban", &response, params) return @@ -191,7 +191,7 @@ func (vk *VK) AccountUnban(params Params) (response int, err error) { // AccountUnregisterDevice unsubscribes a device from push notifications. // -// https://vk.com/dev/account.unregisterDevice +// https://dev.vk.com/method/account.unregisterDevice func (vk *VK) AccountUnregisterDevice(params Params) (response int, err error) { err = vk.RequestUnmarshal("account.unregisterDevice", &response, params) return diff --git a/api/ads.go b/api/ads.go index 92c083d8..eb67224c 100644 --- a/api/ads.go +++ b/api/ads.go @@ -45,7 +45,7 @@ type AdsAddOfficeUsersResponse []AdsAddOfficeUsersItem // AdsAddOfficeUsers adds managers and/or supervisors to advertising account. // -// https://vk.com/dev/ads.addOfficeUsers +// https://dev.vk.com/method/ads.addOfficeUsers func (vk *VK) AdsAddOfficeUsers(params Params) (response AdsAddOfficeUsersResponse, err error) { err = vk.RequestUnmarshal("ads.addOfficeUsers", &response, params) return @@ -65,7 +65,7 @@ type AdsCheckLinkResponse struct { // AdsCheckLink allows to check the ad link. // -// https://vk.com/dev/ads.checkLink +// https://dev.vk.com/method/ads.checkLink func (vk *VK) AdsCheckLink(params Params) (response AdsCheckLinkResponse, err error) { err = vk.RequestUnmarshal("ads.checkLink", &response, params) return @@ -82,7 +82,7 @@ type AdsCreateAdsResponse []struct { // 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 +// https://dev.vk.com/method/ads.createAds func (vk *VK) AdsCreateAds(params Params) (response AdsCreateAdsResponse, err error) { err = vk.RequestUnmarshal("ads.createAds", &response, params) return @@ -98,7 +98,7 @@ type AdsCreateCampaignsResponse []struct { // // Please note! Allowed number of campaigns created in one request is 50. // -// https://vk.com/dev/ads.createCampaigns +// https://dev.vk.com/method/ads.createCampaigns func (vk *VK) AdsCreateCampaigns(params Params) (response AdsCreateCampaignsResponse, err error) { err = vk.RequestUnmarshal("ads.createCampaigns", &response, params) return @@ -116,7 +116,7 @@ type AdsCreateClientsResponse []struct { // // Please note! Allowed number of clients created in one request is 50. // -// https://vk.com/dev/ads.createClients +// https://dev.vk.com/method/ads.createClients func (vk *VK) AdsCreateClients(params Params) (response AdsCreateClientsResponse, err error) { err = vk.RequestUnmarshal("ads.createClients", &response, params) return @@ -129,7 +129,7 @@ type AdsCreateLookalikeRequestResponse struct { // AdsCreateLookalikeRequest creates a request to find a similar audience. // -// https://vk.com/dev/ads.createLookalikeRequest +// https://dev.vk.com/method/ads.createLookalikeRequest func (vk *VK) AdsCreateLookalikeRequest(params Params) (response AdsCreateLookalikeRequestResponse, err error) { err = vk.RequestUnmarshal("ads.createLookalikeRequest", &response, params) return @@ -154,7 +154,7 @@ type AdsCreateTargetGroupResponse struct { // Please note! Maximum allowed number of groups for one advertising // account is 100. // -// https://vk.com/dev/ads.createTargetGroup +// https://dev.vk.com/method/ads.createTargetGroup func (vk *VK) AdsCreateTargetGroup(params Params) (response AdsCreateTargetGroupResponse, err error) { err = vk.RequestUnmarshal("ads.createTargetGroup", &response, params) return @@ -175,7 +175,7 @@ type AdsCreateTargetPixelResponse struct { // // Maximum pixels number per advertising account is 25. // -// https://vk.com/dev/ads.createTargetPixel +// https://dev.vk.com/method/ads.createTargetPixel func (vk *VK) AdsCreateTargetPixel(params Params) (response AdsCreateTargetPixelResponse, err error) { err = vk.RequestUnmarshal("ads.createTargetPixel", &response, params) return @@ -190,7 +190,7 @@ type AdsDeleteAdsResponse []ErrorType // // Warning! Maximum allowed number of ads archived in one request is 100. // -// https://vk.com/dev/ads.deleteAds +// https://dev.vk.com/method/ads.deleteAds func (vk *VK) AdsDeleteAds(params Params) (response AdsDeleteAdsResponse, err error) { err = vk.RequestUnmarshal("ads.deleteAds", &response, params) return @@ -205,7 +205,7 @@ type AdsDeleteCampaignsResponse []ErrorType // // Warning! Maximum allowed number of campaigns archived in one request is 100. // -// https://vk.com/dev/ads.deleteCampaigns +// https://dev.vk.com/method/ads.deleteCampaigns func (vk *VK) AdsDeleteCampaigns(params Params) (response AdsDeleteCampaignsResponse, err error) { err = vk.RequestUnmarshal("ads.deleteCampaigns", &response, params) return @@ -222,7 +222,7 @@ type AdsDeleteClientsResponse []ErrorType // // Please note! Maximum allowed number of clients edited in one request is 10. // -// https://vk.com/dev/ads.deleteClients +// https://dev.vk.com/method/ads.deleteClients func (vk *VK) AdsDeleteClients(params Params) (response AdsDeleteClientsResponse, err error) { err = vk.RequestUnmarshal("ads.deleteClients", &response, params) return @@ -230,7 +230,7 @@ func (vk *VK) AdsDeleteClients(params Params) (response AdsDeleteClientsResponse // AdsDeleteTargetGroup deletes target group. // -// https://vk.com/dev/ads.deleteTargetGroup +// https://dev.vk.com/method/ads.deleteTargetGroup func (vk *VK) AdsDeleteTargetGroup(params Params) (response int, err error) { err = vk.RequestUnmarshal("ads.deleteTargetGroup", &response, params) return @@ -238,7 +238,7 @@ func (vk *VK) AdsDeleteTargetGroup(params Params) (response int, err error) { // AdsDeleteTargetPixel deletes target pixel. // -// https://vk.com/dev/ads.deleteTargetPixel +// https://dev.vk.com/method/ads.deleteTargetPixel func (vk *VK) AdsDeleteTargetPixel(params Params) (response int, err error) { err = vk.RequestUnmarshal("ads.deleteTargetPixel", &response, params) return @@ -249,7 +249,7 @@ type AdsGetAccountsResponse []object.AdsAccount // AdsGetAccounts returns a list of advertising accounts. // -// https://vk.com/dev/ads.getAccounts +// https://dev.vk.com/method/ads.getAccounts func (vk *VK) AdsGetAccounts(params Params) (response AdsGetAccountsResponse, err error) { err = vk.RequestUnmarshal("ads.getAccounts", &response, params) return @@ -260,7 +260,7 @@ type AdsGetAdsResponse []object.AdsAd // AdsGetAds returns a list of ads. // -// https://vk.com/dev/ads.getAds +// https://dev.vk.com/method/ads.getAds func (vk *VK) AdsGetAds(params Params) (response AdsGetAdsResponse, err error) { err = vk.RequestUnmarshal("ads.getAds", &response, params) return @@ -271,7 +271,7 @@ type AdsGetAdsLayoutResponse []object.AdsAdLayout // AdsGetAdsLayout returns descriptions of ad layouts. // -// https://vk.com/dev/ads.getAdsLayout +// https://dev.vk.com/method/ads.getAdsLayout func (vk *VK) AdsGetAdsLayout(params Params) (response AdsGetAdsLayoutResponse, err error) { err = vk.RequestUnmarshal("ads.getAdsLayout", &response, params) return @@ -282,7 +282,7 @@ func (vk *VK) AdsGetAdsLayout(params Params) (response AdsGetAdsLayoutResponse, // TODO: AdsGetAdsTargeting ... // -// https://vk.com/dev/ads.getAdsTargeting +// https://dev.vk.com/method/ads.getAdsTargeting // func (vk *VK) AdsGetAdsTargeting(params Params) (response AdsGetAdsTargetingResponse, err error) { // err = vk.RequestUnmarshal("ads.getAdsTargeting", &response, params) // return @@ -293,7 +293,7 @@ func (vk *VK) AdsGetAdsLayout(params Params) (response AdsGetAdsLayoutResponse, // TODO: AdsGetBudget ... // -// https://vk.com/dev/ads.getBudget +// https://dev.vk.com/method/ads.getBudget // func (vk *VK) AdsGetBudget(params Params) (response AdsGetBudgetResponse, err error) { // err = vk.RequestUnmarshal("ads.getBudget", &response, params) // return @@ -304,7 +304,7 @@ func (vk *VK) AdsGetAdsLayout(params Params) (response AdsGetAdsLayoutResponse, // TODO: AdsGetCampaigns ... // -// https://vk.com/dev/ads.getCampaigns +// https://dev.vk.com/method/ads.getCampaigns // func (vk *VK) AdsGetCampaigns(params Params) (response AdsGetCampaignsResponse, err error) { // err = vk.RequestUnmarshal("ads.getCampaigns", &response, params) // return @@ -315,7 +315,7 @@ func (vk *VK) AdsGetAdsLayout(params Params) (response AdsGetAdsLayoutResponse, // TODO: AdsGetCategories ... // -// https://vk.com/dev/ads.getCategories +// https://dev.vk.com/method/ads.getCategories // func (vk *VK) AdsGetCategories(params Params) (response AdsGetCategoriesResponse, err error) { // err = vk.RequestUnmarshal("ads.getCategories", &response, params) // return @@ -326,7 +326,7 @@ func (vk *VK) AdsGetAdsLayout(params Params) (response AdsGetAdsLayoutResponse, // TODO: AdsGetClients ... // -// https://vk.com/dev/ads.getClients +// https://dev.vk.com/method/ads.getClients // func (vk *VK) AdsGetClients(params Params) (response AdsGetClientsResponse, err error) { // err = vk.RequestUnmarshal("ads.getClients", &response, params) // return @@ -337,7 +337,7 @@ func (vk *VK) AdsGetAdsLayout(params Params) (response AdsGetAdsLayoutResponse, // TODO: AdsGetDemographics ... // -// https://vk.com/dev/ads.getDemographics +// https://dev.vk.com/method/ads.getDemographics // func (vk *VK) AdsGetDemographics(params Params) (response AdsGetDemographicsResponse, err error) { // err = vk.RequestUnmarshal("ads.getDemographics", &response, params) // return @@ -348,7 +348,7 @@ func (vk *VK) AdsGetAdsLayout(params Params) (response AdsGetAdsLayoutResponse, // TODO: AdsGetFloodStats ... // -// https://vk.com/dev/ads.getFloodStats +// https://dev.vk.com/method/ads.getFloodStats // func (vk *VK) AdsGetFloodStats(params Params) (response AdsGetFloodStatsResponse, err error) { // err = vk.RequestUnmarshal("ads.getFloodStats", &response, params) // return @@ -359,7 +359,7 @@ func (vk *VK) AdsGetAdsLayout(params Params) (response AdsGetAdsLayoutResponse, // TODO: AdsGetLookalikeRequests ... // -// https://vk.com/dev/ads.getLookalikeRequests +// https://dev.vk.com/method/ads.getLookalikeRequests // func (vk *VK) AdsGetLookalikeRequests(params Params) (response AdsGetLookalikeRequestsResponse, err error) { // err = vk.RequestUnmarshal("ads.getLookalikeRequests", &response, params) // return @@ -372,7 +372,7 @@ type AdsGetMusiciansResponse struct { // AdsGetMusicians returns a list of musicians. // -// https://vk.com/dev/ads.getMusicians +// https://dev.vk.com/method/ads.getMusicians func (vk *VK) AdsGetMusicians(params Params) (response AdsGetMusiciansResponse, err error) { err = vk.RequestUnmarshal("ads.getMusicians", &response, params) return @@ -383,7 +383,7 @@ func (vk *VK) AdsGetMusicians(params Params) (response AdsGetMusiciansResponse, // TODO: AdsGetOfficeUsers ... // -// https://vk.com/dev/ads.getOfficeUsers +// https://dev.vk.com/method/ads.getOfficeUsers // func (vk *VK) AdsGetOfficeUsers(params Params) (response AdsGetOfficeUsersResponse, err error) { // err = vk.RequestUnmarshal("ads.getOfficeUsers", &response, params) // return @@ -394,7 +394,7 @@ func (vk *VK) AdsGetMusicians(params Params) (response AdsGetMusiciansResponse, // TODO: AdsGetPostsReach ... // -// https://vk.com/dev/ads.getPostsReach +// https://dev.vk.com/method/ads.getPostsReach // func (vk *VK) AdsGetPostsReach(params Params) (response AdsGetPostsReachResponse, err error) { // err = vk.RequestUnmarshal("ads.getPostsReach", &response, params) // return @@ -405,7 +405,7 @@ func (vk *VK) AdsGetMusicians(params Params) (response AdsGetMusiciansResponse, // TODO: AdsGetRejectionReason ... // -// https://vk.com/dev/ads.getRejectionReason +// https://dev.vk.com/method/ads.getRejectionReason // func (vk *VK) AdsGetRejectionReason(params Params) (response AdsGetRejectionReasonResponse, err error) { // err = vk.RequestUnmarshal("ads.getRejectionReason", &response, params) // return @@ -416,7 +416,7 @@ func (vk *VK) AdsGetMusicians(params Params) (response AdsGetMusiciansResponse, // TODO: AdsGetStatistics ... // -// https://vk.com/dev/ads.getStatistics +// https://dev.vk.com/method/ads.getStatistics // func (vk *VK) AdsGetStatistics(params Params) (response AdsGetStatisticsResponse, err error) { // err = vk.RequestUnmarshal("ads.getStatistics", &response, params) // return @@ -427,7 +427,7 @@ func (vk *VK) AdsGetMusicians(params Params) (response AdsGetMusiciansResponse, // TODO: AdsGetSuggestions ... // -// https://vk.com/dev/ads.getSuggestions +// https://dev.vk.com/method/ads.getSuggestions // func (vk *VK) AdsGetSuggestions(params Params) (response AdsGetSuggestionsResponse, err error) { // err = vk.RequestUnmarshal("ads.getSuggestions", &response, params) // return @@ -438,7 +438,7 @@ type AdsGetTargetGroupsResponse []object.AdsTargetGroup // AdsGetTargetGroups returns a list of target groups. // -// https://vk.com/dev/ads.getTargetGroups +// https://dev.vk.com/method/ads.getTargetGroups func (vk *VK) AdsGetTargetGroups(params Params) (response AdsGetTargetGroupsResponse, err error) { err = vk.RequestUnmarshal("ads.getTargetGroups", &response, params) return @@ -449,7 +449,7 @@ func (vk *VK) AdsGetTargetGroups(params Params) (response AdsGetTargetGroupsResp // TODO: AdsGetTargetPixels ... // -// https://vk.com/dev/ads.getTargetPixels +// https://dev.vk.com/method/ads.getTargetPixels // func (vk *VK) AdsGetTargetPixels(params Params) (response AdsGetTargetPixelsResponse, err error) { // err = vk.RequestUnmarshal("ads.getTargetPixels", &response, params) // return @@ -460,7 +460,7 @@ func (vk *VK) AdsGetTargetGroups(params Params) (response AdsGetTargetGroupsResp // TODO: AdsGetTargetingStats ... // -// https://vk.com/dev/ads.getTargetingStats +// https://dev.vk.com/method/ads.getTargetingStats // func (vk *VK) AdsGetTargetingStats(params Params) (response AdsGetTargetingStatsResponse, err error) { // err = vk.RequestUnmarshal("ads.getTargetingStats", &response, params) // return @@ -471,7 +471,7 @@ func (vk *VK) AdsGetTargetGroups(params Params) (response AdsGetTargetGroupsResp // TODO: AdsGetUploadURL ... // -// https://vk.com/dev/ads.getUploadURL +// https://dev.vk.com/method/ads.getUploadURL // func (vk *VK) AdsGetUploadURL(params Params) (response AdsGetUploadURLResponse, err error) { // err = vk.RequestUnmarshal("ads.getUploadURL", &response, params) // return @@ -482,7 +482,7 @@ func (vk *VK) AdsGetTargetGroups(params Params) (response AdsGetTargetGroupsResp // TODO: AdsGetVideoUploadURL ... // -// https://vk.com/dev/ads.getVideoUploadURL +// https://dev.vk.com/method/ads.getVideoUploadURL // func (vk *VK) AdsGetVideoUploadURL(params Params) (response AdsGetVideoUploadURLResponse, err error) { // err = vk.RequestUnmarshal("ads.getVideoUploadURL", &response, params) // return @@ -493,7 +493,7 @@ func (vk *VK) AdsGetTargetGroups(params Params) (response AdsGetTargetGroupsResp // TODO: AdsImportTargetContacts ... // -// https://vk.com/dev/ads.importTargetContacts +// https://dev.vk.com/method/ads.importTargetContacts // func (vk *VK) AdsImportTargetContacts(params Params) (response AdsImportTargetContactsResponse, err error) { // err = vk.RequestUnmarshal("ads.importTargetContacts", &response, params) // return @@ -504,7 +504,7 @@ func (vk *VK) AdsGetTargetGroups(params Params) (response AdsGetTargetGroupsResp // TODO: AdsRemoveOfficeUsers ... // -// https://vk.com/dev/ads.removeOfficeUsers +// https://dev.vk.com/method/ads.removeOfficeUsers // func (vk *VK) AdsRemoveOfficeUsers(params Params) (response AdsRemoveOfficeUsersResponse, err error) { // err = vk.RequestUnmarshal("ads.removeOfficeUsers", &response, params) // return @@ -518,7 +518,7 @@ func (vk *VK) AdsGetTargetGroups(params Params) (response AdsGetTargetGroupsResp // // Contacts are excluded within a few hours of the request. // -// https://vk.com/dev/ads.removeTargetContacts +// https://dev.vk.com/method/ads.removeTargetContacts func (vk *VK) AdsRemoveTargetContacts(params Params) (response int, err error) { err = vk.RequestUnmarshal("ads.removeTargetContacts", &response, params) return @@ -529,7 +529,7 @@ func (vk *VK) AdsRemoveTargetContacts(params Params) (response int, err error) { // TODO: AdsSaveLookalikeRequestResult ... // -// https://vk.com/dev/ads.saveLookalikeRequestResult +// https://dev.vk.com/method/ads.saveLookalikeRequestResult // func (vk *VK) AdsSaveLookalikeRequestResult(params Params) ( // response AdsSaveLookalikeRequestResultResponse, // err error, @@ -543,7 +543,7 @@ func (vk *VK) AdsRemoveTargetContacts(params Params) (response int, err error) { // TODO: AdsShareTargetGroup ... // -// https://vk.com/dev/ads.shareTargetGroup +// https://dev.vk.com/method/ads.shareTargetGroup // func (vk *VK) AdsShareTargetGroup(params Params) (response AdsShareTargetGroupResponse, err error) { // err = vk.RequestUnmarshal("ads.shareTargetGroup", &response, params) // return @@ -554,7 +554,7 @@ func (vk *VK) AdsRemoveTargetContacts(params Params) (response int, err error) { // TODO: AdsUpdateAds ... // -// https://vk.com/dev/ads.updateAds +// https://dev.vk.com/method/ads.updateAds // func (vk *VK) AdsUpdateAds(params Params) (response AdsUpdateAdsResponse, err error) { // err = vk.RequestUnmarshal("ads.updateAds", &response, params) // return @@ -565,7 +565,7 @@ func (vk *VK) AdsRemoveTargetContacts(params Params) (response int, err error) { // TODO: AdsUpdateCampaigns ... // -// https://vk.com/dev/ads.updateCampaigns +// https://dev.vk.com/method/ads.updateCampaigns // func (vk *VK) AdsUpdateCampaigns(params Params) (response AdsUpdateCampaignsResponse, err error) { // err = vk.RequestUnmarshal("ads.updateCampaigns", &response, params) // return @@ -576,7 +576,7 @@ func (vk *VK) AdsRemoveTargetContacts(params Params) (response int, err error) { // TODO: AdsUpdateClients ... // -// https://vk.com/dev/ads.updateClients +// https://dev.vk.com/method/ads.updateClients // func (vk *VK) AdsUpdateClients(params Params) (response AdsUpdateClientsResponse, err error) { // err = vk.RequestUnmarshal("ads.updateClients", &response, params) // return @@ -584,7 +584,7 @@ func (vk *VK) AdsRemoveTargetContacts(params Params) (response int, err error) { // AdsUpdateTargetGroup edits target group. // -// https://vk.com/dev/ads.updateTargetGroup +// https://dev.vk.com/method/ads.updateTargetGroup func (vk *VK) AdsUpdateTargetGroup(params Params) (response int, err error) { err = vk.RequestUnmarshal("ads.updateTargetGroup", &response, params) return @@ -592,7 +592,7 @@ func (vk *VK) AdsUpdateTargetGroup(params Params) (response int, err error) { // AdsUpdateTargetPixel edits target pixel. // -// https://vk.com/dev/ads.updateTargetPixel +// https://dev.vk.com/method/ads.updateTargetPixel func (vk *VK) AdsUpdateTargetPixel(params Params) (response int, err error) { err = vk.RequestUnmarshal("ads. updateTargetPixel", &response, params) return diff --git a/api/api.go b/api/api.go index 26ea9816..892e6b45 100644 --- a/api/api.go +++ b/api/api.go @@ -1,7 +1,7 @@ /* Package api implements VK API. -See more https://vk.com/dev/api_requests +See more https://dev.vk.com/ru/api/api-requests */ package api // import "github.com/SevereCloud/vksdk/v2/api" @@ -46,7 +46,7 @@ const ( // 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 +// you can read them on this page - https://dev.vk.com/ru/method/ads // // If one of this limits is exceeded, the server will return following error: // "Too many requests per second". (errors.TooMany). @@ -58,7 +58,7 @@ const ( // 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), +// require entering a captcha (see https://dev.vk.com/ru/api/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). @@ -78,7 +78,7 @@ const ( // // captcha_key - text entered by the user. // -// More info: https://vk.com/dev/api_requests +// More info: https://dev.vk.com/ru/api/api-requests const ( LimitUserToken = 3 LimitGroupToken = 20 @@ -169,7 +169,7 @@ func (p Params) TestMode(v bool) Params { // CaptchaSID received ID. // -// See https://vk.com/dev/captcha_error +// See https://dev.vk.com/ru/api/captcha-error func (p Params) CaptchaSID(v string) Params { p["captcha_sid"] = v return p @@ -177,7 +177,7 @@ func (p Params) CaptchaSID(v string) Params { // CaptchaKey text input. // -// See https://vk.com/dev/captcha_error +// See https://dev.vk.com/ru/api/captcha-error func (p Params) CaptchaKey(v string) Params { p["captcha_key"] = v return p @@ -185,7 +185,7 @@ func (p Params) CaptchaKey(v string) Params { // Confirm parameter. // -// See https://vk.com/dev/need_confirmation +// See https://dev.vk.com/ru/api/confirmation-required-error func (p Params) Confirm(v bool) Params { p["confirm"] = v return p diff --git a/api/apps.go b/api/apps.go index f6f1742b..d08c0902 100644 --- a/api/apps.go +++ b/api/apps.go @@ -6,7 +6,7 @@ import ( // AppsAddUsersToTestingGroup method. // -// https://vk.com/dev/apps.addUsersToTestingGroup +// https://dev.vk.com/method/apps.addUsersToTestingGroup func (vk *VK) AppsAddUsersToTestingGroup(params Params) (response int, err error) { err = vk.RequestUnmarshal("apps.addUsersToTestingGroup", &response, params) return @@ -14,7 +14,7 @@ func (vk *VK) AppsAddUsersToTestingGroup(params Params) (response int, err error // AppsDeleteAppRequests deletes all request notifications from the current app. // -// https://vk.com/dev/apps.deleteAppRequests +// https://dev.vk.com/method/apps.deleteAppRequests func (vk *VK) AppsDeleteAppRequests(params Params) (response int, err error) { err = vk.RequestUnmarshal("apps.deleteAppRequests", &response, params) return @@ -29,7 +29,7 @@ type AppsGetResponse struct { // AppsGet returns applications data. // -// https://vk.com/dev/apps.get +// https://dev.vk.com/method/apps.get func (vk *VK) AppsGet(params Params) (response AppsGetResponse, err error) { err = vk.RequestUnmarshal("apps.get", &response, params) return @@ -44,7 +44,7 @@ type AppsGetCatalogResponse struct { // AppsGetCatalog returns a list of applications (apps) available to users in the App Catalog. // -// https://vk.com/dev/apps.getCatalog +// https://dev.vk.com/method/apps.getCatalog func (vk *VK) AppsGetCatalog(params Params) (response AppsGetCatalogResponse, err error) { err = vk.RequestUnmarshal("apps.getCatalog", &response, params) return @@ -60,7 +60,7 @@ type AppsGetFriendsListResponse struct { // // extended=0 // -// https://vk.com/dev/apps.getFriendsList +// https://dev.vk.com/method/apps.getFriendsList func (vk *VK) AppsGetFriendsList(params Params) (response AppsGetFriendsListResponse, err error) { err = vk.RequestUnmarshal("apps.getFriendsList", &response, params, Params{"extended": false}) @@ -77,7 +77,7 @@ type AppsGetFriendsListExtendedResponse struct { // // extended=1 // -// https://vk.com/dev/apps.getFriendsList +// https://dev.vk.com/method/apps.getFriendsList func (vk *VK) AppsGetFriendsListExtended(params Params) (response AppsGetFriendsListExtendedResponse, err error) { err = vk.RequestUnmarshal("apps.getFriendsList", &response, params, Params{"extended": true}) @@ -94,7 +94,7 @@ type AppsGetLeaderboardResponse struct { // // extended=0 // -// https://vk.com/dev/apps.getLeaderboard +// https://dev.vk.com/method/apps.getLeaderboard func (vk *VK) AppsGetLeaderboard(params Params) (response AppsGetLeaderboardResponse, err error) { err = vk.RequestUnmarshal("apps.getLeaderboard", &response, params, Params{"extended": false}) @@ -115,7 +115,7 @@ type AppsGetLeaderboardExtendedResponse struct { // // extended=1 // -// https://vk.com/dev/apps.getLeaderboard +// https://dev.vk.com/method/apps.getLeaderboard func (vk *VK) AppsGetLeaderboardExtended(params Params) (response AppsGetLeaderboardExtendedResponse, err error) { err = vk.RequestUnmarshal("apps.getLeaderboard", &response, params, Params{"extended": true}) @@ -132,7 +132,7 @@ type AppsGetScopesResponse struct { // // TODO: write docs. // -// https://vk.com/dev/apps.getScopes +// https://dev.vk.com/method/apps.getScopes func (vk *VK) AppsGetScopes(params Params) (response AppsGetScopesResponse, err error) { err = vk.RequestUnmarshal("apps.getScopes", &response, params) return @@ -142,7 +142,7 @@ func (vk *VK) AppsGetScopes(params Params) (response AppsGetScopesResponse, err // // NOTE: vk wtf!? // -// https://vk.com/dev/apps.getScore +// https://dev.vk.com/method/apps.getScore func (vk *VK) AppsGetScore(params Params) (response string, err error) { err = vk.RequestUnmarshal("apps.getScore", &response, params) return @@ -153,7 +153,7 @@ type AppsGetTestingGroupsResponse []object.AppsTestingGroup // AppsGetTestingGroups method. // -// https://vk.com/dev/apps.getTestingGroups +// https://dev.vk.com/method/apps.getTestingGroups func (vk *VK) AppsGetTestingGroups(params Params) (response AppsGetTestingGroupsResponse, err error) { err = vk.RequestUnmarshal("apps.getTestingGroups", &response, params) return @@ -161,7 +161,7 @@ func (vk *VK) AppsGetTestingGroups(params Params) (response AppsGetTestingGroups // AppsRemoveTestingGroup method. // -// https://vk.com/dev/apps.removeTestingGroup +// https://dev.vk.com/method/apps.removeTestingGroup func (vk *VK) AppsRemoveTestingGroup(params Params) (response int, err error) { err = vk.RequestUnmarshal("apps.removeTestingGroup", &response, params) return @@ -169,7 +169,7 @@ func (vk *VK) AppsRemoveTestingGroup(params Params) (response int, err error) { // AppsRemoveUsersFromTestingGroups method. // -// https://vk.com/dev/apps.removeUsersFromTestingGroups +// https://dev.vk.com/method/apps.removeUsersFromTestingGroups func (vk *VK) AppsRemoveUsersFromTestingGroups(params Params) (response int, err error) { err = vk.RequestUnmarshal("apps.removeUsersFromTestingGroups", &response, params) return @@ -177,7 +177,7 @@ func (vk *VK) AppsRemoveUsersFromTestingGroups(params Params) (response int, err // AppsSendRequest sends a request to another user in an app that uses VK authorization. // -// https://vk.com/dev/apps.sendRequest +// https://dev.vk.com/method/apps.sendRequest func (vk *VK) AppsSendRequest(params Params) (response int, err error) { err = vk.RequestUnmarshal("apps.sendRequest", &response, params) return @@ -190,7 +190,7 @@ type AppsUpdateMetaForTestingGroupResponse struct { // AppsUpdateMetaForTestingGroup method. // -// https://vk.com/dev/apps.updateMetaForTestingGroup +// https://dev.vk.com/method/apps.updateMetaForTestingGroup func (vk *VK) AppsUpdateMetaForTestingGroup(params Params) (response AppsUpdateMetaForTestingGroupResponse, err error) { err = vk.RequestUnmarshal("apps.updateMetaForTestingGroup", &response, params) return diff --git a/api/appwidgets.go b/api/appwidgets.go index 5500d0e2..27222f48 100644 --- a/api/appwidgets.go +++ b/api/appwidgets.go @@ -12,7 +12,7 @@ type AppWidgetsGetAppImageUploadServerResponse struct { // AppWidgetsGetAppImageUploadServer returns a URL for uploading a // photo to the app collection for community app widgets. // -// https://vk.com/dev/appWidgets.getAppImageUploadServer +// https://dev.vk.com/method/appWidgets.getAppImageUploadServer func (vk *VK) AppWidgetsGetAppImageUploadServer(params Params) ( response AppWidgetsGetAppImageUploadServerResponse, err error, @@ -29,7 +29,7 @@ type AppWidgetsGetAppImagesResponse struct { // AppWidgetsGetAppImages returns an app collection of images for community app widgets. // -// https://vk.com/dev/appWidgets.getAppImages +// https://dev.vk.com/method/appWidgets.getAppImages func (vk *VK) AppWidgetsGetAppImages(params Params) (response AppWidgetsGetAppImagesResponse, err error) { err = vk.RequestUnmarshal("appWidgets.getAppImages", &response, params) return @@ -43,7 +43,7 @@ type AppWidgetsGetGroupImageUploadServerResponse struct { // AppWidgetsGetGroupImageUploadServer returns a URL for uploading // a photo to the community collection for community app widgets. // -// https://vk.com/dev/appWidgets.getGroupImageUploadServer +// https://dev.vk.com/method/appWidgets.getGroupImageUploadServer func (vk *VK) AppWidgetsGetGroupImageUploadServer(params Params) ( response AppWidgetsGetGroupImageUploadServerResponse, err error, @@ -60,7 +60,7 @@ type AppWidgetsGetGroupImagesResponse struct { // AppWidgetsGetGroupImages returns a community collection of images for community app widgets. // -// https://vk.com/dev/appWidgets.getGroupImages +// https://dev.vk.com/method/appWidgets.getGroupImages func (vk *VK) AppWidgetsGetGroupImages(params Params) (response AppWidgetsGetGroupImagesResponse, err error) { err = vk.RequestUnmarshal("appWidgets.getGroupImages", &response, params) return @@ -68,7 +68,7 @@ func (vk *VK) AppWidgetsGetGroupImages(params Params) (response AppWidgetsGetGro // AppWidgetsGetImagesByID returns an image for community app widgets by its ID. // -// https://vk.com/dev/appWidgets.getImagesById +// https://dev.vk.com/method/appWidgets.getImagesById func (vk *VK) AppWidgetsGetImagesByID(params Params) (response object.AppWidgetsImage, err error) { err = vk.RequestUnmarshal("appWidgets.getImagesById", &response, params) return @@ -76,7 +76,7 @@ func (vk *VK) AppWidgetsGetImagesByID(params Params) (response object.AppWidgets // AppWidgetsSaveAppImage allows to save image into app collection for community app widgets. // -// https://vk.com/dev/appWidgets.saveAppImage +// https://dev.vk.com/method/appWidgets.saveAppImage func (vk *VK) AppWidgetsSaveAppImage(params Params) (response object.AppWidgetsImage, err error) { err = vk.RequestUnmarshal("appWidgets.saveAppImage", &response, params) return @@ -84,7 +84,7 @@ func (vk *VK) AppWidgetsSaveAppImage(params Params) (response object.AppWidgetsI // AppWidgetsSaveGroupImage allows to save image into community collection for community app widgets. // -// https://vk.com/dev/appWidgets.saveGroupImage +// https://dev.vk.com/method/appWidgets.saveGroupImage func (vk *VK) AppWidgetsSaveGroupImage(params Params) (response object.AppWidgetsImage, err error) { err = vk.RequestUnmarshal("appWidgets.saveGroupImage", &response, params) return @@ -92,7 +92,7 @@ func (vk *VK) AppWidgetsSaveGroupImage(params Params) (response object.AppWidget // AppWidgetsUpdate allows to update community app widget. // -// https://vk.com/dev/appWidgets.update +// https://dev.vk.com/method/appWidgets.update func (vk *VK) AppWidgetsUpdate(params Params) (response int, err error) { err = vk.RequestUnmarshal("appWidgets.update", &response, params) diff --git a/api/auth.go b/api/auth.go index df5b76d7..44601172 100644 --- a/api/auth.go +++ b/api/auth.go @@ -6,7 +6,7 @@ import ( // AuthCheckPhone checks a user's phone number for correctness. // -// https://vk.com/dev/auth.checkPhone +// https://dev.vk.com/method/auth.checkPhone // // Deprecated: This method is deprecated and may be disabled soon, please avoid // using it. @@ -23,7 +23,7 @@ type AuthRestoreResponse struct { // AuthRestore allows to restore account access using a code received via SMS. // -// https://vk.com/dev/auth.restore +// https://dev.vk.com/method/auth.restore func (vk *VK) AuthRestore(params Params) (response AuthRestoreResponse, err error) { err = vk.RequestUnmarshal("auth.restore", &response, params) return diff --git a/api/board.go b/api/board.go index de5aeaae..d61fd730 100644 --- a/api/board.go +++ b/api/board.go @@ -6,7 +6,7 @@ import ( // BoardAddTopic creates a new topic on a community's discussion board. // -// https://vk.com/dev/board.addTopic +// https://dev.vk.com/method/board.addTopic func (vk *VK) BoardAddTopic(params Params) (response int, err error) { err = vk.RequestUnmarshal("board.addTopic", &response, params) return @@ -14,7 +14,7 @@ func (vk *VK) BoardAddTopic(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 +// https://dev.vk.com/method/board.closeTopic func (vk *VK) BoardCloseTopic(params Params) (response int, err error) { err = vk.RequestUnmarshal("board.closeTopic", &response, params) return @@ -22,7 +22,7 @@ func (vk *VK) BoardCloseTopic(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 +// https://dev.vk.com/method/board.createComment func (vk *VK) BoardCreateComment(params Params) (response int, err error) { err = vk.RequestUnmarshal("board.createComment", &response, params) return @@ -30,7 +30,7 @@ func (vk *VK) BoardCreateComment(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 +// https://dev.vk.com/method/board.deleteComment func (vk *VK) BoardDeleteComment(params Params) (response int, err error) { err = vk.RequestUnmarshal("board.deleteComment", &response, params) return @@ -38,7 +38,7 @@ func (vk *VK) BoardDeleteComment(params Params) (response int, err error) { // BoardDeleteTopic deletes a topic from a community's discussion board. // -// https://vk.com/dev/board.deleteTopic +// https://dev.vk.com/method/board.deleteTopic func (vk *VK) BoardDeleteTopic(params Params) (response int, err error) { err = vk.RequestUnmarshal("board.deleteTopic", &response, params) return @@ -46,7 +46,7 @@ func (vk *VK) BoardDeleteTopic(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 +// https://dev.vk.com/method/board.editComment func (vk *VK) BoardEditComment(params Params) (response int, err error) { err = vk.RequestUnmarshal("board.editComment", &response, params) return @@ -54,7 +54,7 @@ func (vk *VK) BoardEditComment(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 +// https://dev.vk.com/method/board.editTopic func (vk *VK) BoardEditTopic(params Params) (response int, err error) { err = vk.RequestUnmarshal("board.editTopic", &response, params) return @@ -62,7 +62,7 @@ func (vk *VK) BoardEditTopic(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 +// https://dev.vk.com/method/board.fixTopic func (vk *VK) BoardFixTopic(params Params) (response int, err error) { err = vk.RequestUnmarshal("board.fixTopic", &response, params) return @@ -80,7 +80,7 @@ type BoardGetCommentsResponse struct { // // extended=0 // -// https://vk.com/dev/board.getComments +// https://dev.vk.com/method/board.getComments func (vk *VK) BoardGetComments(params Params) (response BoardGetCommentsResponse, err error) { err = vk.RequestUnmarshal("board.getComments", &response, params, Params{"extended": false}) @@ -101,7 +101,7 @@ type BoardGetCommentsExtendedResponse struct { // // extended=1 // -// https://vk.com/dev/board.getComments +// https://dev.vk.com/method/board.getComments func (vk *VK) BoardGetCommentsExtended(params Params) (response BoardGetCommentsExtendedResponse, err error) { err = vk.RequestUnmarshal("board.getComments", &response, params, Params{"extended": true}) @@ -120,7 +120,7 @@ type BoardGetTopicsResponse struct { // // extended=0 // -// https://vk.com/dev/board.getTopics +// https://dev.vk.com/method/board.getTopics func (vk *VK) BoardGetTopics(params Params) (response BoardGetTopicsResponse, err error) { err = vk.RequestUnmarshal("board.getTopics", &response, params, Params{"extended": false}) @@ -141,7 +141,7 @@ type BoardGetTopicsExtendedResponse struct { // // extended=1 // -// https://vk.com/dev/board.getTopics +// https://dev.vk.com/method/board.getTopics func (vk *VK) BoardGetTopicsExtended(params Params) (response BoardGetTopicsExtendedResponse, err error) { err = vk.RequestUnmarshal("board.getTopics", &response, params, Params{"extended": true}) @@ -150,7 +150,7 @@ func (vk *VK) BoardGetTopicsExtended(params Params) (response BoardGetTopicsExte // BoardOpenTopic re-opens a previously closed topic on a community's discussion board. // -// https://vk.com/dev/board.openTopic +// https://dev.vk.com/method/board.openTopic func (vk *VK) BoardOpenTopic(params Params) (response int, err error) { err = vk.RequestUnmarshal("board.openTopic", &response, params) return @@ -158,7 +158,7 @@ func (vk *VK) BoardOpenTopic(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 +// https://dev.vk.com/method/board.restoreComment func (vk *VK) BoardRestoreComment(params Params) (response int, err error) { err = vk.RequestUnmarshal("board.restoreComment", &response, params) return @@ -166,7 +166,7 @@ func (vk *VK) BoardRestoreComment(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 +// https://dev.vk.com/method/board.unfixTopic func (vk *VK) BoardUnfixTopic(params Params) (response int, err error) { err = vk.RequestUnmarshal("board.unfixTopic", &response, params) return diff --git a/api/calls.go b/api/calls.go index 32a51cf2..3c30c057 100644 --- a/api/calls.go +++ b/api/calls.go @@ -8,7 +8,7 @@ type CallsStartResponse struct { // CallsStart method. // -// https://vk.com/dev/calls.start +// https://dev.vk.com/method/calls.start func (vk *VK) CallsStart(params Params) (response CallsStartResponse, err error) { err = vk.RequestUnmarshal("calls.start", &response, params) return @@ -16,7 +16,7 @@ func (vk *VK) CallsStart(params Params) (response CallsStartResponse, err error) // CallsForceFinish method. // -// https://vk.com/dev/calls.forceFinish +// https://dev.vk.com/method/calls.forceFinish func (vk *VK) CallsForceFinish(params Params) (response int, err error) { err = vk.RequestUnmarshal("calls.forceFinish", &response, params) return diff --git a/api/database.go b/api/database.go index 9a199762..20ab96de 100644 --- a/api/database.go +++ b/api/database.go @@ -12,7 +12,7 @@ type DatabaseGetChairsResponse struct { // DatabaseGetChairs returns list of chairs on a specified faculty. // -// https://vk.com/dev/database.getChairs +// https://dev.vk.com/method/database.getChairs func (vk *VK) DatabaseGetChairs(params Params) (response DatabaseGetChairsResponse, err error) { err = vk.RequestUnmarshal("database.getChairs", &response, params) return @@ -26,7 +26,7 @@ type DatabaseGetCitiesResponse struct { // DatabaseGetCities returns a list of cities. // -// https://vk.com/dev/database.getCities +// https://dev.vk.com/method/database.getCities func (vk *VK) DatabaseGetCities(params Params) (response DatabaseGetCitiesResponse, err error) { err = vk.RequestUnmarshal("database.getCities", &response, params) return @@ -37,7 +37,7 @@ type DatabaseGetCitiesByIDResponse []object.DatabaseCity // DatabaseGetCitiesByID returns information about cities by their IDs. // -// https://vk.com/dev/database.getCitiesByID +// https://dev.vk.com/method/database.getCitiesByID func (vk *VK) DatabaseGetCitiesByID(params Params) (response DatabaseGetCitiesByIDResponse, err error) { err = vk.RequestUnmarshal("database.getCitiesById", &response, params) return @@ -51,7 +51,7 @@ type DatabaseGetCountriesResponse struct { // DatabaseGetCountries returns a list of countries. // -// https://vk.com/dev/database.getCountries +// https://dev.vk.com/method/database.getCountries func (vk *VK) DatabaseGetCountries(params Params) (response DatabaseGetCountriesResponse, err error) { err = vk.RequestUnmarshal("database.getCountries", &response, params) return @@ -62,7 +62,7 @@ type DatabaseGetCountriesByIDResponse []object.BaseObject // DatabaseGetCountriesByID returns information about countries by their IDs. // -// https://vk.com/dev/database.getCountriesByID +// https://dev.vk.com/method/database.getCountriesByID func (vk *VK) DatabaseGetCountriesByID(params Params) (response DatabaseGetCountriesByIDResponse, err error) { err = vk.RequestUnmarshal("database.getCountriesById", &response, params) return @@ -76,7 +76,7 @@ type DatabaseGetFacultiesResponse struct { // DatabaseGetFaculties returns a list of faculties (i.e., university departments). // -// https://vk.com/dev/database.getFaculties +// https://dev.vk.com/method/database.getFaculties func (vk *VK) DatabaseGetFaculties(params Params) (response DatabaseGetFacultiesResponse, err error) { err = vk.RequestUnmarshal("database.getFaculties", &response, params) return @@ -90,7 +90,7 @@ type DatabaseGetMetroStationsResponse struct { // DatabaseGetMetroStations returns the list of metro stations. // -// https://vk.com/dev/database.getMetroStations +// https://dev.vk.com/method/database.getMetroStations func (vk *VK) DatabaseGetMetroStations(params Params) (response DatabaseGetMetroStationsResponse, err error) { err = vk.RequestUnmarshal("database.getMetroStations", &response, params) return @@ -101,7 +101,7 @@ type DatabaseGetMetroStationsByIDResponse []object.DatabaseMetroStation // DatabaseGetMetroStationsByID returns information about one or several metro stations by their identifiers. // -// https://vk.com/dev/database.getMetroStationsById +// https://dev.vk.com/method/database.getMetroStationsById func (vk *VK) DatabaseGetMetroStationsByID(params Params) (response DatabaseGetMetroStationsByIDResponse, err error) { err = vk.RequestUnmarshal("database.getMetroStationsById", &response, params) return @@ -115,7 +115,7 @@ type DatabaseGetRegionsResponse struct { // DatabaseGetRegions returns a list of regions. // -// https://vk.com/dev/database.getRegions +// https://dev.vk.com/method/database.getRegions func (vk *VK) DatabaseGetRegions(params Params) (response DatabaseGetRegionsResponse, err error) { err = vk.RequestUnmarshal("database.getRegions", &response, params) return @@ -128,7 +128,7 @@ type DatabaseGetSchoolClassesResponse [][]interface{} // // BUG(VK): database.getSchoolClasses bad return. // -// https://vk.com/dev/database.getSchoolClasses +// https://dev.vk.com/method/database.getSchoolClasses func (vk *VK) DatabaseGetSchoolClasses(params Params) (response DatabaseGetSchoolClassesResponse, err error) { err = vk.RequestUnmarshal("database.getSchoolClasses", &response, params) return @@ -142,7 +142,7 @@ type DatabaseGetSchoolsResponse struct { // DatabaseGetSchools returns a list of schools. // -// https://vk.com/dev/database.getSchools +// https://dev.vk.com/method/database.getSchools func (vk *VK) DatabaseGetSchools(params Params) (response DatabaseGetSchoolsResponse, err error) { err = vk.RequestUnmarshal("database.getSchools", &response, params) return @@ -156,7 +156,7 @@ type DatabaseGetUniversitiesResponse struct { // DatabaseGetUniversities returns a list of higher education institutions. // -// https://vk.com/dev/database.getUniversities +// https://dev.vk.com/method/database.getUniversities func (vk *VK) DatabaseGetUniversities(params Params) (response DatabaseGetUniversitiesResponse, err error) { err = vk.RequestUnmarshal("database.getUniversities", &response, params) return diff --git a/api/docs.go b/api/docs.go index 48605dae..def97526 100644 --- a/api/docs.go +++ b/api/docs.go @@ -6,7 +6,7 @@ import ( // DocsAdd copies a document to a user's or community's document list. // -// https://vk.com/dev/docs.add +// https://dev.vk.com/method/docs.add func (vk *VK) DocsAdd(params Params) (response int, err error) { err = vk.RequestUnmarshal("docs.add", &response, params) return @@ -14,7 +14,7 @@ func (vk *VK) DocsAdd(params Params) (response int, err error) { // DocsDelete deletes a user or community document. // -// https://vk.com/dev/docs.delete +// https://dev.vk.com/method/docs.delete func (vk *VK) DocsDelete(params Params) (response int, err error) { err = vk.RequestUnmarshal("docs.delete", &response, params) return @@ -22,7 +22,7 @@ func (vk *VK) DocsDelete(params Params) (response int, err error) { // DocsEdit edits a document. // -// https://vk.com/dev/docs.edit +// https://dev.vk.com/method/docs.edit func (vk *VK) DocsEdit(params Params) (response int, err error) { err = vk.RequestUnmarshal("docs.edit", &response, params) return @@ -36,7 +36,7 @@ type DocsGetResponse struct { // DocsGet returns detailed information about user or community documents. // -// https://vk.com/dev/docs.get +// https://dev.vk.com/method/docs.get func (vk *VK) DocsGet(params Params) (response DocsGetResponse, err error) { err = vk.RequestUnmarshal("docs.get", &response, params) return @@ -47,7 +47,7 @@ type DocsGetByIDResponse []object.DocsDoc // DocsGetByID returns information about documents by their IDs. // -// https://vk.com/dev/docs.getById +// https://dev.vk.com/method/docs.getById func (vk *VK) DocsGetByID(params Params) (response DocsGetByIDResponse, err error) { err = vk.RequestUnmarshal("docs.getById", &response, params) return @@ -60,7 +60,7 @@ type DocsGetMessagesUploadServerResponse struct { // DocsGetMessagesUploadServer returns the server address for document upload. // -// https://vk.com/dev/docs.getMessagesUploadServer +// https://dev.vk.com/method/docs.getMessagesUploadServer func (vk *VK) DocsGetMessagesUploadServer(params Params) (response DocsGetMessagesUploadServerResponse, err error) { err = vk.RequestUnmarshal("docs.getMessagesUploadServer", &response, params) return @@ -74,7 +74,7 @@ type DocsGetTypesResponse struct { // DocsGetTypes returns documents types available for current user. // -// https://vk.com/dev/docs.getTypes +// https://dev.vk.com/method/docs.getTypes func (vk *VK) DocsGetTypes(params Params) (response DocsGetTypesResponse, err error) { err = vk.RequestUnmarshal("docs.getTypes", &response, params) return @@ -87,7 +87,7 @@ type DocsGetUploadServerResponse struct { // DocsGetUploadServer returns the server address for document upload. // -// https://vk.com/dev/docs.getUploadServer +// https://dev.vk.com/method/docs.getUploadServer func (vk *VK) DocsGetUploadServer(params Params) (response DocsGetUploadServerResponse, err error) { err = vk.RequestUnmarshal("docs.getUploadServer", &response, params) return @@ -100,7 +100,7 @@ type DocsGetWallUploadServerResponse struct { // DocsGetWallUploadServer returns the server address for document upload onto a user's or community's wall. // -// https://vk.com/dev/docs.getWallUploadServer +// https://dev.vk.com/method/docs.getWallUploadServer func (vk *VK) DocsGetWallUploadServer(params Params) (response DocsGetWallUploadServerResponse, err error) { err = vk.RequestUnmarshal("docs.getWallUploadServer", &response, params) return @@ -116,7 +116,7 @@ type DocsSaveResponse struct { // DocsSave saves a document after uploading it to a server. // -// https://vk.com/dev/docs.save +// https://dev.vk.com/method/docs.save func (vk *VK) DocsSave(params Params) (response DocsSaveResponse, err error) { err = vk.RequestUnmarshal("docs.save", &response, params) return @@ -130,7 +130,7 @@ type DocsSearchResponse struct { // DocsSearch returns a list of documents matching the search criteria. // -// https://vk.com/dev/docs.search +// https://dev.vk.com/method/docs.search func (vk *VK) DocsSearch(params Params) (response DocsSearchResponse, err error) { err = vk.RequestUnmarshal("docs.search", &response, params) return diff --git a/api/donut.go b/api/donut.go index d6a13837..1ff8045e 100644 --- a/api/donut.go +++ b/api/donut.go @@ -10,7 +10,7 @@ type DonutGetFriendsResponse struct { // DonutGetFriends method. // -// https://vk.com/dev/donut.getFriends +// https://dev.vk.com/method/donut.getFriends func (vk *VK) DonutGetFriends(params Params) (response DonutGetFriendsResponse, err error) { err = vk.RequestUnmarshal("donut.getFriends", &response, params) return @@ -18,7 +18,7 @@ func (vk *VK) DonutGetFriends(params Params) (response DonutGetFriendsResponse, // DonutGetSubscription method. // -// https://vk.com/dev/donut.getSubscription +// https://dev.vk.com/method/donut.getSubscription func (vk *VK) DonutGetSubscription(params Params) (response object.DonutDonatorSubscriptionInfo, err error) { err = vk.RequestUnmarshal("donut.getSubscription", &response, params) return @@ -34,7 +34,7 @@ type DonutGetSubscriptionsResponse struct { // DonutGetSubscriptions method. // -// https://vk.com/dev/donut.getSubscriptions +// https://dev.vk.com/method/donut.getSubscriptions func (vk *VK) DonutGetSubscriptions(params Params) (response DonutGetSubscriptionsResponse, err error) { err = vk.RequestUnmarshal("donut.getSubscriptions", &response, params) return @@ -42,7 +42,7 @@ func (vk *VK) DonutGetSubscriptions(params Params) (response DonutGetSubscriptio // DonutIsDon method. // -// https://vk.com/dev/donut.isDon +// https://dev.vk.com/method/donut.isDon func (vk *VK) DonutIsDon(params Params) (response int, err error) { err = vk.RequestUnmarshal("donut.isDon", &response, params) return diff --git a/api/downloadedGames.go b/api/downloadedGames.go index cd03cfdb..5ab5033f 100644 --- a/api/downloadedGames.go +++ b/api/downloadedGames.go @@ -11,7 +11,7 @@ type DownloadedGamesGetPaidStatusResponse struct { // DownloadedGamesGetPaidStatus method. // -// https://vk.com/dev/downloadedGames.getPaidStatus +// https://dev.vk.com/method/downloadedGames.getPaidStatus func (vk *VK) DownloadedGamesGetPaidStatus(params Params) (response DownloadedGamesGetPaidStatusResponse, err error) { err = vk.RequestUnmarshal("downloadedGames.getPaidStatus", &response, params, Params{"extended": false}) diff --git a/api/errors.go b/api/errors.go index 9397ee90..973e7c0f 100644 --- a/api/errors.go +++ b/api/errors.go @@ -17,7 +17,7 @@ func (e ErrorType) Error() string { return fmt.Sprintf(errorMessagePrefix+"error with code %d", e) } -// Error codes. See https://vk.com/dev/errors +// Error codes. See https://dev.vk.com/ru/reference/errors const ( ErrNoType ErrorType = 0 // NoType error @@ -48,7 +48,7 @@ const ( // // Decrease the request frequency or use the execute method. // More details on frequency limits here: - // https://vk.com/dev/api_requests + // https://dev.vk.com/ru/api/api-requests ErrTooMany ErrorType = 6 // Permission to perform this action is denied @@ -56,7 +56,7 @@ const ( // 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 + // https://dev.vk.com/ru/reference/access-rights ErrPermission ErrorType = 7 // Invalid request @@ -92,7 +92,7 @@ const ( // Captcha needed. // - // See https://vk.com/dev/captcha_error + // See https://dev.vk.com/ru/api/captcha-error ErrCaptcha ErrorType = 14 // Access denied @@ -113,7 +113,7 @@ const ( // http://vk.com/dev/auth_mobile for a request from the server. // It's restricted. // - // https://vk.com/dev/need_validation + // https://dev.vk.com/ru/api/validation-required-error ErrAuthValidation ErrorType = 17 ErrUserDeleted ErrorType = 18 // User was deleted or banned ErrBlocked ErrorType = 19 // Content blocked @@ -149,7 +149,7 @@ const ( // // confirm = 1. // - // https://vk.com/dev/need_confirmation + // https://dev.vk.com/ru/api/confirmation-required-error ErrNeedConfirmation ErrorType = 24 ErrNeedTokenConfirmation ErrorType = 25 // Token confirmation required ErrGroupAuth ErrorType = 27 // Group authorization failed @@ -157,7 +157,7 @@ const ( // Rate limit reached. // - // More details on rate limits here: https://vk.com/dev/data_limits + // More details on rate limits here: https://dev.vk.com/ru/reference/roadmap ErrRateLimit ErrorType = 29 ErrPrivateProfile ErrorType = 30 // This profile is private @@ -880,7 +880,7 @@ type Error struct { // confirms the action repeat the request with an extra parameter: // confirm = 1. // - // See https://vk.com/dev/need_confirmation + // See https://dev.vk.com/ru/api/confirmation-required-error ConfirmationText string `json:"confirmation_text"` // In some cases VK requires a user validation procedure. . As a result @@ -912,7 +912,7 @@ type Error struct { // // https://oauth.vk.com/blank.html#fail=1 // - // See https://vk.com/dev/need_validation + // See https://dev.vk.com/ru/api/validation-required-error RedirectURI string `json:"redirect_uri"` RequestParams []object.BaseRequestParam `json:"request_params"` } diff --git a/api/execute.go b/api/execute.go index 1dd35e93..03059565 100644 --- a/api/execute.go +++ b/api/execute.go @@ -16,7 +16,7 @@ import ( // return Args.code; // return parameter "code" // return Args.v; // return parameter "v" // -// https://vk.com/dev/execute +// https://dev.vk.com/ru/method/execute func (vk *VK) ExecuteWithArgs(code string, params Params, obj interface{}) error { token := vk.getToken() @@ -56,7 +56,7 @@ func (vk *VK) ExecuteWithArgs(code string, params Params, 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 +// https://dev.vk.com/ru/method/execute func (vk *VK) Execute(code string, obj interface{}) error { return vk.ExecuteWithArgs(code, Params{}, obj) } diff --git a/api/fave.go b/api/fave.go index b519f1b0..bcd87ba7 100644 --- a/api/fave.go +++ b/api/fave.go @@ -6,7 +6,7 @@ import ( // FaveAddArticle adds a link to user faves. // -// https://vk.com/dev/fave.addArticle +// https://dev.vk.com/method/fave.addArticle func (vk *VK) FaveAddArticle(params Params) (response int, err error) { err = vk.RequestUnmarshal("fave.addArticle", &response, params) return @@ -14,7 +14,7 @@ func (vk *VK) FaveAddArticle(params Params) (response int, err error) { // FaveAddLink adds a link to user faves. // -// https://vk.com/dev/fave.addLink +// https://dev.vk.com/method/fave.addLink func (vk *VK) FaveAddLink(params Params) (response int, err error) { err = vk.RequestUnmarshal("fave.addLink", &response, params) return @@ -22,7 +22,7 @@ func (vk *VK) FaveAddLink(params Params) (response int, err error) { // FaveAddPage method. // -// https://vk.com/dev/fave.addPage +// https://dev.vk.com/method/fave.addPage func (vk *VK) FaveAddPage(params Params) (response int, err error) { err = vk.RequestUnmarshal("fave.addPage", &response, params) return @@ -30,7 +30,7 @@ func (vk *VK) FaveAddPage(params Params) (response int, err error) { // FaveAddPost method. // -// https://vk.com/dev/fave.addPost +// https://dev.vk.com/method/fave.addPost func (vk *VK) FaveAddPost(params Params) (response int, err error) { err = vk.RequestUnmarshal("fave.addPost", &response, params) return @@ -38,7 +38,7 @@ func (vk *VK) FaveAddPost(params Params) (response int, err error) { // FaveAddProduct method. // -// https://vk.com/dev/fave.addProduct +// https://dev.vk.com/method/fave.addProduct func (vk *VK) FaveAddProduct(params Params) (response int, err error) { err = vk.RequestUnmarshal("fave.addProduct", &response, params) return @@ -49,7 +49,7 @@ type FaveAddTagResponse object.FaveTag // FaveAddTag method. // -// https://vk.com/dev/fave.addTag +// https://dev.vk.com/method/fave.addTag func (vk *VK) FaveAddTag(params Params) (response FaveAddTagResponse, err error) { err = vk.RequestUnmarshal("fave.addTag", &response, params) return @@ -57,7 +57,7 @@ func (vk *VK) FaveAddTag(params Params) (response FaveAddTagResponse, err error) // FaveAddVideo method. // -// https://vk.com/dev/fave.addVideo +// https://dev.vk.com/method/fave.addVideo func (vk *VK) FaveAddVideo(params Params) (response int, err error) { err = vk.RequestUnmarshal("fave.addVideo", &response, params) return @@ -65,7 +65,7 @@ func (vk *VK) FaveAddVideo(params Params) (response int, err error) { // FaveEditTag method. // -// https://vk.com/dev/fave.editTag +// https://dev.vk.com/method/fave.editTag func (vk *VK) FaveEditTag(params Params) (response int, err error) { err = vk.RequestUnmarshal("fave.editTag", &response, params) return @@ -81,7 +81,7 @@ type FaveGetResponse struct { // // extended=0 // -// https://vk.com/dev/fave.get +// https://dev.vk.com/method/fave.get func (vk *VK) FaveGet(params Params) (response FaveGetResponse, err error) { err = vk.RequestUnmarshal("fave.get", &response, params, Params{"extended": false}) @@ -99,7 +99,7 @@ type FaveGetExtendedResponse struct { // // extended=1 // -// https://vk.com/dev/fave.get +// https://dev.vk.com/method/fave.get func (vk *VK) FaveGetExtended(params Params) (response FaveGetExtendedResponse, err error) { err = vk.RequestUnmarshal("fave.get", &response, params, Params{"extended": true}) @@ -114,7 +114,7 @@ type FaveGetPagesResponse struct { // FaveGetPages method. // -// https://vk.com/dev/fave.getPages +// https://dev.vk.com/method/fave.getPages func (vk *VK) FaveGetPages(params Params) (response FaveGetPagesResponse, err error) { err = vk.RequestUnmarshal("fave.getPages", &response, params) return @@ -128,7 +128,7 @@ type FaveGetTagsResponse struct { // FaveGetTags method. // -// https://vk.com/dev/fave.getTags +// https://dev.vk.com/method/fave.getTags func (vk *VK) FaveGetTags(params Params) (response FaveGetTagsResponse, err error) { err = vk.RequestUnmarshal("fave.getTags", &response, params) return @@ -136,7 +136,7 @@ func (vk *VK) FaveGetTags(params Params) (response FaveGetTagsResponse, err erro // FaveMarkSeen method. // -// https://vk.com/dev/fave.markSeen +// https://dev.vk.com/method/fave.markSeen func (vk *VK) FaveMarkSeen(params Params) (response int, err error) { err = vk.RequestUnmarshal("fave.markSeen", &response, params) return @@ -144,7 +144,7 @@ func (vk *VK) FaveMarkSeen(params Params) (response int, err error) { // FaveRemoveArticle method. // -// https://vk.com/dev/fave.removeArticle +// https://dev.vk.com/method/fave.removeArticle func (vk *VK) FaveRemoveArticle(params Params) (response int, err error) { err = vk.RequestUnmarshal("fave.removeArticle", &response, params) return @@ -152,7 +152,7 @@ func (vk *VK) FaveRemoveArticle(params Params) (response int, err error) { // FaveRemoveLink removes link from the user's faves. // -// https://vk.com/dev/fave.removeLink +// https://dev.vk.com/method/fave.removeLink func (vk *VK) FaveRemoveLink(params Params) (response int, err error) { err = vk.RequestUnmarshal("fave.removeLink", &response, params) return @@ -160,7 +160,7 @@ func (vk *VK) FaveRemoveLink(params Params) (response int, err error) { // FaveRemovePage method. // -// https://vk.com/dev/fave.removePage +// https://dev.vk.com/method/fave.removePage func (vk *VK) FaveRemovePage(params Params) (response int, err error) { err = vk.RequestUnmarshal("fave.removePage", &response, params) return @@ -168,7 +168,7 @@ func (vk *VK) FaveRemovePage(params Params) (response int, err error) { // FaveRemovePost method. // -// https://vk.com/dev/fave.removePost +// https://dev.vk.com/method/fave.removePost func (vk *VK) FaveRemovePost(params Params) (response int, err error) { err = vk.RequestUnmarshal("fave.removePost", &response, params) return @@ -176,7 +176,7 @@ func (vk *VK) FaveRemovePost(params Params) (response int, err error) { // FaveRemoveProduct method. // -// https://vk.com/dev/fave.removeProduct +// https://dev.vk.com/method/fave.removeProduct func (vk *VK) FaveRemoveProduct(params Params) (response int, err error) { err = vk.RequestUnmarshal("fave.removeProduct", &response, params) return @@ -184,7 +184,7 @@ func (vk *VK) FaveRemoveProduct(params Params) (response int, err error) { // FaveRemoveTag method. // -// https://vk.com/dev/fave.removeTag +// https://dev.vk.com/method/fave.removeTag func (vk *VK) FaveRemoveTag(params Params) (response int, err error) { err = vk.RequestUnmarshal("fave.removeTag", &response, params) return @@ -192,7 +192,7 @@ func (vk *VK) FaveRemoveTag(params Params) (response int, err error) { // FaveRemoveVideo method. // -// https://vk.com/dev/fave.removeVideo +// https://dev.vk.com/method/fave.removeVideo func (vk *VK) FaveRemoveVideo(params Params) (response int, err error) { err = vk.RequestUnmarshal("fave.removeVideo", &response, params) return @@ -200,7 +200,7 @@ func (vk *VK) FaveRemoveVideo(params Params) (response int, err error) { // FaveReorderTags method. // -// https://vk.com/dev/fave.reorderTags +// https://dev.vk.com/method/fave.reorderTags func (vk *VK) FaveReorderTags(params Params) (response int, err error) { err = vk.RequestUnmarshal("fave.reorderTags", &response, params) return @@ -208,7 +208,7 @@ func (vk *VK) FaveReorderTags(params Params) (response int, err error) { // FaveSetPageTags method. // -// https://vk.com/dev/fave.setPageTags +// https://dev.vk.com/method/fave.setPageTags func (vk *VK) FaveSetPageTags(params Params) (response int, err error) { err = vk.RequestUnmarshal("fave.setPageTags", &response, params) return @@ -216,7 +216,7 @@ func (vk *VK) FaveSetPageTags(params Params) (response int, err error) { // FaveSetTags method. // -// https://vk.com/dev/fave.setTags +// https://dev.vk.com/method/fave.setTags func (vk *VK) FaveSetTags(params Params) (response int, err error) { err = vk.RequestUnmarshal("fave.setTags", &response, params) return @@ -224,7 +224,7 @@ func (vk *VK) FaveSetTags(params Params) (response int, err error) { // FaveTrackPageInteraction method. // -// https://vk.com/dev/fave.trackPageInteraction +// https://dev.vk.com/method/fave.trackPageInteraction func (vk *VK) FaveTrackPageInteraction(params Params) (response int, err error) { err = vk.RequestUnmarshal("fave.trackPageInteraction", &response, params) return diff --git a/api/friends.go b/api/friends.go index 4cbb8c7c..48b06f8b 100644 --- a/api/friends.go +++ b/api/friends.go @@ -6,7 +6,7 @@ import ( // FriendsAdd approves or creates a friend request. // -// https://vk.com/dev/friends.add +// https://dev.vk.com/method/friends.add func (vk *VK) FriendsAdd(params Params) (response int, err error) { err = vk.RequestUnmarshal("friends.add", &response, params) return @@ -19,7 +19,7 @@ type FriendsAddListResponse struct { // FriendsAddList creates a new friend list for the current user. // -// https://vk.com/dev/friends.addList +// https://dev.vk.com/method/friends.addList func (vk *VK) FriendsAddList(params Params) (response FriendsAddListResponse, err error) { err = vk.RequestUnmarshal("friends.addList", &response, params) return @@ -30,7 +30,7 @@ type FriendsAreFriendsResponse []object.FriendsFriendStatus // FriendsAreFriends checks the current user's friendship status with other specified users. // -// https://vk.com/dev/friends.areFriends +// https://dev.vk.com/method/friends.areFriends func (vk *VK) FriendsAreFriends(params Params) (response FriendsAreFriendsResponse, err error) { err = vk.RequestUnmarshal("friends.areFriends", &response, params) return @@ -47,7 +47,7 @@ type FriendsDeleteResponse struct { // FriendsDelete declines a friend request or deletes a user from the current user's friend list. // -// https://vk.com/dev/friends.delete +// https://dev.vk.com/method/friends.delete func (vk *VK) FriendsDelete(params Params) (response FriendsDeleteResponse, err error) { err = vk.RequestUnmarshal("friends.delete", &response, params) return @@ -55,7 +55,7 @@ func (vk *VK) FriendsDelete(params Params) (response FriendsDeleteResponse, err // FriendsDeleteAllRequests marks all incoming friend requests as viewed. // -// https://vk.com/dev/friends.deleteAllRequests +// https://dev.vk.com/method/friends.deleteAllRequests func (vk *VK) FriendsDeleteAllRequests(params Params) (response int, err error) { err = vk.RequestUnmarshal("friends.deleteAllRequests", &response, params) return @@ -63,7 +63,7 @@ func (vk *VK) FriendsDeleteAllRequests(params Params) (response int, err error) // FriendsDeleteList deletes a friend list of the current user. // -// https://vk.com/dev/friends.deleteList +// https://dev.vk.com/method/friends.deleteList func (vk *VK) FriendsDeleteList(params Params) (response int, err error) { err = vk.RequestUnmarshal("friends.deleteList", &response, params) return @@ -71,7 +71,7 @@ func (vk *VK) FriendsDeleteList(params Params) (response int, err error) { // FriendsEdit edits the friend lists of the selected user. // -// https://vk.com/dev/friends.edit +// https://dev.vk.com/method/friends.edit func (vk *VK) FriendsEdit(params Params) (response int, err error) { err = vk.RequestUnmarshal("friends.edit", &response, params) return @@ -79,7 +79,7 @@ func (vk *VK) FriendsEdit(params Params) (response int, err error) { // FriendsEditList edits a friend list of the current user. // -// https://vk.com/dev/friends.editList +// https://dev.vk.com/method/friends.editList func (vk *VK) FriendsEditList(params Params) (response int, err error) { err = vk.RequestUnmarshal("friends.editList", &response, params) return @@ -93,7 +93,7 @@ type FriendsGetResponse struct { // FriendsGet returns a list of user IDs or detailed information about a user's friends. // -// https://vk.com/dev/friends.get +// https://dev.vk.com/method/friends.get func (vk *VK) FriendsGet(params Params) (response FriendsGetResponse, err error) { err = vk.RequestUnmarshal("friends.get", &response, params) return @@ -107,7 +107,7 @@ type FriendsGetFieldsResponse struct { // FriendsGetFields returns a list of user IDs or detailed information about a user's friends. // -// https://vk.com/dev/friends.get +// https://dev.vk.com/method/friends.get func (vk *VK) FriendsGetFields(params Params) (response FriendsGetFieldsResponse, err error) { reqParams := make(Params) if v, prs := params["fields"]; v == "" || !prs { @@ -124,7 +124,7 @@ type FriendsGetAppUsersResponse []int // FriendsGetAppUsers returns a list of IDs of the current user's friends who installed the application. // -// https://vk.com/dev/friends.getAppUsers +// https://dev.vk.com/method/friends.getAppUsers func (vk *VK) FriendsGetAppUsers(params Params) (response FriendsGetAppUsersResponse, err error) { err = vk.RequestUnmarshal("friends.getAppUsers", &response, params) return @@ -136,7 +136,7 @@ type FriendsGetByPhonesResponse []object.FriendsUserXtrPhone // 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 +// https://dev.vk.com/method/friends.getByPhones func (vk *VK) FriendsGetByPhones(params Params) (response FriendsGetByPhonesResponse, err error) { err = vk.RequestUnmarshal("friends.getByPhones", &response, params) return @@ -150,7 +150,7 @@ type FriendsGetListsResponse struct { // FriendsGetLists returns a list of the user's friend lists. // -// https://vk.com/dev/friends.getLists +// https://dev.vk.com/method/friends.getLists func (vk *VK) FriendsGetLists(params Params) (response FriendsGetListsResponse, err error) { err = vk.RequestUnmarshal("friends.getLists", &response, params) return @@ -161,7 +161,7 @@ type FriendsGetMutualResponse []int // FriendsGetMutual returns a list of user IDs of the mutual friends of two users. // -// https://vk.com/dev/friends.getMutual +// https://dev.vk.com/method/friends.getMutual func (vk *VK) FriendsGetMutual(params Params) (response FriendsGetMutualResponse, err error) { err = vk.RequestUnmarshal("friends.getMutual", &response, params) return @@ -171,7 +171,7 @@ func (vk *VK) FriendsGetMutual(params Params) (response FriendsGetMutualResponse // // online_mobile=0 // -// https://vk.com/dev/friends.getOnline +// https://dev.vk.com/method/friends.getOnline func (vk *VK) FriendsGetOnline(params Params) (response []int, err error) { err = vk.RequestUnmarshal("friends.getOnline", &response, params, Params{"online_mobile": false}) @@ -188,7 +188,7 @@ type FriendsGetOnlineOnlineMobileResponse struct { // // online_mobile=1 // -// https://vk.com/dev/friends.getOnline +// https://dev.vk.com/method/friends.getOnline func (vk *VK) FriendsGetOnlineOnlineMobile(params Params) (response FriendsGetOnlineOnlineMobileResponse, err error) { err = vk.RequestUnmarshal("friends.getOnline", &response, params, Params{"online_mobile": true}) @@ -200,7 +200,7 @@ type FriendsGetRecentResponse []int // FriendsGetRecent returns a list of user IDs of the current user's recently added friends. // -// https://vk.com/dev/friends.getRecent +// https://dev.vk.com/method/friends.getRecent func (vk *VK) FriendsGetRecent(params Params) (response FriendsGetRecentResponse, err error) { err = vk.RequestUnmarshal("friends.getRecent", &response, params) return @@ -214,7 +214,7 @@ type FriendsGetRequestsResponse struct { // FriendsGetRequests returns information about the current user's incoming and outgoing friend requests. // -// https://vk.com/dev/friends.getRequests +// https://dev.vk.com/method/friends.getRequests func (vk *VK) FriendsGetRequests(params Params) (response FriendsGetRequestsResponse, err error) { reqParams := Params{ "need_mutual": false, @@ -234,7 +234,7 @@ type FriendsGetRequestsNeedMutualResponse struct { // FriendsGetRequestsNeedMutual returns information about the current user's incoming and outgoing friend requests. // -// https://vk.com/dev/friends.getRequests +// https://dev.vk.com/method/friends.getRequests func (vk *VK) FriendsGetRequestsNeedMutual(params Params) (response FriendsGetRequestsNeedMutualResponse, err error) { reqParams := Params{ "extended": false, @@ -254,7 +254,7 @@ type FriendsGetRequestsExtendedResponse struct { // FriendsGetRequestsExtended returns information about the current user's incoming and outgoing friend requests. // -// https://vk.com/dev/friends.getRequests +// https://dev.vk.com/method/friends.getRequests func (vk *VK) FriendsGetRequestsExtended(params Params) (response FriendsGetRequestsExtendedResponse, err error) { reqParams := Params{ "need_mutual": false, @@ -274,7 +274,7 @@ type FriendsGetSuggestionsResponse struct { // FriendsGetSuggestions returns a list of profiles of users whom the current user may know. // -// https://vk.com/dev/friends.getSuggestions +// https://dev.vk.com/method/friends.getSuggestions func (vk *VK) FriendsGetSuggestions(params Params) (response FriendsGetSuggestionsResponse, err error) { err = vk.RequestUnmarshal("friends.getSuggestions", &response, params) return @@ -288,7 +288,7 @@ type FriendsSearchResponse struct { // FriendsSearch returns a list of friends matching the search criteria. // -// https://vk.com/dev/friends.search +// https://dev.vk.com/method/friends.search func (vk *VK) FriendsSearch(params Params) (response FriendsSearchResponse, err error) { err = vk.RequestUnmarshal("friends.search", &response, params) return diff --git a/api/gifts.go b/api/gifts.go index cdcddd94..9bc6c5b2 100644 --- a/api/gifts.go +++ b/api/gifts.go @@ -10,7 +10,7 @@ type GiftsGetResponse struct { // GiftsGet returns a list of user gifts. // -// https://vk.com/dev/gifts.get +// https://dev.vk.com/method/gifts.get func (vk *VK) GiftsGet(params Params) (response GiftsGetResponse, err error) { err = vk.RequestUnmarshal("gifts.get", &response, params) return @@ -25,7 +25,7 @@ type GiftsGetCatalogResponse []struct { // GiftsGetCatalog returns catalog. // -// https://vk.com/dev/gifts.get +// https://dev.vk.com/method/gifts.get func (vk *VK) GiftsGetCatalog(params Params) (response GiftsGetCatalogResponse, err error) { err = vk.RequestUnmarshal("gifts.getCatalog", &response, params) return diff --git a/api/groups.go b/api/groups.go index 868bee86..07a5162f 100644 --- a/api/groups.go +++ b/api/groups.go @@ -9,7 +9,7 @@ type GroupsAddAddressResponse object.GroupsAddress // GroupsAddAddress groups.addAddress. // -// https://vk.com/dev/groups.addAddress +// https://dev.vk.com/method/groups.addAddress func (vk *VK) GroupsAddAddress(params Params) (response GroupsAddAddressResponse, err error) { err = vk.RequestUnmarshal("groups.addAddress", &response, params) return @@ -22,7 +22,7 @@ type GroupsAddCallbackServerResponse struct { // GroupsAddCallbackServer callback API server to the community. // -// https://vk.com/dev/groups.addCallbackServer +// https://dev.vk.com/method/groups.addCallbackServer func (vk *VK) GroupsAddCallbackServer(params Params) (response GroupsAddCallbackServerResponse, err error) { err = vk.RequestUnmarshal("groups.addCallbackServer", &response, params) return @@ -33,7 +33,7 @@ type GroupsAddLinkResponse object.GroupsGroupLink // GroupsAddLink allows to add a link to the community. // -// https://vk.com/dev/groups.addLink +// https://dev.vk.com/method/groups.addLink func (vk *VK) GroupsAddLink(params Params) (response GroupsAddLinkResponse, err error) { err = vk.RequestUnmarshal("groups.addLink", &response, params) return @@ -41,7 +41,7 @@ func (vk *VK) GroupsAddLink(params Params) (response GroupsAddLinkResponse, err // GroupsApproveRequest allows to approve join request to the community. // -// https://vk.com/dev/groups.approveRequest +// https://dev.vk.com/method/groups.approveRequest func (vk *VK) GroupsApproveRequest(params Params) (response int, err error) { err = vk.RequestUnmarshal("groups.approveRequest", &response, params) return @@ -49,7 +49,7 @@ func (vk *VK) GroupsApproveRequest(params Params) (response int, err error) { // GroupsBan adds a user or a group to the community blacklist. // -// https://vk.com/dev/groups.ban +// https://dev.vk.com/method/groups.ban func (vk *VK) GroupsBan(params Params) (response int, err error) { err = vk.RequestUnmarshal("groups.ban", &response, params) return @@ -60,7 +60,7 @@ type GroupsCreateResponse object.GroupsGroup // GroupsCreate creates a new community. // -// https://vk.com/dev/groups.create +// https://dev.vk.com/method/groups.create func (vk *VK) GroupsCreate(params Params) (response GroupsCreateResponse, err error) { err = vk.RequestUnmarshal("groups.create", &response, params) return @@ -68,7 +68,7 @@ func (vk *VK) GroupsCreate(params Params) (response GroupsCreateResponse, err er // GroupsDeleteAddress groups.deleteAddress. // -// https://vk.com/dev/groups.deleteAddress +// https://dev.vk.com/method/groups.deleteAddress func (vk *VK) GroupsDeleteAddress(params Params) (response int, err error) { err = vk.RequestUnmarshal("groups.deleteAddress", &response, params) return @@ -76,7 +76,7 @@ func (vk *VK) GroupsDeleteAddress(params Params) (response int, err error) { // GroupsDeleteCallbackServer callback API server from the community. // -// https://vk.com/dev/groups.deleteCallbackServer +// https://dev.vk.com/method/groups.deleteCallbackServer func (vk *VK) GroupsDeleteCallbackServer(params Params) (response int, err error) { err = vk.RequestUnmarshal("groups.deleteCallbackServer", &response, params) return @@ -84,7 +84,7 @@ func (vk *VK) GroupsDeleteCallbackServer(params Params) (response int, err error // GroupsDeleteLink allows to delete a link from the community. // -// https://vk.com/dev/groups.deleteLink +// https://dev.vk.com/method/groups.deleteLink func (vk *VK) GroupsDeleteLink(params Params) (response int, err error) { err = vk.RequestUnmarshal("groups.deleteLink", &response, params) return @@ -92,7 +92,7 @@ func (vk *VK) GroupsDeleteLink(params Params) (response int, err error) { // GroupsDisableOnline disables "online" status in the community. // -// https://vk.com/dev/groups.disableOnline +// https://dev.vk.com/method/groups.disableOnline func (vk *VK) GroupsDisableOnline(params Params) (response int, err error) { err = vk.RequestUnmarshal("groups.disableOnline", &response, params) return @@ -100,7 +100,7 @@ func (vk *VK) GroupsDisableOnline(params Params) (response int, err error) { // GroupsEdit edits a community. // -// https://vk.com/dev/groups.edit +// https://dev.vk.com/method/groups.edit func (vk *VK) GroupsEdit(params Params) (response int, err error) { err = vk.RequestUnmarshal("groups.edit", &response, params) return @@ -111,7 +111,7 @@ type GroupsEditAddressResponse object.GroupsAddress // GroupsEditAddress groups.editAddress. // -// https://vk.com/dev/groups.editAddress +// https://dev.vk.com/method/groups.editAddress func (vk *VK) GroupsEditAddress(params Params) (response GroupsEditAddressResponse, err error) { err = vk.RequestUnmarshal("groups.editAddress", &response, params) return @@ -119,7 +119,7 @@ func (vk *VK) GroupsEditAddress(params Params) (response GroupsEditAddressRespon // GroupsEditCallbackServer edits Callback API server in the community. // -// https://vk.com/dev/groups.editCallbackServer +// https://dev.vk.com/method/groups.editCallbackServer func (vk *VK) GroupsEditCallbackServer(params Params) (response int, err error) { err = vk.RequestUnmarshal("groups.editCallbackServer", &response, params) return @@ -127,7 +127,7 @@ func (vk *VK) GroupsEditCallbackServer(params Params) (response int, err error) // GroupsEditLink allows to edit a link in the community. // -// https://vk.com/dev/groups.editLink +// https://dev.vk.com/method/groups.editLink func (vk *VK) GroupsEditLink(params Params) (response int, err error) { err = vk.RequestUnmarshal("groups.editLink", &response, params) return @@ -135,7 +135,7 @@ func (vk *VK) GroupsEditLink(params Params) (response int, err error) { // GroupsEditManager allows to add, remove or edit the community manager . // -// https://vk.com/dev/groups.editManager +// https://dev.vk.com/method/groups.editManager func (vk *VK) GroupsEditManager(params Params) (response int, err error) { err = vk.RequestUnmarshal("groups.editManager", &response, params) return @@ -143,7 +143,7 @@ func (vk *VK) GroupsEditManager(params Params) (response int, err error) { // GroupsEnableOnline enables "online" status in the community. // -// https://vk.com/dev/groups.enableOnline +// https://dev.vk.com/method/groups.enableOnline func (vk *VK) GroupsEnableOnline(params Params) (response int, err error) { err = vk.RequestUnmarshal("groups.enableOnline", &response, params) return @@ -159,7 +159,7 @@ type GroupsGetResponse struct { // // extended=0 // -// https://vk.com/dev/groups.get +// https://dev.vk.com/method/groups.get func (vk *VK) GroupsGet(params Params) (response GroupsGetResponse, err error) { err = vk.RequestUnmarshal("groups.get", &response, params, Params{"extended": false}) @@ -176,7 +176,7 @@ type GroupsGetExtendedResponse struct { // // extended=1 // -// https://vk.com/dev/groups.get +// https://dev.vk.com/method/groups.get func (vk *VK) GroupsGetExtended(params Params) (response GroupsGetExtendedResponse, err error) { err = vk.RequestUnmarshal("groups.get", &response, params, Params{"extended": true}) @@ -191,7 +191,7 @@ type GroupsGetAddressesResponse struct { // GroupsGetAddresses groups.getAddresses. // -// https://vk.com/dev/groups.getAddresses +// https://dev.vk.com/method/groups.getAddresses func (vk *VK) GroupsGetAddresses(params Params) (response GroupsGetAddressesResponse, err error) { err = vk.RequestUnmarshal("groups.getAddresses", &response, params) return @@ -205,7 +205,7 @@ type GroupsGetBannedResponse struct { // GroupsGetBanned returns a list of users on a community blacklist. // -// https://vk.com/dev/groups.getBanned +// https://dev.vk.com/method/groups.getBanned func (vk *VK) GroupsGetBanned(params Params) (response GroupsGetBannedResponse, err error) { err = vk.RequestUnmarshal("groups.getBanned", &response, params) return @@ -216,7 +216,7 @@ type GroupsGetByIDResponse []object.GroupsGroup // GroupsGetByID returns information about communities by their IDs. // -// https://vk.com/dev/groups.getById +// https://dev.vk.com/method/groups.getById func (vk *VK) GroupsGetByID(params Params) (response GroupsGetByIDResponse, err error) { err = vk.RequestUnmarshal("groups.getById", &response, params) return @@ -229,7 +229,7 @@ type GroupsGetCallbackConfirmationCodeResponse struct { // GroupsGetCallbackConfirmationCode returns Callback API confirmation code for the community. // -// https://vk.com/dev/groups.getCallbackConfirmationCode +// https://dev.vk.com/method/groups.getCallbackConfirmationCode func (vk *VK) GroupsGetCallbackConfirmationCode(params Params) ( response GroupsGetCallbackConfirmationCodeResponse, err error, @@ -246,7 +246,7 @@ type GroupsGetCallbackServersResponse struct { // GroupsGetCallbackServers receives a list of Callback API servers from the community. // -// https://vk.com/dev/groups.getCallbackServers +// https://dev.vk.com/method/groups.getCallbackServers func (vk *VK) GroupsGetCallbackServers(params Params) (response GroupsGetCallbackServersResponse, err error) { err = vk.RequestUnmarshal("groups.getCallbackServers", &response, params) return @@ -259,7 +259,7 @@ type GroupsGetCallbackSettingsResponse object.GroupsCallbackSettings // // BUG(VK): MessageEdit always 0 https://vk.com/bugtracker?act=show&id=86762 // -// https://vk.com/dev/groups.getCallbackSettings +// https://dev.vk.com/method/groups.getCallbackSettings func (vk *VK) GroupsGetCallbackSettings(params Params) (response GroupsGetCallbackSettingsResponse, err error) { err = vk.RequestUnmarshal("groups.getCallbackSettings", &response, params) return @@ -275,7 +275,7 @@ type GroupsGetCatalogResponse struct { // // Deprecated: This method is deprecated and may be disabled soon, please avoid // -// https://vk.com/dev/groups.getCatalog +// https://dev.vk.com/method/groups.getCatalog func (vk *VK) GroupsGetCatalog(params Params) (response GroupsGetCatalogResponse, err error) { err = vk.RequestUnmarshal("groups.getCatalog", &response, params) return @@ -291,7 +291,7 @@ type GroupsGetCatalogInfoResponse struct { // // extended=0 // -// https://vk.com/dev/groups.getCatalogInfo +// https://dev.vk.com/method/groups.getCatalogInfo func (vk *VK) GroupsGetCatalogInfo(params Params) (response GroupsGetCatalogInfoResponse, err error) { err = vk.RequestUnmarshal("groups.getCatalogInfo", &response, params, Params{"extended": false}) @@ -308,7 +308,7 @@ type GroupsGetCatalogInfoExtendedResponse struct { // // extended=1 // -// https://vk.com/dev/groups.getCatalogInfo +// https://dev.vk.com/method/groups.getCatalogInfo func (vk *VK) GroupsGetCatalogInfoExtended(params Params) (response GroupsGetCatalogInfoExtendedResponse, err error) { err = vk.RequestUnmarshal("groups.getCatalogInfo", &response, params, Params{"extended": true}) @@ -323,7 +323,7 @@ type GroupsGetInvitedUsersResponse struct { // GroupsGetInvitedUsers returns invited users list of a community. // -// https://vk.com/dev/groups.getInvitedUsers +// https://dev.vk.com/method/groups.getInvitedUsers func (vk *VK) GroupsGetInvitedUsers(params Params) (response GroupsGetInvitedUsersResponse, err error) { err = vk.RequestUnmarshal("groups.getInvitedUsers", &response, params) return @@ -337,7 +337,7 @@ type GroupsGetInvitesResponse struct { // GroupsGetInvites returns a list of invitations to join communities and events. // -// https://vk.com/dev/groups.getInvites +// https://dev.vk.com/method/groups.getInvites func (vk *VK) GroupsGetInvites(params Params) (response GroupsGetInvitesResponse, err error) { err = vk.RequestUnmarshal("groups.getInvites", &response, params) return @@ -352,7 +352,7 @@ type GroupsGetInvitesExtendedResponse struct { // GroupsGetInvitesExtended returns a list of invitations to join communities and events. // -// https://vk.com/dev/groups.getInvites +// https://dev.vk.com/method/groups.getInvites func (vk *VK) GroupsGetInvitesExtended(params Params) (response GroupsGetInvitesExtendedResponse, err error) { err = vk.RequestUnmarshal("groups.getInvites", &response, params) return @@ -363,7 +363,7 @@ type GroupsGetLongPollServerResponse object.GroupsLongPollServer // GroupsGetLongPollServer returns data for Bots Long Poll API connection. // -// https://vk.com/dev/groups.getLongPollServer +// https://dev.vk.com/method/groups.getLongPollServer func (vk *VK) GroupsGetLongPollServer(params Params) (response GroupsGetLongPollServerResponse, err error) { err = vk.RequestUnmarshal("groups.getLongPollServer", &response, params) return @@ -374,7 +374,7 @@ type GroupsGetLongPollSettingsResponse object.GroupsLongPollSettings // GroupsGetLongPollSettings returns Bots Long Poll API settings. // -// https://vk.com/dev/groups.getLongPollSettings +// https://dev.vk.com/method/groups.getLongPollSettings func (vk *VK) GroupsGetLongPollSettings(params Params) (response GroupsGetLongPollSettingsResponse, err error) { err = vk.RequestUnmarshal("groups.getLongPollSettings", &response, params) return @@ -388,7 +388,7 @@ type GroupsGetMembersResponse struct { // GroupsGetMembers returns a list of community members. // -// https://vk.com/dev/groups.getMembers +// https://dev.vk.com/method/groups.getMembers func (vk *VK) GroupsGetMembers(params Params) (response GroupsGetMembersResponse, err error) { err = vk.RequestUnmarshal("groups.getMembers", &response, params, Params{"filter": ""}) @@ -403,7 +403,7 @@ type GroupsGetMembersFieldsResponse struct { // GroupsGetMembersFields returns a list of community members. // -// https://vk.com/dev/groups.getMembers +// https://dev.vk.com/method/groups.getMembers func (vk *VK) GroupsGetMembersFields(params Params) (response GroupsGetMembersFieldsResponse, err error) { reqParams := make(Params) if v, prs := params["fields"]; v == "" || !prs { @@ -425,7 +425,7 @@ type GroupsGetMembersFilterManagersResponse struct { // // filter=managers // -// https://vk.com/dev/groups.getMembers +// https://dev.vk.com/method/groups.getMembers func (vk *VK) GroupsGetMembersFilterManagers(params Params) ( response GroupsGetMembersFilterManagersResponse, err error, @@ -440,7 +440,7 @@ type GroupsGetOnlineStatusResponse object.GroupsOnlineStatus // GroupsGetOnlineStatus returns a community's online status. // -// https://vk.com/dev/groups.getOnlineStatus +// https://dev.vk.com/method/groups.getOnlineStatus func (vk *VK) GroupsGetOnlineStatus(params Params) (response GroupsGetOnlineStatusResponse, err error) { err = vk.RequestUnmarshal("groups.getOnlineStatus", &response, params) return @@ -454,7 +454,7 @@ type GroupsGetRequestsResponse struct { // GroupsGetRequests returns a list of requests to the community. // -// https://vk.com/dev/groups.getRequests +// https://dev.vk.com/method/groups.getRequests func (vk *VK) GroupsGetRequests(params Params) (response GroupsGetRequestsResponse, err error) { err = vk.RequestUnmarshal("groups.getRequests", &response, params, Params{"fields": ""}) @@ -469,7 +469,7 @@ type GroupsGetRequestsFieldsResponse struct { // GroupsGetRequestsFields returns a list of requests to the community. // -// https://vk.com/dev/groups.getRequests +// https://dev.vk.com/method/groups.getRequests func (vk *VK) GroupsGetRequestsFields(params Params) (response GroupsGetRequestsFieldsResponse, err error) { reqParams := make(Params) if v, prs := params["fields"]; v == "" || !prs { @@ -486,7 +486,7 @@ type GroupsGetSettingsResponse object.GroupsGroupSettings // GroupsGetSettings returns community settings. // -// https://vk.com/dev/groups.getSettings +// https://dev.vk.com/method/groups.getSettings func (vk *VK) GroupsGetSettings(params Params) (response GroupsGetSettingsResponse, err error) { err = vk.RequestUnmarshal("groups.getSettings", &response, params) return @@ -497,7 +497,7 @@ type GroupsGetTagListResponse []object.GroupsTag // GroupsGetTagList returns community tags list. // -// https://vk.com/dev/groups.getTagList +// https://dev.vk.com/method/groups.getTagList func (vk *VK) GroupsGetTagList(params Params) (response GroupsGetTagListResponse, err error) { err = vk.RequestUnmarshal("groups.getTagList", &response, params) return @@ -508,7 +508,7 @@ type GroupsGetTokenPermissionsResponse object.GroupsTokenPermissions // GroupsGetTokenPermissions returns permissions scope for the community's access_token. // -// https://vk.com/dev/groups.getTokenPermissions +// https://dev.vk.com/method/groups.getTokenPermissions func (vk *VK) GroupsGetTokenPermissions(params Params) (response GroupsGetTokenPermissionsResponse, err error) { err = vk.RequestUnmarshal("groups.getTokenPermissions", &response, params) return @@ -516,7 +516,7 @@ func (vk *VK) GroupsGetTokenPermissions(params Params) (response GroupsGetTokenP // GroupsInvite allows to invite friends to the community. // -// https://vk.com/dev/groups.invite +// https://dev.vk.com/method/groups.invite func (vk *VK) GroupsInvite(params Params) (response int, err error) { err = vk.RequestUnmarshal("groups.invite", &response, params) return @@ -526,7 +526,7 @@ func (vk *VK) GroupsInvite(params Params) (response int, err error) { // // extended=0 // -// https://vk.com/dev/groups.isMember +// https://dev.vk.com/method/groups.isMember func (vk *VK) GroupsIsMember(params Params) (response int, err error) { err = vk.RequestUnmarshal("groups.isMember", &response, params, Params{"extended": false}) @@ -546,7 +546,7 @@ type GroupsIsMemberExtendedResponse struct { // // extended=1 // -// https://vk.com/dev/groups.isMember +// https://dev.vk.com/method/groups.isMember func (vk *VK) GroupsIsMemberExtended(params Params) (response GroupsIsMemberExtendedResponse, err error) { err = vk.RequestUnmarshal("groups.isMember", &response, params, Params{"extended": true}) @@ -561,7 +561,7 @@ type GroupsIsMemberUserIDsExtendedResponse []object.GroupsMemberStatusFull // extended=1 // need user_ids // -// https://vk.com/dev/groups.isMember +// https://dev.vk.com/method/groups.isMember func (vk *VK) GroupsIsMemberUserIDsExtended(params Params) (response GroupsIsMemberUserIDsExtendedResponse, err error) { err = vk.RequestUnmarshal("groups.isMember", &response, params, Params{"extended": true}) @@ -576,7 +576,7 @@ type GroupsIsMemberUserIDsResponse []object.GroupsMemberStatus // extended=0 // need user_ids // -// https://vk.com/dev/groups.isMember +// https://dev.vk.com/method/groups.isMember func (vk *VK) GroupsIsMemberUserIDs(params Params) (response GroupsIsMemberUserIDsResponse, err error) { err = vk.RequestUnmarshal("groups.isMember", &response, params, Params{"extended": false}) @@ -585,7 +585,7 @@ func (vk *VK) GroupsIsMemberUserIDs(params Params) (response GroupsIsMemberUserI // GroupsJoin with this method you can join the group or public page, and also confirm your participation in an event. // -// https://vk.com/dev/groups.join +// https://dev.vk.com/method/groups.join func (vk *VK) GroupsJoin(params Params) (response int, err error) { err = vk.RequestUnmarshal("groups.join", &response, params) return @@ -593,7 +593,7 @@ func (vk *VK) GroupsJoin(params Params) (response int, err error) { // GroupsLeave with this method you can leave a group, public page, or event. // -// https://vk.com/dev/groups.leave +// https://dev.vk.com/method/groups.leave func (vk *VK) GroupsLeave(params Params) (response int, err error) { err = vk.RequestUnmarshal("groups.leave", &response, params) return @@ -601,7 +601,7 @@ func (vk *VK) GroupsLeave(params Params) (response int, err error) { // GroupsRemoveUser removes a user from the community. // -// https://vk.com/dev/groups.removeUser +// https://dev.vk.com/method/groups.removeUser func (vk *VK) GroupsRemoveUser(params Params) (response int, err error) { err = vk.RequestUnmarshal("groups.removeUser", &response, params) return @@ -609,7 +609,7 @@ func (vk *VK) GroupsRemoveUser(params Params) (response int, err error) { // GroupsReorderLink allows to reorder links in the community. // -// https://vk.com/dev/groups.reorderLink +// https://dev.vk.com/method/groups.reorderLink func (vk *VK) GroupsReorderLink(params Params) (response int, err error) { err = vk.RequestUnmarshal("groups.reorderLink", &response, params) return @@ -623,7 +623,7 @@ type GroupsSearchResponse struct { // GroupsSearch returns a list of communities matching the search criteria. // -// https://vk.com/dev/groups.search +// https://dev.vk.com/method/groups.search func (vk *VK) GroupsSearch(params Params) (response GroupsSearchResponse, err error) { err = vk.RequestUnmarshal("groups.search", &response, params) return @@ -631,7 +631,7 @@ func (vk *VK) GroupsSearch(params Params) (response GroupsSearchResponse, err er // GroupsSetCallbackSettings allow to set notifications settings for Callback API. // -// https://vk.com/dev/groups.setCallbackSettings +// https://dev.vk.com/method/groups.setCallbackSettings func (vk *VK) GroupsSetCallbackSettings(params Params) (response int, err error) { err = vk.RequestUnmarshal("groups.setCallbackSettings", &response, params) return @@ -639,7 +639,7 @@ func (vk *VK) GroupsSetCallbackSettings(params Params) (response int, err error) // GroupsSetLongPollSettings allows to set Bots Long Poll API settings in the community. // -// https://vk.com/dev/groups.setLongPollSettings +// https://dev.vk.com/method/groups.setLongPollSettings func (vk *VK) GroupsSetLongPollSettings(params Params) (response int, err error) { err = vk.RequestUnmarshal("groups.setLongPollSettings", &response, params) return @@ -647,7 +647,7 @@ func (vk *VK) GroupsSetLongPollSettings(params Params) (response int, err error) // GroupsSetSettings sets community settings. // -// https://vk.com/dev/groups.setSettings +// https://dev.vk.com/method/groups.setSettings func (vk *VK) GroupsSetSettings(params Params) (response int, err error) { err = vk.RequestUnmarshal("groups.setSettings", &response, params) return @@ -656,7 +656,7 @@ func (vk *VK) GroupsSetSettings(params Params) (response int, err error) { // GroupsSetUserNote allows to create or edit a note about a user as part // of the user's correspondence with the community. // -// https://vk.com/dev/groups.setUserNote +// https://dev.vk.com/method/groups.setUserNote func (vk *VK) GroupsSetUserNote(params Params) (response int, err error) { err = vk.RequestUnmarshal("groups.setUserNote", &response, params) return @@ -664,7 +664,7 @@ func (vk *VK) GroupsSetUserNote(params Params) (response int, err error) { // GroupsTagAdd allows to add a new tag to the community. // -// https://vk.com/dev/groups.tagAdd +// https://dev.vk.com/method/groups.tagAdd func (vk *VK) GroupsTagAdd(params Params) (response int, err error) { err = vk.RequestUnmarshal("groups.tagAdd", &response, params) return @@ -672,7 +672,7 @@ func (vk *VK) GroupsTagAdd(params Params) (response int, err error) { // GroupsTagBind allows to "bind" and "unbind" community tags to conversations. // -// https://vk.com/dev/groups.tagBind +// https://dev.vk.com/method/groups.tagBind func (vk *VK) GroupsTagBind(params Params) (response int, err error) { err = vk.RequestUnmarshal("groups.tagBind", &response, params) return @@ -683,7 +683,7 @@ func (vk *VK) GroupsTagBind(params Params) (response int, err error) { // The remote tag will be automatically "unbind" from all conversations to // which it was "bind" earlier. // -// https://vk.com/dev/groups.tagDelete +// https://dev.vk.com/method/groups.tagDelete func (vk *VK) GroupsTagDelete(params Params) (response int, err error) { err = vk.RequestUnmarshal("groups.tagDelete", &response, params) return @@ -691,7 +691,7 @@ func (vk *VK) GroupsTagDelete(params Params) (response int, err error) { // GroupsTagUpdate allows to change an existing tag. // -// https://vk.com/dev/groups.tagUpdate +// https://dev.vk.com/method/groups.tagUpdate func (vk *VK) GroupsTagUpdate(params Params) (response int, err error) { err = vk.RequestUnmarshal("groups.tagUpdate", &response, params) return @@ -699,7 +699,7 @@ func (vk *VK) GroupsTagUpdate(params Params) (response int, err error) { // GroupsToggleMarket method. // -// https://vk.com/dev/groups.toggleMarket +// https://dev.vk.com/method/groups.toggleMarket func (vk *VK) GroupsToggleMarket(params Params) (response int, err error) { err = vk.RequestUnmarshal("groups.toggleMarket", &response, params) return @@ -707,7 +707,7 @@ func (vk *VK) GroupsToggleMarket(params Params) (response int, err error) { // GroupsUnban groups.unban. // -// https://vk.com/dev/groups.unban +// https://dev.vk.com/method/groups.unban func (vk *VK) GroupsUnban(params Params) (response int, err error) { err = vk.RequestUnmarshal("groups.unban", &response, params) return diff --git a/api/leadforms.go b/api/leadforms.go index a79c5cd3..429cd255 100644 --- a/api/leadforms.go +++ b/api/leadforms.go @@ -12,7 +12,7 @@ type LeadFormsCreateResponse struct { // LeadFormsCreate leadForms.create. // -// https://vk.com/dev/leadForms.create +// https://dev.vk.com/method/leadForms.create func (vk *VK) LeadFormsCreate(params Params) (response LeadFormsCreateResponse, err error) { err = vk.RequestUnmarshal("leadForms.create", &response, params) return @@ -25,7 +25,7 @@ type LeadFormsDeleteResponse struct { // LeadFormsDelete leadForms.delete. // -// https://vk.com/dev/leadForms.delete +// https://dev.vk.com/method/leadForms.delete func (vk *VK) LeadFormsDelete(params Params) (response LeadFormsDeleteResponse, err error) { err = vk.RequestUnmarshal("leadForms.delete", &response, params) return @@ -36,7 +36,7 @@ type LeadFormsGetResponse object.LeadFormsForm // LeadFormsGet leadForms.get. // -// https://vk.com/dev/leadForms.get +// https://dev.vk.com/method/leadForms.get func (vk *VK) LeadFormsGet(params Params) (response LeadFormsGetResponse, err error) { err = vk.RequestUnmarshal("leadForms.get", &response, params) return @@ -49,7 +49,7 @@ type LeadFormsGetLeadsResponse struct { // LeadFormsGetLeads leadForms.getLeads. // -// https://vk.com/dev/leadForms.getLeads +// https://dev.vk.com/method/leadForms.getLeads func (vk *VK) LeadFormsGetLeads(params Params) (response LeadFormsGetLeadsResponse, err error) { err = vk.RequestUnmarshal("leadForms.getLeads", &response, params) return @@ -57,7 +57,7 @@ func (vk *VK) LeadFormsGetLeads(params Params) (response LeadFormsGetLeadsRespon // LeadFormsGetUploadURL leadForms.getUploadURL. // -// https://vk.com/dev/leadForms.getUploadURL +// https://dev.vk.com/method/leadForms.getUploadURL func (vk *VK) LeadFormsGetUploadURL(params Params) (response string, err error) { err = vk.RequestUnmarshal("leadForms.getUploadURL", &response, params) return @@ -68,7 +68,7 @@ type LeadFormsListResponse []object.LeadFormsForm // LeadFormsList leadForms.list. // -// https://vk.com/dev/leadForms.list +// https://dev.vk.com/method/leadForms.list func (vk *VK) LeadFormsList(params Params) (response LeadFormsListResponse, err error) { err = vk.RequestUnmarshal("leadForms.list", &response, params) return @@ -82,7 +82,7 @@ type LeadFormsUpdateResponse struct { // LeadFormsUpdate leadForms.update. // -// https://vk.com/dev/leadForms.update +// https://dev.vk.com/method/leadForms.update func (vk *VK) LeadFormsUpdate(params Params) (response LeadFormsUpdateResponse, err error) { err = vk.RequestUnmarshal("leadForms.update", &response, params) return diff --git a/api/leads.go b/api/leads.go index e01e7a92..d12403b4 100644 --- a/api/leads.go +++ b/api/leads.go @@ -9,7 +9,7 @@ type LeadsCheckUserResponse object.LeadsChecked // LeadsCheckUser checks if the user can start the lead. // -// https://vk.com/dev/leads.checkUser +// https://dev.vk.com/method/leads.checkUser func (vk *VK) LeadsCheckUser(params Params) (response LeadsCheckUserResponse, err error) { err = vk.RequestUnmarshal("leads.checkUser", &response, params) return @@ -20,7 +20,7 @@ type LeadsCompleteResponse object.LeadsComplete // LeadsComplete completes the lead started by user. // -// https://vk.com/dev/leads.complete +// https://dev.vk.com/method/leads.complete func (vk *VK) LeadsComplete(params Params) (response LeadsCompleteResponse, err error) { err = vk.RequestUnmarshal("leads.complete", &response, params) return @@ -31,7 +31,7 @@ type LeadsGetStatsResponse object.LeadsLead // LeadsGetStats returns lead stats data. // -// https://vk.com/dev/leads.getStats +// https://dev.vk.com/method/leads.getStats func (vk *VK) LeadsGetStats(params Params) (response LeadsGetStatsResponse, err error) { err = vk.RequestUnmarshal("leads.getStats", &response, params) return @@ -42,7 +42,7 @@ type LeadsGetUsersResponse object.LeadsEntry // LeadsGetUsers returns a list of last user actions for the offer. // -// https://vk.com/dev/leads.getUsers +// https://dev.vk.com/method/leads.getUsers func (vk *VK) LeadsGetUsers(params Params) (response LeadsGetUsersResponse, err error) { err = vk.RequestUnmarshal("leads.getUsers", &response, params) return @@ -56,7 +56,7 @@ type LeadsMetricHitResponse struct { // LeadsMetricHit counts the metric event. // -// https://vk.com/dev/leads.metricHit +// https://dev.vk.com/method/leads.metricHit func (vk *VK) LeadsMetricHit(params Params) (response LeadsMetricHitResponse, err error) { err = vk.RequestUnmarshal("leads.metricHit", &response, params) return @@ -67,7 +67,7 @@ type LeadsStartResponse object.LeadsStart // LeadsStart creates new session for the user passing the offer. // -// https://vk.com/dev/leads.start +// https://dev.vk.com/method/leads.start func (vk *VK) LeadsStart(params Params) (response LeadsStartResponse, err error) { err = vk.RequestUnmarshal("leads.start", &response, params) return diff --git a/api/likes.go b/api/likes.go index fc89c08b..f63d6cc9 100644 --- a/api/likes.go +++ b/api/likes.go @@ -11,7 +11,7 @@ type LikesAddResponse struct { // LikesAdd adds the specified object to the Likes list of the current user. // -// https://vk.com/dev/likes.add +// https://dev.vk.com/method/likes.add func (vk *VK) LikesAdd(params Params) (response LikesAddResponse, err error) { err = vk.RequestUnmarshal("likes.add", &response, params) return @@ -24,7 +24,7 @@ type LikesDeleteResponse struct { // LikesDelete deletes the specified object from the Likes list of the current user. // -// https://vk.com/dev/likes.delete +// https://dev.vk.com/method/likes.delete func (vk *VK) LikesDelete(params Params) (response LikesDeleteResponse, err error) { err = vk.RequestUnmarshal("likes.delete", &response, params) return @@ -40,7 +40,7 @@ type LikesGetListResponse struct { // // extended=0 // -// https://vk.com/dev/likes.getList +// https://dev.vk.com/method/likes.getList func (vk *VK) LikesGetList(params Params) (response LikesGetListResponse, err error) { err = vk.RequestUnmarshal("likes.getList", &response, params, Params{"extended": false}) @@ -57,7 +57,7 @@ type LikesGetListExtendedResponse struct { // // extended=1 // -// https://vk.com/dev/likes.getList +// https://dev.vk.com/method/likes.getList func (vk *VK) LikesGetListExtended(params Params) (response LikesGetListExtendedResponse, err error) { err = vk.RequestUnmarshal("likes.getList", &response, params, Params{"extended": true}) @@ -72,7 +72,7 @@ type LikesIsLikedResponse struct { // LikesIsLiked checks for the object in the Likes list of the specified user. // -// https://vk.com/dev/likes.isLiked +// https://dev.vk.com/method/likes.isLiked func (vk *VK) LikesIsLiked(params Params) (response LikesIsLikedResponse, err error) { err = vk.RequestUnmarshal("likes.isLiked", &response, params) return diff --git a/api/market.go b/api/market.go index e11f5a9f..332549e5 100644 --- a/api/market.go +++ b/api/market.go @@ -11,7 +11,7 @@ type MarketAddResponse struct { // MarketAdd adds a new item to the market. // -// https://vk.com/dev/market.add +// https://dev.vk.com/method/market.add func (vk *VK) MarketAdd(params Params) (response MarketAddResponse, err error) { err = vk.RequestUnmarshal("market.add", &response, params) return @@ -25,7 +25,7 @@ type MarketAddAlbumResponse struct { // MarketAddAlbum creates new collection of items. // -// https://vk.com/dev/market.addAlbum +// https://dev.vk.com/method/market.addAlbum func (vk *VK) MarketAddAlbum(params Params) (response MarketAddAlbumResponse, err error) { err = vk.RequestUnmarshal("market.addAlbum", &response, params) return @@ -33,7 +33,7 @@ func (vk *VK) MarketAddAlbum(params Params) (response MarketAddAlbumResponse, er // MarketAddToAlbum adds an item to one or multiple collections. // -// https://vk.com/dev/market.addToAlbum +// https://dev.vk.com/method/market.addToAlbum func (vk *VK) MarketAddToAlbum(params Params) (response int, err error) { err = vk.RequestUnmarshal("market.addToAlbum", &response, params) return @@ -41,7 +41,7 @@ func (vk *VK) MarketAddToAlbum(params Params) (response int, err error) { // MarketCreateComment creates a new comment for an item. // -// https://vk.com/dev/market.createComment +// https://dev.vk.com/method/market.createComment func (vk *VK) MarketCreateComment(params Params) (response int, err error) { err = vk.RequestUnmarshal("market.createComment", &response, params) return @@ -49,7 +49,7 @@ func (vk *VK) MarketCreateComment(params Params) (response int, err error) { // MarketDelete deletes an item. // -// https://vk.com/dev/market.delete +// https://dev.vk.com/method/market.delete func (vk *VK) MarketDelete(params Params) (response int, err error) { err = vk.RequestUnmarshal("market.delete", &response, params) return @@ -57,7 +57,7 @@ func (vk *VK) MarketDelete(params Params) (response int, err error) { // MarketDeleteAlbum deletes a collection of items. // -// https://vk.com/dev/market.deleteAlbum +// https://dev.vk.com/method/market.deleteAlbum func (vk *VK) MarketDeleteAlbum(params Params) (response int, err error) { err = vk.RequestUnmarshal("market.deleteAlbum", &response, params) return @@ -65,7 +65,7 @@ func (vk *VK) MarketDeleteAlbum(params Params) (response int, err error) { // MarketDeleteComment deletes an item's comment. // -// https://vk.com/dev/market.deleteComment +// https://dev.vk.com/method/market.deleteComment func (vk *VK) MarketDeleteComment(params Params) (response int, err error) { err = vk.RequestUnmarshal("market.deleteComment", &response, params) return @@ -73,7 +73,7 @@ func (vk *VK) MarketDeleteComment(params Params) (response int, err error) { // MarketEdit edits an item. // -// https://vk.com/dev/market.edit +// https://dev.vk.com/method/market.edit func (vk *VK) MarketEdit(params Params) (response int, err error) { err = vk.RequestUnmarshal("market.edit", &response, params) return @@ -81,7 +81,7 @@ func (vk *VK) MarketEdit(params Params) (response int, err error) { // MarketEditAlbum edits a collection of items. // -// https://vk.com/dev/market.editAlbum +// https://dev.vk.com/method/market.editAlbum func (vk *VK) MarketEditAlbum(params Params) (response int, err error) { err = vk.RequestUnmarshal("market.editAlbum", &response, params) return @@ -89,7 +89,7 @@ func (vk *VK) MarketEditAlbum(params Params) (response int, err error) { // MarketEditComment changes item comment's text. // -// https://vk.com/dev/market.editComment +// https://dev.vk.com/method/market.editComment func (vk *VK) MarketEditComment(params Params) (response int, err error) { err = vk.RequestUnmarshal("market.editComment", &response, params) return @@ -97,7 +97,7 @@ func (vk *VK) MarketEditComment(params Params) (response int, err error) { // MarketEditOrder edits an order. // -// https://vk.com/dev/market.editOrder +// https://dev.vk.com/method/market.editOrder func (vk *VK) MarketEditOrder(params Params) (response int, err error) { err = vk.RequestUnmarshal("market.editOrder", &response, params) return @@ -111,7 +111,7 @@ type MarketGetResponse struct { // MarketGet returns items list for a community. // -// https://vk.com/dev/market.get +// https://dev.vk.com/method/market.get func (vk *VK) MarketGet(params Params) (response MarketGetResponse, err error) { err = vk.RequestUnmarshal("market.get", &response, params) return @@ -125,7 +125,7 @@ type MarketGetAlbumByIDResponse struct { // MarketGetAlbumByID returns items album's data. // -// https://vk.com/dev/market.getAlbumById +// https://dev.vk.com/method/market.getAlbumById func (vk *VK) MarketGetAlbumByID(params Params) (response MarketGetAlbumByIDResponse, err error) { err = vk.RequestUnmarshal("market.getAlbumById", &response, params) return @@ -139,7 +139,7 @@ type MarketGetAlbumsResponse struct { // MarketGetAlbums returns community's collections list. // -// https://vk.com/dev/market.getAlbums +// https://dev.vk.com/method/market.getAlbums func (vk *VK) MarketGetAlbums(params Params) (response MarketGetAlbumsResponse, err error) { err = vk.RequestUnmarshal("market.getAlbums", &response, params) return @@ -153,7 +153,7 @@ type MarketGetByIDResponse struct { // MarketGetByID returns information about market items by their iDs. // -// https://vk.com/dev/market.getById +// https://dev.vk.com/method/market.getById func (vk *VK) MarketGetByID(params Params) (response MarketGetByIDResponse, err error) { err = vk.RequestUnmarshal("market.getById", &response, params) return @@ -167,7 +167,7 @@ type MarketGetCategoriesResponse struct { // MarketGetCategories returns a list of market categories. // -// https://vk.com/dev/market.getCategories +// https://dev.vk.com/method/market.getCategories func (vk *VK) MarketGetCategories(params Params) (response MarketGetCategoriesResponse, err error) { err = vk.RequestUnmarshal("market.getCategories", &response, params) return @@ -183,7 +183,7 @@ type MarketGetCommentsResponse struct { // // extended=0 // -// https://vk.com/dev/market.getComments +// https://dev.vk.com/method/market.getComments func (vk *VK) MarketGetComments(params Params) (response MarketGetCommentsResponse, err error) { err = vk.RequestUnmarshal("market.getComments", &response, params, Params{"extended": false}) @@ -201,7 +201,7 @@ type MarketGetCommentsExtendedResponse struct { // // extended=1 // -// https://vk.com/dev/market.getComments +// https://dev.vk.com/method/market.getComments func (vk *VK) MarketGetCommentsExtended(params Params) (response MarketGetCommentsExtendedResponse, err error) { err = vk.RequestUnmarshal("market.getComments", &response, params, Params{"extended": true}) @@ -216,7 +216,7 @@ type MarketGetGroupOrdersResponse struct { // MarketGetGroupOrders returns community's orders list. // -// https://vk.com/dev/market.getGroupOrders +// https://dev.vk.com/method/market.getGroupOrders func (vk *VK) MarketGetGroupOrders(params Params) (response MarketGetGroupOrdersResponse, err error) { err = vk.RequestUnmarshal("market.getGroupOrders", &response, params) return @@ -229,7 +229,7 @@ type MarketGetOrderByIDResponse struct { // MarketGetOrderByID returns order by id. // -// https://vk.com/dev/market.getOrderById +// https://dev.vk.com/method/market.getOrderById func (vk *VK) MarketGetOrderByID(params Params) (response MarketGetOrderByIDResponse, err error) { err = vk.RequestUnmarshal("market.getOrderById", &response, params) return @@ -243,7 +243,7 @@ type MarketGetOrderItemsResponse struct { // MarketGetOrderItems returns items of an order. // -// https://vk.com/dev/market.getOrderItems +// https://dev.vk.com/method/market.getOrderItems func (vk *VK) MarketGetOrderItems(params Params) (response MarketGetOrderItemsResponse, err error) { err = vk.RequestUnmarshal("market.getOrderItems", &response, params) return @@ -251,7 +251,7 @@ func (vk *VK) MarketGetOrderItems(params Params) (response MarketGetOrderItemsRe // MarketRemoveFromAlbum removes an item from one or multiple collections. // -// https://vk.com/dev/market.removeFromAlbum +// https://dev.vk.com/method/market.removeFromAlbum func (vk *VK) MarketRemoveFromAlbum(params Params) (response int, err error) { err = vk.RequestUnmarshal("market.removeFromAlbum", &response, params) return @@ -259,7 +259,7 @@ func (vk *VK) MarketRemoveFromAlbum(params Params) (response int, err error) { // MarketReorderAlbums reorders the collections list. // -// https://vk.com/dev/market.reorderAlbums +// https://dev.vk.com/method/market.reorderAlbums func (vk *VK) MarketReorderAlbums(params Params) (response int, err error) { err = vk.RequestUnmarshal("market.reorderAlbums", &response, params) return @@ -267,7 +267,7 @@ func (vk *VK) MarketReorderAlbums(params Params) (response int, err error) { // MarketReorderItems changes item place in a collection. // -// https://vk.com/dev/market.reorderItems +// https://dev.vk.com/method/market.reorderItems func (vk *VK) MarketReorderItems(params Params) (response int, err error) { err = vk.RequestUnmarshal("market.reorderItems", &response, params) return @@ -275,7 +275,7 @@ func (vk *VK) MarketReorderItems(params Params) (response int, err error) { // MarketReport sends a complaint to the item. // -// https://vk.com/dev/market.report +// https://dev.vk.com/method/market.report func (vk *VK) MarketReport(params Params) (response int, err error) { err = vk.RequestUnmarshal("market.report", &response, params) return @@ -283,7 +283,7 @@ func (vk *VK) MarketReport(params Params) (response int, err error) { // MarketReportComment sends a complaint to the item's comment. // -// https://vk.com/dev/market.reportComment +// https://dev.vk.com/method/market.reportComment func (vk *VK) MarketReportComment(params Params) (response int, err error) { err = vk.RequestUnmarshal("market.reportComment", &response, params) return @@ -291,7 +291,7 @@ func (vk *VK) MarketReportComment(params Params) (response int, err error) { // MarketRestore restores recently deleted item. // -// https://vk.com/dev/market.restore +// https://dev.vk.com/method/market.restore func (vk *VK) MarketRestore(params Params) (response int, err error) { err = vk.RequestUnmarshal("market.restore", &response, params) return @@ -299,7 +299,7 @@ func (vk *VK) MarketRestore(params Params) (response int, err error) { // MarketRestoreComment restores a recently deleted comment. // -// https://vk.com/dev/market.restoreComment +// https://dev.vk.com/method/market.restoreComment func (vk *VK) MarketRestoreComment(params Params) (response int, err error) { err = vk.RequestUnmarshal("market.restoreComment", &response, params) return @@ -314,7 +314,7 @@ type MarketSearchResponse struct { // MarketSearch searches market items in a community's catalog. // -// https://vk.com/dev/market.search +// https://dev.vk.com/method/market.search func (vk *VK) MarketSearch(params Params) (response MarketSearchResponse, err error) { err = vk.RequestUnmarshal("market.search", &response, params) return @@ -330,7 +330,7 @@ type MarketSearchItemsResponse struct { // MarketSearchItems method. // -// https://vk.com/dev/market.searchItems +// https://dev.vk.com/method/market.searchItems func (vk *VK) MarketSearchItems(params Params) (response MarketSearchItemsResponse, err error) { err = vk.RequestUnmarshal("market.searchItems", &response, params) return diff --git a/api/marusia.go b/api/marusia.go index 729dbc80..4599ec4b 100644 --- a/api/marusia.go +++ b/api/marusia.go @@ -11,7 +11,7 @@ type MarusiaGetPictureUploadLinkResponse struct { // MarusiaGetPictureUploadLink method. // -// https://vk.com/dev/marusia_skill_docs10 +// https://dev.vk.com/ru/marusia/media-api func (vk *VK) MarusiaGetPictureUploadLink(params Params) (response MarusiaGetPictureUploadLinkResponse, err error) { err = vk.RequestUnmarshal("marusia.getPictureUploadLink", &response, params) return @@ -25,7 +25,7 @@ type MarusiaSavePictureResponse struct { // MarusiaSavePicture method. // -// https://vk.com/dev/marusia_skill_docs10 +// https://dev.vk.com/ru/marusia/media-api func (vk *VK) MarusiaSavePicture(params Params) (response MarusiaSavePictureResponse, err error) { err = vk.RequestUnmarshal("marusia.savePicture", &response, params) return @@ -39,7 +39,7 @@ type MarusiaGetPicturesResponse struct { // MarusiaGetPictures method. // -// https://vk.com/dev/marusia_skill_docs10 +// https://dev.vk.com/ru/marusia/media-api func (vk *VK) MarusiaGetPictures(params Params) (response MarusiaGetPicturesResponse, err error) { err = vk.RequestUnmarshal("marusia.getPictures", &response, params) return @@ -47,7 +47,7 @@ func (vk *VK) MarusiaGetPictures(params Params) (response MarusiaGetPicturesResp // MarusiaDeletePicture delete picture. // -// https://vk.com/dev/marusia_skill_docs10 +// https://dev.vk.com/ru/marusia/media-api func (vk *VK) MarusiaDeletePicture(params Params) (response int, err error) { err = vk.RequestUnmarshal("marusia.deletePicture", &response, params) return @@ -60,7 +60,7 @@ type MarusiaGetAudioUploadLinkResponse struct { // MarusiaGetAudioUploadLink method. // -// https://vk.com/dev/marusia_skill_docs10 +// https://dev.vk.com/ru/marusia/media-api func (vk *VK) MarusiaGetAudioUploadLink(params Params) (response MarusiaGetAudioUploadLinkResponse, err error) { err = vk.RequestUnmarshal("marusia.getAudioUploadLink", &response, params) return @@ -74,7 +74,7 @@ type MarusiaCreateAudioResponse struct { // MarusiaCreateAudio method. // -// https://vk.com/dev/marusia_skill_docs10 +// https://dev.vk.com/ru/marusia/media-api func (vk *VK) MarusiaCreateAudio(params Params) (response MarusiaCreateAudioResponse, err error) { err = vk.RequestUnmarshal("marusia.createAudio", &response, params) return @@ -88,7 +88,7 @@ type MarusiaGetAudiosResponse struct { // MarusiaGetAudios method. // -// https://vk.com/dev/marusia_skill_docs10 +// https://dev.vk.com/ru/marusia/media-api func (vk *VK) MarusiaGetAudios(params Params) (response MarusiaGetAudiosResponse, err error) { err = vk.RequestUnmarshal("marusia.getAudios", &response, params) return @@ -96,7 +96,7 @@ func (vk *VK) MarusiaGetAudios(params Params) (response MarusiaGetAudiosResponse // MarusiaDeleteAudio delete audio. // -// https://vk.com/dev/marusia_skill_docs10 +// https://dev.vk.com/ru/marusia/media-api func (vk *VK) MarusiaDeleteAudio(params Params) (response int, err error) { err = vk.RequestUnmarshal("marusia.deleteAudio", &response, params) return diff --git a/api/messages.go b/api/messages.go index 0b15a6a5..bc4760db 100644 --- a/api/messages.go +++ b/api/messages.go @@ -9,7 +9,7 @@ import ( // MessagesAddChatUser adds a new user to a chat. // -// https://vk.com/dev/messages.addChatUser +// https://dev.vk.com/method/messages.addChatUser func (vk *VK) MessagesAddChatUser(params Params) (response int, err error) { err = vk.RequestUnmarshal("messages.addChatUser", &response, params) return @@ -17,7 +17,7 @@ func (vk *VK) MessagesAddChatUser(params Params) (response int, err error) { // MessagesAllowMessagesFromGroup allows sending messages from community to the current user. // -// https://vk.com/dev/messages.allowMessagesFromGroup +// https://dev.vk.com/method/messages.allowMessagesFromGroup func (vk *VK) MessagesAllowMessagesFromGroup(params Params) (response int, err error) { err = vk.RequestUnmarshal("messages.allowMessagesFromGroup", &response, params) return @@ -25,7 +25,7 @@ func (vk *VK) MessagesAllowMessagesFromGroup(params Params) (response int, err e // MessagesCreateChat creates a chat with several participants. // -// https://vk.com/dev/messages.createChat +// https://dev.vk.com/method/messages.createChat func (vk *VK) MessagesCreateChat(params Params) (response int, err error) { err = vk.RequestUnmarshal("messages.createChat", &response, params) return @@ -58,7 +58,7 @@ func (resp *MessagesDeleteResponse) DecodeMsgpack(dec *msgpack.Decoder) error { // MessagesDelete deletes one or more messages. // -// https://vk.com/dev/messages.delete +// https://dev.vk.com/method/messages.delete func (vk *VK) MessagesDelete(params Params) (response MessagesDeleteResponse, err error) { err = vk.RequestUnmarshal("messages.delete", &response, params) @@ -73,7 +73,7 @@ type MessagesDeleteChatPhotoResponse struct { // MessagesDeleteChatPhoto deletes a chat's cover picture. // -// https://vk.com/dev/messages.deleteChatPhoto +// https://dev.vk.com/method/messages.deleteChatPhoto func (vk *VK) MessagesDeleteChatPhoto(params Params) (response MessagesDeleteChatPhotoResponse, err error) { err = vk.RequestUnmarshal("messages.deleteChatPhoto", &response, params) return @@ -86,7 +86,7 @@ type MessagesDeleteConversationResponse struct { // MessagesDeleteConversation deletes private messages in a conversation. // -// https://vk.com/dev/messages.deleteConversation +// https://dev.vk.com/method/messages.deleteConversation func (vk *VK) MessagesDeleteConversation(params Params) (response MessagesDeleteConversationResponse, err error) { err = vk.RequestUnmarshal("messages.deleteConversation", &response, params) return @@ -94,7 +94,7 @@ func (vk *VK) MessagesDeleteConversation(params Params) (response MessagesDelete // MessagesDenyMessagesFromGroup denies sending message from community to the current user. // -// https://vk.com/dev/messages.denyMessagesFromGroup +// https://dev.vk.com/method/messages.denyMessagesFromGroup func (vk *VK) MessagesDenyMessagesFromGroup(params Params) (response int, err error) { err = vk.RequestUnmarshal("messages.denyMessagesFromGroup", &response, params) return @@ -102,7 +102,7 @@ func (vk *VK) MessagesDenyMessagesFromGroup(params Params) (response int, err er // MessagesEdit edits the message. // -// https://vk.com/dev/messages.edit +// https://dev.vk.com/method/messages.edit func (vk *VK) MessagesEdit(params Params) (response int, err error) { err = vk.RequestUnmarshal("messages.edit", &response, params) return @@ -110,7 +110,7 @@ func (vk *VK) MessagesEdit(params Params) (response int, err error) { // MessagesEditChat edits the title of a chat. // -// https://vk.com/dev/messages.editChat +// https://dev.vk.com/method/messages.editChat func (vk *VK) MessagesEditChat(params Params) (response int, err error) { err = vk.RequestUnmarshal("messages.editChat", &response, params) return @@ -120,7 +120,7 @@ func (vk *VK) MessagesEditChat(params Params) (response int, err error) { // // Deprecated: Use CallsForceFinish // -// https://vk.com/dev/messages.forceCallFinish +// https://dev.vk.com/method/messages.forceCallFinish func (vk *VK) MessagesForceCallFinish(params Params) (response int, err error) { err = vk.RequestUnmarshal("messages.forceCallFinish", &response, params) return @@ -135,7 +135,7 @@ type MessagesGetByConversationMessageIDResponse struct { // MessagesGetByConversationMessageID messages.getByConversationMessageId. // -// https://vk.com/dev/messages.getByConversationMessageId +// https://dev.vk.com/method/messages.getByConversationMessageId func (vk *VK) MessagesGetByConversationMessageID(params Params) ( response MessagesGetByConversationMessageIDResponse, err error, @@ -154,7 +154,7 @@ type MessagesGetByIDResponse struct { // // extended=0 // -// https://vk.com/dev/messages.getById +// https://dev.vk.com/method/messages.getById func (vk *VK) MessagesGetByID(params Params) (response MessagesGetByIDResponse, err error) { err = vk.RequestUnmarshal("messages.getById", &response, params, Params{"extended": false}) @@ -172,7 +172,7 @@ type MessagesGetByIDExtendedResponse struct { // // extended=1 // -// https://vk.com/dev/messages.getById +// https://dev.vk.com/method/messages.getById func (vk *VK) MessagesGetByIDExtended(params Params) (response MessagesGetByIDExtendedResponse, err error) { err = vk.RequestUnmarshal("messages.getById", &response, params, Params{"extended": true}) @@ -184,7 +184,7 @@ type MessagesGetChatResponse object.MessagesChat // MessagesGetChat returns information about a chat. // -// https://vk.com/dev/messages.getChat +// https://dev.vk.com/method/messages.getChat func (vk *VK) MessagesGetChat(params Params) (response MessagesGetChatResponse, err error) { err = vk.RequestUnmarshal("messages.getChat", &response, params) return @@ -195,7 +195,7 @@ type MessagesGetChatChatIDsResponse []object.MessagesChat // MessagesGetChatChatIDs returns information about a chat. // -// https://vk.com/dev/messages.getChat +// https://dev.vk.com/method/messages.getChat func (vk *VK) MessagesGetChatChatIDs(params Params) (response MessagesGetChatChatIDsResponse, err error) { err = vk.RequestUnmarshal("messages.getChat", &response, params) return @@ -209,7 +209,7 @@ type MessagesGetChatPreviewResponse struct { // MessagesGetChatPreview allows to receive chat preview by the invitation link. // -// https://vk.com/dev/messages.getChatPreview +// https://dev.vk.com/method/messages.getChatPreview func (vk *VK) MessagesGetChatPreview(params Params) (response MessagesGetChatPreviewResponse, err error) { err = vk.RequestUnmarshal("messages.getChatPreview", &response, params) return @@ -237,7 +237,7 @@ type MessagesGetConversationMembersResponse struct { // MessagesGetConversationMembers returns a list of IDs of users participating in a conversation. // -// https://vk.com/dev/messages.getConversationMembers +// https://dev.vk.com/method/messages.getConversationMembers func (vk *VK) MessagesGetConversationMembers(params Params) ( response MessagesGetConversationMembersResponse, err error, @@ -256,7 +256,7 @@ type MessagesGetConversationsResponse struct { // MessagesGetConversations returns a list of conversations. // -// https://vk.com/dev/messages.getConversations +// https://dev.vk.com/method/messages.getConversations func (vk *VK) MessagesGetConversations(params Params) (response MessagesGetConversationsResponse, err error) { err = vk.RequestUnmarshal("messages.getConversations", &response, params) return @@ -272,7 +272,7 @@ type MessagesGetConversationsByIDResponse struct { // // extended=0 // -// https://vk.com/dev/messages.getConversationsById +// https://dev.vk.com/method/messages.getConversationsById func (vk *VK) MessagesGetConversationsByID(params Params) (response MessagesGetConversationsByIDResponse, err error) { err = vk.RequestUnmarshal("messages.getConversationsById", &response, params, Params{"extended": false}) @@ -290,7 +290,7 @@ type MessagesGetConversationsByIDExtendedResponse struct { // // extended=1 // -// https://vk.com/dev/messages.getConversationsById +// https://dev.vk.com/method/messages.getConversationsById func (vk *VK) MessagesGetConversationsByIDExtended(params Params) ( response MessagesGetConversationsByIDExtendedResponse, err error, @@ -319,7 +319,7 @@ type MessagesGetHistoryResponse struct { // MessagesGetHistory returns message history for the specified user or group chat. // -// https://vk.com/dev/messages.getHistory +// https://dev.vk.com/method/messages.getHistory func (vk *VK) MessagesGetHistory(params Params) (response MessagesGetHistoryResponse, err error) { err = vk.RequestUnmarshal("messages.getHistory", &response, params) return @@ -334,7 +334,7 @@ type MessagesGetHistoryAttachmentsResponse struct { // MessagesGetHistoryAttachments returns media files from the dialog or group chat. // -// https://vk.com/dev/messages.getHistoryAttachments +// https://dev.vk.com/method/messages.getHistoryAttachments func (vk *VK) MessagesGetHistoryAttachments(params Params) (response MessagesGetHistoryAttachmentsResponse, err error) { err = vk.RequestUnmarshal("messages.getHistoryAttachments", &response, params) return @@ -352,7 +352,7 @@ type MessagesGetImportantMessagesResponse struct { // MessagesGetImportantMessages messages.getImportantMessages. // -// https://vk.com/dev/messages.getImportantMessages +// https://dev.vk.com/method/messages.getImportantMessages func (vk *VK) MessagesGetImportantMessages(params Params) (response MessagesGetImportantMessagesResponse, err error) { err = vk.RequestUnmarshal("messages.getImportantMessages", &response, params) return @@ -367,7 +367,7 @@ type MessagesGetIntentUsersResponse struct { // MessagesGetIntentUsers method. // -// https://vk.com/dev/messages.getIntentUsers +// https://dev.vk.com/method/messages.getIntentUsers func (vk *VK) MessagesGetIntentUsers(params Params) (response MessagesGetIntentUsersResponse, err error) { err = vk.RequestUnmarshal("messages.getIntentUsers", &response, params) return @@ -380,7 +380,7 @@ type MessagesGetInviteLinkResponse struct { // MessagesGetInviteLink receives a link to invite a user to the chat. // -// https://vk.com/dev/messages.getInviteLink +// https://dev.vk.com/method/messages.getInviteLink func (vk *VK) MessagesGetInviteLink(params Params) (response MessagesGetInviteLinkResponse, err error) { err = vk.RequestUnmarshal("messages.getInviteLink", &response, params) return @@ -391,7 +391,7 @@ type MessagesGetLastActivityResponse object.MessagesLastActivity // MessagesGetLastActivity returns a user's current status and date of last activity. // -// https://vk.com/dev/messages.getLastActivity +// https://dev.vk.com/method/messages.getLastActivity func (vk *VK) MessagesGetLastActivity(params Params) (response MessagesGetLastActivityResponse, err error) { err = vk.RequestUnmarshal("messages.getLastActivity", &response, params) return @@ -415,7 +415,7 @@ type MessagesGetLongPollHistoryResponse struct { // MessagesGetLongPollHistory returns updates in user's private messages. // -// https://vk.com/dev/messages.getLongPollHistory +// https://dev.vk.com/method/messages.getLongPollHistory func (vk *VK) MessagesGetLongPollHistory(params Params) (response MessagesGetLongPollHistoryResponse, err error) { err = vk.RequestUnmarshal("messages.getLongPollHistory", &response, params) return @@ -426,7 +426,7 @@ type MessagesGetLongPollServerResponse object.MessagesLongPollParams // MessagesGetLongPollServer returns data required for connection to a Long Poll server. // -// https://vk.com/dev/messages.getLongPollServer +// https://dev.vk.com/method/messages.getLongPollServer func (vk *VK) MessagesGetLongPollServer(params Params) (response MessagesGetLongPollServerResponse, err error) { err = vk.RequestUnmarshal("messages.getLongPollServer", &response, params) return @@ -440,7 +440,7 @@ type MessagesIsMessagesFromGroupAllowedResponse struct { // MessagesIsMessagesFromGroupAllowed returns information whether // sending messages from the community to current user is allowed. // -// https://vk.com/dev/messages.isMessagesFromGroupAllowed +// https://dev.vk.com/method/messages.isMessagesFromGroupAllowed func (vk *VK) MessagesIsMessagesFromGroupAllowed(params Params) ( response MessagesIsMessagesFromGroupAllowedResponse, err error, @@ -456,7 +456,7 @@ type MessagesJoinChatByInviteLinkResponse struct { // MessagesJoinChatByInviteLink allows to enter the chat by the invitation link. // -// https://vk.com/dev/messages.joinChatByInviteLink +// https://dev.vk.com/method/messages.joinChatByInviteLink func (vk *VK) MessagesJoinChatByInviteLink(params Params) (response MessagesJoinChatByInviteLinkResponse, err error) { err = vk.RequestUnmarshal("messages.joinChatByInviteLink", &response, params) return @@ -464,7 +464,7 @@ func (vk *VK) MessagesJoinChatByInviteLink(params Params) (response MessagesJoin // MessagesMarkAsAnsweredConversation messages.markAsAnsweredConversation. // -// https://vk.com/dev/messages.markAsAnsweredConversation +// https://dev.vk.com/method/messages.markAsAnsweredConversation func (vk *VK) MessagesMarkAsAnsweredConversation(params Params) (response int, err error) { err = vk.RequestUnmarshal("messages.markAsAnsweredConversation", &response, params) return @@ -475,7 +475,7 @@ type MessagesMarkAsImportantResponse []int // MessagesMarkAsImportant marks and un marks messages as important (starred). // -// https://vk.com/dev/messages.markAsImportant +// https://dev.vk.com/method/messages.markAsImportant func (vk *VK) MessagesMarkAsImportant(params Params) (response MessagesMarkAsImportantResponse, err error) { err = vk.RequestUnmarshal("messages.markAsImportant", &response, params) return @@ -483,7 +483,7 @@ func (vk *VK) MessagesMarkAsImportant(params Params) (response MessagesMarkAsImp // MessagesMarkAsImportantConversation messages.markAsImportantConversation. // -// https://vk.com/dev/messages.markAsImportantConversation +// https://dev.vk.com/method/messages.markAsImportantConversation func (vk *VK) MessagesMarkAsImportantConversation(params Params) (response int, err error) { err = vk.RequestUnmarshal("messages.markAsImportantConversation", &response, params) return @@ -491,7 +491,7 @@ func (vk *VK) MessagesMarkAsImportantConversation(params Params) (response int, // MessagesMarkAsRead marks messages as read. // -// https://vk.com/dev/messages.markAsRead +// https://dev.vk.com/method/messages.markAsRead func (vk *VK) MessagesMarkAsRead(params Params) (response int, err error) { err = vk.RequestUnmarshal("messages.markAsRead", &response, params) return @@ -502,7 +502,7 @@ type MessagesPinResponse object.MessagesMessage // MessagesPin messages.pin. // -// https://vk.com/dev/messages.pin +// https://dev.vk.com/method/messages.pin func (vk *VK) MessagesPin(params Params) (response MessagesPinResponse, err error) { err = vk.RequestUnmarshal("messages.pin", &response, params) return @@ -512,7 +512,7 @@ func (vk *VK) MessagesPin(params Params) (response MessagesPinResponse, err erro // current user started the chat, allows the user to remove another user from // the chat. // -// https://vk.com/dev/messages.removeChatUser +// https://dev.vk.com/method/messages.removeChatUser func (vk *VK) MessagesRemoveChatUser(params Params) (response int, err error) { err = vk.RequestUnmarshal("messages.removeChatUser", &response, params) return @@ -520,7 +520,7 @@ func (vk *VK) MessagesRemoveChatUser(params Params) (response int, err error) { // MessagesRestore restores a deleted message. // -// https://vk.com/dev/messages.restore +// https://dev.vk.com/method/messages.restore func (vk *VK) MessagesRestore(params Params) (response int, err error) { err = vk.RequestUnmarshal("messages.restore", &response, params) return @@ -536,7 +536,7 @@ type MessagesSearchResponse struct { // MessagesSearch returns a list of the current user's private messages that match search criteria. // -// https://vk.com/dev/messages.search +// https://dev.vk.com/method/messages.search func (vk *VK) MessagesSearch(params Params) (response MessagesSearchResponse, err error) { err = vk.RequestUnmarshal("messages.search", &response, params) return @@ -551,7 +551,7 @@ type MessagesSearchConversationsResponse struct { // MessagesSearchConversations returns a list of conversations that match search criteria. // -// https://vk.com/dev/messages.searchConversations +// https://dev.vk.com/method/messages.searchConversations func (vk *VK) MessagesSearchConversations(params Params) (response MessagesSearchConversationsResponse, err error) { err = vk.RequestUnmarshal("messages.searchConversations", &response, params) return @@ -561,7 +561,7 @@ func (vk *VK) MessagesSearchConversations(params Params) (response MessagesSearc // // For user_ids or peer_ids parameters, use MessagesSendUserIDs. // -// https://vk.com/dev/messages.send +// https://dev.vk.com/method/messages.send func (vk *VK) MessagesSend(params Params) (response int, err error) { reqParams := Params{ "user_ids": "", @@ -587,7 +587,7 @@ type MessagesSendUserIDsResponse []struct { // // need peer_ids; // -// https://vk.com/dev/messages.send +// https://dev.vk.com/method/messages.send func (vk *VK) MessagesSendPeerIDs(params Params) (response MessagesSendUserIDsResponse, err error) { err = vk.RequestUnmarshal("messages.send", &response, params) return @@ -597,7 +597,7 @@ func (vk *VK) MessagesSendPeerIDs(params Params) (response MessagesSendUserIDsRe // // need user_ids or peer_ids; // -// https://vk.com/dev/messages.send +// https://dev.vk.com/method/messages.send // // Deprecated: user_ids outdated, use MessagesSendPeerIDs. func (vk *VK) MessagesSendUserIDs(params Params) (response MessagesSendUserIDsResponse, err error) { @@ -606,7 +606,7 @@ func (vk *VK) MessagesSendUserIDs(params Params) (response MessagesSendUserIDsRe // MessagesSendMessageEventAnswer method. // -// https://vk.com/dev/messages.sendMessageEventAnswer +// https://dev.vk.com/method/messages.sendMessageEventAnswer func (vk *VK) MessagesSendMessageEventAnswer(params Params) (response int, err error) { err = vk.RequestUnmarshal("messages.sendMessageEventAnswer", &response, params) return @@ -614,7 +614,7 @@ func (vk *VK) MessagesSendMessageEventAnswer(params Params) (response int, err e // MessagesSendSticker sends a message. // -// https://vk.com/dev/messages.sendSticker +// https://dev.vk.com/method/messages.sendSticker func (vk *VK) MessagesSendSticker(params Params) (response int, err error) { err = vk.RequestUnmarshal("messages.sendSticker", &response, params, Params{"user_ids": ""}) @@ -623,7 +623,7 @@ func (vk *VK) MessagesSendSticker(params Params) (response int, err error) { // MessagesSetActivity changes the status of a user as typing in a conversation. // -// https://vk.com/dev/messages.setActivity +// https://dev.vk.com/method/messages.setActivity func (vk *VK) MessagesSetActivity(params Params) (response int, err error) { err = vk.RequestUnmarshal("messages.setActivity", &response, params) return @@ -637,7 +637,7 @@ type MessagesSetChatPhotoResponse struct { // MessagesSetChatPhoto sets a previously-uploaded picture as the cover picture of a chat. // -// https://vk.com/dev/messages.setChatPhoto +// https://dev.vk.com/method/messages.setChatPhoto func (vk *VK) MessagesSetChatPhoto(params Params) (response MessagesSetChatPhotoResponse, err error) { err = vk.RequestUnmarshal("messages.setChatPhoto", &response, params) return @@ -653,7 +653,7 @@ type MessagesStartCallResponse struct { // // Deprecated: Use CallsStart // -// https://vk.com/dev/messages.startCall +// https://dev.vk.com/method/messages.startCall func (vk *VK) MessagesStartCall(params Params) (response MessagesStartCallResponse, err error) { err = vk.RequestUnmarshal("messages.startCall", &response, params) return @@ -661,7 +661,7 @@ func (vk *VK) MessagesStartCall(params Params) (response MessagesStartCallRespon // MessagesUnpin messages.unpin. // -// https://vk.com/dev/messages.unpin +// https://dev.vk.com/method/messages.unpin func (vk *VK) MessagesUnpin(params Params) (response int, err error) { err = vk.RequestUnmarshal("messages.unpin", &response, params) return diff --git a/api/newsfeed.go b/api/newsfeed.go index 52f19cf3..0c5ae9d3 100644 --- a/api/newsfeed.go +++ b/api/newsfeed.go @@ -7,7 +7,7 @@ import ( // NewsfeedAddBan prevents news from specified users and communities // from appearing in the current user's newsfeed. // -// https://vk.com/dev/newsfeed.addBan +// https://dev.vk.com/method/newsfeed.addBan func (vk *VK) NewsfeedAddBan(params Params) (response int, err error) { err = vk.RequestUnmarshal("newsfeed.addBan", &response, params) return @@ -16,7 +16,7 @@ func (vk *VK) NewsfeedAddBan(params Params) (response int, err error) { // NewsfeedDeleteBan allows news from previously banned users and // communities to be shown in the current user's newsfeed. // -// https://vk.com/dev/newsfeed.deleteBan +// https://dev.vk.com/method/newsfeed.deleteBan func (vk *VK) NewsfeedDeleteBan(params Params) (response int, err error) { err = vk.RequestUnmarshal("newsfeed.deleteBan", &response, params) return @@ -24,7 +24,7 @@ func (vk *VK) NewsfeedDeleteBan(params Params) (response int, err error) { // NewsfeedDeleteList the method allows you to delete a custom news list. // -// https://vk.com/dev/newsfeed.deleteList +// https://dev.vk.com/method/newsfeed.deleteList func (vk *VK) NewsfeedDeleteList(params Params) (response int, err error) { err = vk.RequestUnmarshal("newsfeed.deleteList", &response, params) return @@ -39,7 +39,7 @@ type NewsfeedGetResponse struct { // NewsfeedGet returns data required to show newsfeed for the current user. // -// https://vk.com/dev/newsfeed.get +// https://dev.vk.com/method/newsfeed.get func (vk *VK) NewsfeedGet(params Params) (response NewsfeedGetResponse, err error) { err = vk.RequestUnmarshal("newsfeed.get", &response, params) return @@ -55,7 +55,7 @@ type NewsfeedGetBannedResponse struct { // // extended=0 // -// https://vk.com/dev/newsfeed.getBanned +// https://dev.vk.com/method/newsfeed.getBanned func (vk *VK) NewsfeedGetBanned(params Params) (response NewsfeedGetBannedResponse, err error) { err = vk.RequestUnmarshal("newsfeed.getBanned", &response, params, Params{"extended": false}) @@ -71,7 +71,7 @@ type NewsfeedGetBannedExtendedResponse struct { // // extended=1 // -// https://vk.com/dev/newsfeed.getBanned +// https://dev.vk.com/method/newsfeed.getBanned func (vk *VK) NewsfeedGetBannedExtended(params Params) (response NewsfeedGetBannedExtendedResponse, err error) { err = vk.RequestUnmarshal("newsfeed.getBanned", &response, params, Params{"extended": true}) @@ -87,7 +87,7 @@ type NewsfeedGetCommentsResponse struct { // NewsfeedGetComments returns a list of comments in the current user's newsfeed. // -// https://vk.com/dev/newsfeed.getComments +// https://dev.vk.com/method/newsfeed.getComments func (vk *VK) NewsfeedGetComments(params Params) (response NewsfeedGetCommentsResponse, err error) { err = vk.RequestUnmarshal("newsfeed.getComments", &response, params) return @@ -106,7 +106,7 @@ type NewsfeedGetListsResponse struct { // NewsfeedGetLists returns a list of newsfeeds followed by the current user. // -// https://vk.com/dev/newsfeed.getLists +// https://dev.vk.com/method/newsfeed.getLists func (vk *VK) NewsfeedGetLists(params Params) (response NewsfeedGetListsResponse, err error) { err = vk.RequestUnmarshal("newsfeed.getLists", &response, params) return @@ -120,7 +120,7 @@ type NewsfeedGetMentionsResponse struct { // NewsfeedGetMentions returns a list of posts on user walls in which the current user is mentioned. // -// https://vk.com/dev/newsfeed.getMentions +// https://dev.vk.com/method/newsfeed.getMentions func (vk *VK) NewsfeedGetMentions(params Params) (response NewsfeedGetMentionsResponse, err error) { err = vk.RequestUnmarshal("newsfeed.getMentions", &response, params) return @@ -137,7 +137,7 @@ type NewsfeedGetRecommendedResponse struct { // NewsfeedGetRecommended returns a list of newsfeeds recommended to the current user. // -// https://vk.com/dev/newsfeed.getRecommended +// https://dev.vk.com/method/newsfeed.getRecommended func (vk *VK) NewsfeedGetRecommended(params Params) (response NewsfeedGetRecommendedResponse, err error) { err = vk.RequestUnmarshal("newsfeed.getRecommended", &response, params) return @@ -151,7 +151,7 @@ type NewsfeedGetSuggestedSourcesResponse struct { // NewsfeedGetSuggestedSources returns communities and users that current user is suggested to follow. // -// https://vk.com/dev/newsfeed.getSuggestedSources +// https://dev.vk.com/method/newsfeed.getSuggestedSources func (vk *VK) NewsfeedGetSuggestedSources(params Params) (response NewsfeedGetSuggestedSourcesResponse, err error) { err = vk.RequestUnmarshal("newsfeed.getSuggestedSources", &response, params) return @@ -159,7 +159,7 @@ func (vk *VK) NewsfeedGetSuggestedSources(params Params) (response NewsfeedGetSu // NewsfeedIgnoreItem hides an item from the newsfeed. // -// https://vk.com/dev/newsfeed.ignoreItem +// https://dev.vk.com/method/newsfeed.ignoreItem func (vk *VK) NewsfeedIgnoreItem(params Params) (response int, err error) { err = vk.RequestUnmarshal("newsfeed.ignoreItem", &response, params) return @@ -167,7 +167,7 @@ func (vk *VK) NewsfeedIgnoreItem(params Params) (response int, err error) { // NewsfeedSaveList creates and edits user newsfeed lists. // -// https://vk.com/dev/newsfeed.saveList +// https://dev.vk.com/method/newsfeed.saveList func (vk *VK) NewsfeedSaveList(params Params) (response int, err error) { err = vk.RequestUnmarshal("newsfeed.saveList", &response, params) return @@ -185,7 +185,7 @@ type NewsfeedSearchResponse struct { // // extended=0 // -// https://vk.com/dev/newsfeed.search +// https://dev.vk.com/method/newsfeed.search func (vk *VK) NewsfeedSearch(params Params) (response NewsfeedSearchResponse, err error) { err = vk.RequestUnmarshal("newsfeed.search", &response, params, Params{"extended": false}) @@ -206,7 +206,7 @@ type NewsfeedSearchExtendedResponse struct { // // extended=1 // -// https://vk.com/dev/newsfeed.search +// https://dev.vk.com/method/newsfeed.search func (vk *VK) NewsfeedSearchExtended(params Params) (response NewsfeedSearchExtendedResponse, err error) { err = vk.RequestUnmarshal("newsfeed.search", &response, params, Params{"extended": true}) @@ -215,7 +215,7 @@ func (vk *VK) NewsfeedSearchExtended(params Params) (response NewsfeedSearchExte // NewsfeedUnignoreItem returns a hidden item to the newsfeed. // -// https://vk.com/dev/newsfeed.unignoreItem +// https://dev.vk.com/method/newsfeed.unignoreItem func (vk *VK) NewsfeedUnignoreItem(params Params) (response int, err error) { err = vk.RequestUnmarshal("newsfeed.unignoreItem", &response, params) return @@ -223,7 +223,7 @@ func (vk *VK) NewsfeedUnignoreItem(params Params) (response int, err error) { // NewsfeedUnsubscribe unsubscribes the current user from specified newsfeeds. // -// https://vk.com/dev/newsfeed.unsubscribe +// https://dev.vk.com/method/newsfeed.unsubscribe func (vk *VK) NewsfeedUnsubscribe(params Params) (response int, err error) { err = vk.RequestUnmarshal("newsfeed.unsubscribe", &response, params) return diff --git a/api/notes.go b/api/notes.go index dd0d4f5e..ab2f6c5e 100644 --- a/api/notes.go +++ b/api/notes.go @@ -6,7 +6,7 @@ import ( // NotesAdd creates a new note for the current user. // -// https://vk.com/dev/notes.add +// https://dev.vk.com/method/notes.add func (vk *VK) NotesAdd(params Params) (response int, err error) { err = vk.RequestUnmarshal("notes.add", &response, params) return @@ -14,7 +14,7 @@ func (vk *VK) NotesAdd(params Params) (response int, err error) { // NotesCreateComment adds a new comment on a note. // -// https://vk.com/dev/notes.createComment +// https://dev.vk.com/method/notes.createComment func (vk *VK) NotesCreateComment(params Params) (response int, err error) { err = vk.RequestUnmarshal("notes.createComment", &response, params) return @@ -22,7 +22,7 @@ func (vk *VK) NotesCreateComment(params Params) (response int, err error) { // NotesDelete deletes a note of the current user. // -// https://vk.com/dev/notes.delete +// https://dev.vk.com/method/notes.delete func (vk *VK) NotesDelete(params Params) (response int, err error) { err = vk.RequestUnmarshal("notes.delete", &response, params) return @@ -30,7 +30,7 @@ func (vk *VK) NotesDelete(params Params) (response int, err error) { // NotesDeleteComment deletes a comment on a note. // -// https://vk.com/dev/notes.deleteComment +// https://dev.vk.com/method/notes.deleteComment func (vk *VK) NotesDeleteComment(params Params) (response int, err error) { err = vk.RequestUnmarshal("notes.deleteComment", &response, params) return @@ -38,7 +38,7 @@ func (vk *VK) NotesDeleteComment(params Params) (response int, err error) { // NotesEdit edits a note of the current user. // -// https://vk.com/dev/notes.edit +// https://dev.vk.com/method/notes.edit func (vk *VK) NotesEdit(params Params) (response int, err error) { err = vk.RequestUnmarshal("notes.edit", &response, params) return @@ -46,7 +46,7 @@ func (vk *VK) NotesEdit(params Params) (response int, err error) { // NotesEditComment edits a comment on a note. // -// https://vk.com/dev/notes.editComment +// https://dev.vk.com/method/notes.editComment func (vk *VK) NotesEditComment(params Params) (response int, err error) { err = vk.RequestUnmarshal("notes.editComment", &response, params) return @@ -60,7 +60,7 @@ type NotesGetResponse struct { // NotesGet returns a list of notes created by a user. // -// https://vk.com/dev/notes.get +// https://dev.vk.com/method/notes.get func (vk *VK) NotesGet(params Params) (response NotesGetResponse, err error) { err = vk.RequestUnmarshal("notes.get", &response, params) return @@ -71,7 +71,7 @@ type NotesGetByIDResponse object.NotesNote // NotesGetByID returns a note by its ID. // -// https://vk.com/dev/notes.getById +// https://dev.vk.com/method/notes.getById func (vk *VK) NotesGetByID(params Params) (response NotesGetByIDResponse, err error) { err = vk.RequestUnmarshal("notes.getById", &response, params) return @@ -85,7 +85,7 @@ type NotesGetCommentsResponse struct { // NotesGetComments returns a list of comments on a note. // -// https://vk.com/dev/notes.getComments +// https://dev.vk.com/method/notes.getComments func (vk *VK) NotesGetComments(params Params) (response NotesGetCommentsResponse, err error) { err = vk.RequestUnmarshal("notes.getComments", &response, params) return @@ -93,7 +93,7 @@ func (vk *VK) NotesGetComments(params Params) (response NotesGetCommentsResponse // NotesRestoreComment restores a deleted comment on a note. // -// https://vk.com/dev/notes.restoreComment +// https://dev.vk.com/method/notes.restoreComment func (vk *VK) NotesRestoreComment(params Params) (response int, err error) { err = vk.RequestUnmarshal("notes.restoreComment", &response, params) return diff --git a/api/notifications.go b/api/notifications.go index 8630a1d2..73e32fa4 100644 --- a/api/notifications.go +++ b/api/notifications.go @@ -20,7 +20,7 @@ type NotificationsGetResponse struct { // NotificationsGet returns a list of notifications about other users' feedback to the current user's wall posts. // -// https://vk.com/dev/notifications.get +// https://dev.vk.com/method/notifications.get func (vk *VK) NotificationsGet(params Params) (response NotificationsGetResponse, err error) { err = vk.RequestUnmarshal("notifications.get", &response, params) return @@ -29,7 +29,7 @@ func (vk *VK) NotificationsGet(params Params) (response NotificationsGetResponse // NotificationsMarkAsViewed resets the counter of new notifications // about other users' feedback to the current user's wall posts. // -// https://vk.com/dev/notifications.markAsViewed +// https://dev.vk.com/method/notifications.markAsViewed func (vk *VK) NotificationsMarkAsViewed(params Params) (response int, err error) { err = vk.RequestUnmarshal("notifications.markAsViewed", &response, params) return @@ -47,7 +47,7 @@ type NotificationsSendMessageResponse []struct { // NotificationsSendMessage sends notification to the VK Apps user. // -// https://vk.com/dev/notifications.sendMessage +// https://dev.vk.com/method/notifications.sendMessage func (vk *VK) NotificationsSendMessage(params Params) (response NotificationsSendMessageResponse, err error) { err = vk.RequestUnmarshal("notifications.sendMessage", &response, params) return diff --git a/api/oauth/README.md b/api/oauth/README.md index ddceee6d..b9c94186 100644 --- a/api/oauth/README.md +++ b/api/oauth/README.md @@ -1,7 +1,7 @@ # Получение ключа доступа [![PkgGoDev][doc-badge]][doc] -[![VK][dev-badge]](https://vk.com/dev/access_token) +[![VK][dev-badge]](https://dev.vk.com/ru/api/access-token/getting-started) Для работы со всеми методами API Вам необходимо передавать в запросе **access_token** — специальный ключ доступа. Он представляет собой строку из @@ -11,19 +11,19 @@ ВКонтакте поддерживает несколько способов получения ключа доступа по OAuth 2.0: 1. **Implicit flow** — требует встраивания браузера в ваше приложение. -Ключ возвращается на устройство пользователя, где был открыт диалог авторизации -(в виде дополнительного параметра URL). Такой ключ может быть использован -только для запросов непосредственно с устройства пользователя. + Ключ возвращается на устройство пользователя, где был открыт диалог авторизации + (в виде дополнительного параметра URL). Такой ключ может быть использован + только для запросов непосредственно с устройства пользователя. 2. **Authorization code flow** — двухэтапный вариант с дополнительной -аутентификацией Вашего сервера. Ключ доступа возвращается непосредственно на -сервер и может быть использован, например, для автоматизированных запросов. + аутентификацией Вашего сервера. Ключ доступа возвращается непосредственно на + сервер и может быть использован, например, для автоматизированных запросов. 3. **Direct Authorization** — прямая авторизация используя логин и пароль. ## Права доступа приложения -[![VK][dev-badge]](https://vk.com/dev/permissions) +[![VK][dev-badge]](https://dev.vk.com/ru/reference/access-rights) Права доступа определяют возможность использования токена для работы с тем или иным разделом данных. Так, например, для отправки личного сообщения от имени @@ -41,7 +41,7 @@ scope := oauth.ScopeUserFriends + oauth.ScopeUserStatus // 1026 ``` С помощью метода -[account.getAppPermissions](https://vk.com/dev/account.getAppPermissions), +[account.getAppPermissions](https://dev.vk.com/method/account.getAppPermissions), можно получить битовую маску настроек текущего пользователя в данном приложении. Если, имея битовую маску 1026, Вы хотите проверить, имеет ли она доступ к @@ -62,7 +62,7 @@ if oauth.CheckScope(scope, oauth.ScopeUserFriends, oauth.ScopeUserStatus) { ### Authorization code flow -[![VK][dev-badge]](https://vk.com/dev/authcode_flow_user) +[![VK][dev-badge]](https://dev.vk.com/ru/api/access-token/authcode-flow-user) Используйте Authorization Code Flow для вызова методов API ВКонтакте с серверной части Вашего приложения. Ключ доступа, полученный таким способом, не @@ -118,7 +118,7 @@ func callback(w http.ResponseWriter, req *http.Request) { ### Implicit flow -[![VK][dev-badge]](https://vk.com/dev/implicit_flow_user) +[![VK][dev-badge]](https://dev.vk.com/ru/api/access-token/implicit-flow-user) Используйте Implicit Flow для вызова методов API ВКонтакте непосредственно с устройства пользователя. @@ -180,10 +180,9 @@ fmt.Printf( ### Direct Authorization -[![VK][dev-badge]](https://vk.com/dev/auth_direct) +[![VK][dev-badge]](https://dev.vk.com/ru/api/direct-auth) -> **Внимание! Доступ к этому типу авторизации может быть получен только после** -> **предварительного согласования с администрацией ВКонтакте.** +> **Внимание! Доступ к этому типу авторизации может быть получен только после** > **предварительного согласования с администрацией ВКонтакте.** > > Для подачи заявки на получение доступа Вам необходимо обратиться в службу > поддержки, указав ID Вашего приложения. @@ -280,7 +279,7 @@ fmt.Printf( авторизации. Получите ключ доступа пользователя с правами `scope=groups` и сделайте запрос к -методу [groups.get](https://vk.com/dev/groups.get) с параметром `filter=admin`, +методу [groups.get](https://dev.vk.com/method/groups.get) с параметром `filter=admin`, чтобы получить список идентификаторов администрируемых сообществ. Затем используйте все полученные значения или их часть в качестве параметра @@ -288,7 +287,7 @@ fmt.Printf( ### Authorization code flow -[![VK][dev-badge]](https://vk.com/dev/authcode_flow_group) +[![VK][dev-badge]](https://dev.vk.com/ru/api/access-token/authcode-flow-community) Используйте Authorization Code Flow для вызова методов API ВКонтакте с серверной части Вашего приложения. Ключ доступа, полученный таким способом, не привязан к @@ -340,7 +339,7 @@ func callback(w http.ResponseWriter, req *http.Request) { ### Implicit flow -[![VK][dev-badge]](https://vk.com/dev/implicit_flow_group) +[![VK][dev-badge]](https://dev.vk.com/ru/api/access-token/implicit-flow-community) Используйте Implicit Flow для вызова методов API ВКонтакте непосредственно с устройства пользователя. @@ -424,7 +423,7 @@ for _, groupToken := range t.Groups { [doc-badge]: https://pkg.go.dev/badge/github.com/SevereCloud/vksdk/v2/api/oauth [doc]: https://pkg.go.dev/github.com/SevereCloud/vksdk/v2/api/oauth [dev-badge]: https://img.shields.io/badge/developers-%234a76a8.svg?logo=VK&logoColor=white -[users.get]: https://vk.com/dev/users.get -[secure.addAppEvent]: https://vk.com/dev/secure.addAppEvent -[secure.sendNotification]: https://vk.com/dev/secure.sendNotification +[users.get]: https://dev.vk.com/method/users.get +[secure.addAppEvent]: https://dev.vk.com/method/secure.addAppEvent +[secure.sendNotification]: https://dev.vk.com/method/secure.sendNotification [appsmanage]: https://vk.com/apps?act=manage diff --git a/api/oauth/group.go b/api/oauth/group.go index 9981cfeb..2ea5ec41 100644 --- a/api/oauth/group.go +++ b/api/oauth/group.go @@ -132,7 +132,7 @@ func (p GroupParams) Values() *url.Values { // ImplicitFlowGroup need to run methods directly from users devices. Access // token received this way can not be used for server requests. // -// https://vk.com/dev/implicit_flow_group +// https://dev.vk.com/ru/api/access-token/implicit-flow-community func ImplicitFlowGroup(p GroupParams) *url.URL { q := p.Values() q.Set("response_type", "token") @@ -150,7 +150,7 @@ func ImplicitFlowGroup(p GroupParams) *url.URL { // AuthCodeFlowGroup need to run VK API methods from the server side of an // application. Access token received this way is not bound to an ip address. // -// https://vk.com/dev/authcode_flow_group +// https://dev.vk.com/ru/api/access-token/authcode-flow-community type AuthCodeFlowGroup struct { params GroupParams clientSecret string diff --git a/api/oauth/user.go b/api/oauth/user.go index e466c40e..c0a19763 100644 --- a/api/oauth/user.go +++ b/api/oauth/user.go @@ -105,7 +105,7 @@ func (p UserParams) Values() *url.Values { // ImplicitFlowUser need to run methods directly from users devices. Access // token received this way can not be used for server requests. // -// https://vk.com/dev/implicit_flow_user +// https://dev.vk.com/ru/api/access-token/implicit-flow-user func ImplicitFlowUser(p UserParams) *url.URL { q := p.Values() q.Set("response_type", "token") @@ -124,7 +124,7 @@ func ImplicitFlowUser(p UserParams) *url.URL { // application. Access token received this way is not bound to an ip address // but set of permissions that can be granted is limited for security reasons. // -// https://vk.com/dev/authcode_flow_user +// https://dev.vk.com/ru/api/access-token/authcode-flow-user type AuthCodeFlowUser struct { params UserParams clientSecret string @@ -308,7 +308,7 @@ func buildDirectAuthRequest(p DirectAuthParams) *http.Request { // sufficient for using API in the future without repeating authorization // procedure. // -// See https://vk.com/dev/auth_direct +// See https://dev.vk.com/ru/api/direct-auth func DirectAuth(p DirectAuthParams) (*UserToken, error) { req := buildDirectAuthRequest(p) diff --git a/api/orders.go b/api/orders.go index 35dfac42..5c69ea50 100644 --- a/api/orders.go +++ b/api/orders.go @@ -6,7 +6,7 @@ import ( // OrdersCancelSubscription allows to cancel subscription. // -// https://vk.com/dev/orders.cancelSubscription +// https://dev.vk.com/method/orders.cancelSubscription func (vk *VK) OrdersCancelSubscription(params Params) (response int, err error) { err = vk.RequestUnmarshal("orders.cancelSubscription", &response, params) return @@ -17,7 +17,7 @@ type OrdersChangeStateResponse string // New state // OrdersChangeState changes order status. // -// https://vk.com/dev/orders.changeState +// https://dev.vk.com/method/orders.changeState func (vk *VK) OrdersChangeState(params Params) (response OrdersChangeStateResponse, err error) { err = vk.RequestUnmarshal("orders.changeState", &response, params) return @@ -28,7 +28,7 @@ type OrdersGetResponse []object.OrdersOrder // OrdersGet returns a list of orders. // -// https://vk.com/dev/orders.get +// https://dev.vk.com/method/orders.get func (vk *VK) OrdersGet(params Params) (response OrdersGetResponse, err error) { err = vk.RequestUnmarshal("orders.get", &response, params) return @@ -39,7 +39,7 @@ type OrdersGetAmountResponse []object.OrdersAmount // OrdersGetAmount returns the cost of votes in the user's consent. // -// https://vk.com/dev/orders.getAmount +// https://dev.vk.com/method/orders.getAmount func (vk *VK) OrdersGetAmount(params Params) (response OrdersGetAmountResponse, err error) { err = vk.RequestUnmarshal("orders.getAmount", &response, params) return @@ -50,7 +50,7 @@ type OrdersGetByIDResponse []object.OrdersOrder // OrdersGetByID returns information about orders by their IDs. // -// https://vk.com/dev/orders.getByID +// https://dev.vk.com/method/orders.getByID func (vk *VK) OrdersGetByID(params Params) (response OrdersGetByIDResponse, err error) { err = vk.RequestUnmarshal("orders.getById", &response, params) return @@ -61,7 +61,7 @@ type OrdersGetUserSubscriptionByIDResponse object.OrdersSubscription // OrdersGetUserSubscriptionByID allows to get subscription by its ID. // -// https://vk.com/dev/orders.getUserSubscriptionById +// https://dev.vk.com/method/orders.getUserSubscriptionById func (vk *VK) OrdersGetUserSubscriptionByID(params Params) (response OrdersGetUserSubscriptionByIDResponse, err error) { err = vk.RequestUnmarshal("orders.getUserSubscriptionById", &response, params) return @@ -75,7 +75,7 @@ type OrdersGetUserSubscriptionsResponse struct { // OrdersGetUserSubscriptions allows to get user's active subscriptions. // -// https://vk.com/dev/orders.getUserSubscriptions +// https://dev.vk.com/method/orders.getUserSubscriptions func (vk *VK) OrdersGetUserSubscriptions(params Params) (response OrdersGetUserSubscriptionsResponse, err error) { err = vk.RequestUnmarshal("orders.getUserSubscriptions", &response, params) return @@ -83,7 +83,7 @@ func (vk *VK) OrdersGetUserSubscriptions(params Params) (response OrdersGetUserS // OrdersUpdateSubscription allows to update subscription price. // -// https://vk.com/dev/orders.updateSubscription +// https://dev.vk.com/method/orders.updateSubscription func (vk *VK) OrdersUpdateSubscription(params Params) (response int, err error) { err = vk.RequestUnmarshal("orders.updateSubscription", &response, params) return diff --git a/api/pages.go b/api/pages.go index 7f4a2c25..fe80fbe1 100644 --- a/api/pages.go +++ b/api/pages.go @@ -6,7 +6,7 @@ import ( // PagesClearCache allows to clear the cache of particular external pages which may be attached to VK posts. // -// https://vk.com/dev/pages.clearCache +// https://dev.vk.com/method/pages.clearCache func (vk *VK) PagesClearCache(params Params) (response int, err error) { err = vk.RequestUnmarshal("pages.clearCache", &response, params) return @@ -17,7 +17,7 @@ type PagesGetResponse object.PagesWikipageFull // PagesGet returns information about a wiki page. // -// https://vk.com/dev/pages.get +// https://dev.vk.com/method/pages.get func (vk *VK) PagesGet(params Params) (response PagesGetResponse, err error) { err = vk.RequestUnmarshal("pages.get", &response, params) return @@ -28,7 +28,7 @@ type PagesGetHistoryResponse []object.PagesWikipageHistory // PagesGetHistory returns a list of all previous versions of a wiki page. // -// https://vk.com/dev/pages.getHistory +// https://dev.vk.com/method/pages.getHistory func (vk *VK) PagesGetHistory(params Params) (response PagesGetHistoryResponse, err error) { err = vk.RequestUnmarshal("pages.getHistory", &response, params) return @@ -39,7 +39,7 @@ type PagesGetTitlesResponse []object.PagesWikipageFull // PagesGetTitles returns a list of wiki pages in a group. // -// https://vk.com/dev/pages.getTitles +// https://dev.vk.com/method/pages.getTitles func (vk *VK) PagesGetTitles(params Params) (response PagesGetTitlesResponse, err error) { err = vk.RequestUnmarshal("pages.getTitles", &response, params) return @@ -50,7 +50,7 @@ type PagesGetVersionResponse object.PagesWikipageFull // PagesGetVersion returns the text of one of the previous versions of a wiki page. // -// https://vk.com/dev/pages.getVersion +// https://dev.vk.com/method/pages.getVersion func (vk *VK) PagesGetVersion(params Params) (response PagesGetVersionResponse, err error) { err = vk.RequestUnmarshal("pages.getVersion", &response, params) return @@ -58,7 +58,7 @@ func (vk *VK) PagesGetVersion(params Params) (response PagesGetVersionResponse, // PagesParseWiki returns HTML representation of the wiki markup. // -// https://vk.com/dev/pages.parseWiki +// https://dev.vk.com/method/pages.parseWiki func (vk *VK) PagesParseWiki(params Params) (response string, err error) { err = vk.RequestUnmarshal("pages.parseWiki", &response, params) return @@ -66,7 +66,7 @@ func (vk *VK) PagesParseWiki(params Params) (response string, err error) { // PagesSave saves the text of a wiki page. // -// https://vk.com/dev/pages.save +// https://dev.vk.com/method/pages.save func (vk *VK) PagesSave(params Params) (response int, err error) { err = vk.RequestUnmarshal("pages.save", &response, params) return @@ -74,7 +74,7 @@ func (vk *VK) PagesSave(params Params) (response int, err error) { // PagesSaveAccess saves modified read and edit access settings for a wiki page. // -// https://vk.com/dev/pages.saveAccess +// https://dev.vk.com/method/pages.saveAccess func (vk *VK) PagesSaveAccess(params Params) (response int, err error) { err = vk.RequestUnmarshal("pages.saveAccess", &response, params) return diff --git a/api/params/account.go b/api/params/account.go index 83edda74..e30c62d9 100644 --- a/api/params/account.go +++ b/api/params/account.go @@ -6,7 +6,7 @@ import ( // AccountBanBuilder builder. // -// https://vk.com/dev/account.ban +// https://dev.vk.com/method/account.ban type AccountBanBuilder struct { api.Params } @@ -26,7 +26,7 @@ func (b *AccountBanBuilder) OwnerID(v int) *AccountBanBuilder { // // Changes a user password after access is successfully restored with the [vk.com/dev/auth.restore|auth.restore] method. // -// https://vk.com/dev/account.changePassword +// https://dev.vk.com/method/account.changePassword type AccountChangePasswordBuilder struct { api.Params } @@ -67,7 +67,7 @@ func (b *AccountChangePasswordBuilder) NewPassword(v string) *AccountChangePassw // Returns a list of active ads (offers) which executed by the user will bring him/her respective number of votes to // his balance in the application. // -// https://vk.com/dev/account.getActiveOffers +// https://dev.vk.com/method/account.getActiveOffers type AccountGetActiveOffersBuilder struct { api.Params } @@ -93,7 +93,7 @@ func (b *AccountGetActiveOffersBuilder) Count(v int) *AccountGetActiveOffersBuil // // Gets settings of the user in this application. // -// https://vk.com/dev/account.getAppPermissions +// https://dev.vk.com/method/account.getAppPermissions type AccountGetAppPermissionsBuilder struct { api.Params } @@ -113,7 +113,7 @@ func (b *AccountGetAppPermissionsBuilder) UserID(v int) *AccountGetAppPermission // // Returns a user's blacklist. // -// https://vk.com/dev/account.getBanned +// https://dev.vk.com/method/account.getBanned type AccountGetBannedBuilder struct { api.Params } @@ -139,7 +139,7 @@ func (b *AccountGetBannedBuilder) Count(v int) *AccountGetBannedBuilder { // // Returns non-null values of user counters. // -// https://vk.com/dev/account.getCounters +// https://dev.vk.com/method/account.getCounters type AccountGetCountersBuilder struct { api.Params } @@ -165,7 +165,7 @@ func (b *AccountGetCountersBuilder) UserID(v int) *AccountGetCountersBuilder { // // Returns current account info. // -// https://vk.com/dev/account.getInfo +// https://dev.vk.com/method/account.getInfo type AccountGetInfoBuilder struct { api.Params } @@ -187,7 +187,7 @@ func (b *AccountGetInfoBuilder) Fields(v []string) *AccountGetInfoBuilder { // // Gets settings of push notifications. // -// https://vk.com/dev/account.getPushSettings +// https://dev.vk.com/method/account.getPushSettings type AccountGetPushSettingsBuilder struct { api.Params } @@ -207,7 +207,7 @@ func (b *AccountGetPushSettingsBuilder) DeviceID(v string) *AccountGetPushSettin // // Subscribes an iOS/Android/Windows Phone-based device to receive push notifications. // -// https://vk.com/dev/account.registerDevice +// https://dev.vk.com/method/account.registerDevice type AccountRegisterDeviceBuilder struct { api.Params } @@ -263,7 +263,7 @@ func (b *AccountRegisterDeviceBuilder) Sandbox(v bool) *AccountRegisterDeviceBui // // Edits current profile info. // -// https://vk.com/dev/account.saveProfileInfo +// https://dev.vk.com/method/account.saveProfileInfo type AccountSaveProfileInfoBuilder struct { api.Params } @@ -387,7 +387,7 @@ func (b *AccountSaveProfileInfoBuilder) Status(v string) *AccountSaveProfileInfo // // Allows to edit the current account info. // -// https://vk.com/dev/account.setInfo +// https://dev.vk.com/method/account.setInfo type AccountSetInfoBuilder struct { api.Params } @@ -413,7 +413,7 @@ func (b *AccountSetInfoBuilder) Value(v string) *AccountSetInfoBuilder { // // Sets an application screen name (up to 17 characters), that is shown to the user in the left menu. // -// https://vk.com/dev/account.setNameInMenu +// https://dev.vk.com/method/account.setNameInMenu type AccountSetNameInMenuBuilder struct { api.Params } @@ -439,7 +439,7 @@ func (b *AccountSetNameInMenuBuilder) Name(v string) *AccountSetNameInMenuBuilde // // Marks the current user as online for 15 minutes. // -// https://vk.com/dev/account.setOnline +// https://dev.vk.com/method/account.setOnline type AccountSetOnlineBuilder struct { api.Params } @@ -459,7 +459,7 @@ func (b *AccountSetOnlineBuilder) Voip(v bool) *AccountSetOnlineBuilder { // // Change push settings. // -// https://vk.com/dev/account.setPushSettings +// https://dev.vk.com/method/account.setPushSettings type AccountSetPushSettingsBuilder struct { api.Params } @@ -497,7 +497,7 @@ func (b *AccountSetPushSettingsBuilder) Value(v []string) *AccountSetPushSetting // // Mutes push notifications for the set period of time. // -// https://vk.com/dev/account.setSilenceMode +// https://dev.vk.com/method/account.setSilenceMode type AccountSetSilenceModeBuilder struct { api.Params } @@ -539,7 +539,7 @@ func (b *AccountSetSilenceModeBuilder) Sound(v int) *AccountSetSilenceModeBuilde // AccountUnbanBuilder builder. // -// https://vk.com/dev/account.unban +// https://dev.vk.com/method/account.unban type AccountUnbanBuilder struct { api.Params } @@ -559,7 +559,7 @@ func (b *AccountUnbanBuilder) OwnerID(v int) *AccountUnbanBuilder { // // Unsubscribes a device from push notifications. // -// https://vk.com/dev/account.unregisterDevice +// https://dev.vk.com/method/account.unregisterDevice type AccountUnregisterDeviceBuilder struct { api.Params } diff --git a/api/params/ads.go b/api/params/ads.go index b81b60a6..74022417 100644 --- a/api/params/ads.go +++ b/api/params/ads.go @@ -8,7 +8,7 @@ import ( // // Adds managers and/or supervisors to advertising account. // -// https://vk.com/dev/ads.addOfficeUsers +// https://dev.vk.com/method/ads.addOfficeUsers type AdsAddOfficeUsersBuilder struct { api.Params } @@ -35,7 +35,7 @@ func (b *AdsAddOfficeUsersBuilder) Data(v string) *AdsAddOfficeUsersBuilder { // // Allows to check the ad link. // -// https://vk.com/dev/ads.checkLink +// https://dev.vk.com/method/ads.checkLink type AdsCheckLinkBuilder struct { api.Params } @@ -83,7 +83,7 @@ func (b *AdsCheckLinkBuilder) CampaignID(v int) *AdsCheckLinkBuilder { // // Creates ads. // -// https://vk.com/dev/ads.createAds +// https://dev.vk.com/method/ads.createAds type AdsCreateAdsBuilder struct { api.Params } @@ -110,7 +110,7 @@ func (b *AdsCreateAdsBuilder) Data(v string) *AdsCreateAdsBuilder { // // Creates advertising campaigns. // -// https://vk.com/dev/ads.createCampaigns +// https://dev.vk.com/method/ads.createCampaigns type AdsCreateCampaignsBuilder struct { api.Params } @@ -137,7 +137,7 @@ func (b *AdsCreateCampaignsBuilder) Data(v string) *AdsCreateCampaignsBuilder { // // Creates clients of an advertising agency. // -// https://vk.com/dev/ads.createClients +// https://dev.vk.com/method/ads.createClients type AdsCreateClientsBuilder struct { api.Params } @@ -165,7 +165,7 @@ func (b *AdsCreateClientsBuilder) Data(v string) *AdsCreateClientsBuilder { // Creates a group to re-target ads for users who visited advertiser's site // (viewed information about the product, registered, etc.). // -// https://vk.com/dev/ads.createTargetGroup +// https://dev.vk.com/method/ads.createTargetGroup type AdsCreateTargetGroupBuilder struct { api.Params } @@ -217,7 +217,7 @@ func (b *AdsCreateTargetGroupBuilder) TargetPixelRules(v string) *AdsCreateTarge // // Archives ads. // -// https://vk.com/dev/ads.deleteAds +// https://dev.vk.com/method/ads.deleteAds type AdsDeleteAdsBuilder struct { api.Params } @@ -243,7 +243,7 @@ func (b *AdsDeleteAdsBuilder) IDs(v string) *AdsDeleteAdsBuilder { // // Archives advertising campaigns. // -// https://vk.com/dev/ads.deleteCampaigns +// https://dev.vk.com/method/ads.deleteCampaigns type AdsDeleteCampaignsBuilder struct { api.Params } @@ -269,7 +269,7 @@ func (b *AdsDeleteCampaignsBuilder) IDs(v string) *AdsDeleteCampaignsBuilder { // // Archives clients of an advertising agency. // -// https://vk.com/dev/ads.deleteClients +// https://dev.vk.com/method/ads.deleteClients type AdsDeleteClientsBuilder struct { api.Params } @@ -295,7 +295,7 @@ func (b *AdsDeleteClientsBuilder) IDs(v string) *AdsDeleteClientsBuilder { // // Deletes a retarget group. // -// https://vk.com/dev/ads.deleteTargetGroup +// https://dev.vk.com/method/ads.deleteTargetGroup type AdsDeleteTargetGroupBuilder struct { api.Params } @@ -328,7 +328,7 @@ func (b *AdsDeleteTargetGroupBuilder) TargetGroupID(v int) *AdsDeleteTargetGroup // // Returns number of ads. // -// https://vk.com/dev/ads.getAds +// https://dev.vk.com/method/ads.getAds type AdsGetAdsBuilder struct { api.Params } @@ -390,7 +390,7 @@ func (b *AdsGetAdsBuilder) Offset(v int) *AdsGetAdsBuilder { // // Returns descriptions of ad layouts. // -// https://vk.com/dev/ads.getAdsLayout +// https://dev.vk.com/method/ads.getAdsLayout type AdsGetAdsLayoutBuilder struct { api.Params } @@ -452,7 +452,7 @@ func (b *AdsGetAdsLayoutBuilder) Offset(v int) *AdsGetAdsLayoutBuilder { // // Returns ad targeting parameters. // -// https://vk.com/dev/ads.getAdsTargeting +// https://dev.vk.com/method/ads.getAdsTargeting type AdsGetAdsTargetingBuilder struct { api.Params } @@ -522,7 +522,7 @@ func (b *AdsGetAdsTargetingBuilder) Offset(v int) *AdsGetAdsTargetingBuilder { // // Returns current budget of the advertising account. // -// https://vk.com/dev/ads.getBudget +// https://dev.vk.com/method/ads.getBudget type AdsGetBudgetBuilder struct { api.Params } @@ -542,7 +542,7 @@ func (b *AdsGetBudgetBuilder) AccountID(v int) *AdsGetBudgetBuilder { // // Returns a list of campaigns in an advertising account. // -// https://vk.com/dev/ads.getCampaigns +// https://dev.vk.com/method/ads.getCampaigns type AdsGetCampaignsBuilder struct { api.Params } @@ -586,7 +586,7 @@ func (b *AdsGetCampaignsBuilder) CampaignIDs(v string) *AdsGetCampaignsBuilder { // // Returns a list of possible ad categories. // -// https://vk.com/dev/ads.getCategories +// https://dev.vk.com/method/ads.getCategories type AdsGetCategoriesBuilder struct { api.Params } @@ -606,7 +606,7 @@ func (b *AdsGetCategoriesBuilder) Lang(v string) *AdsGetCategoriesBuilder { // // Returns a list of advertising agency's clients. // -// https://vk.com/dev/ads.getClients +// https://dev.vk.com/method/ads.getClients type AdsGetClientsBuilder struct { api.Params } @@ -626,7 +626,7 @@ func (b *AdsGetClientsBuilder) AccountID(v int) *AdsGetClientsBuilder { // // Returns demographics for ads or campaigns. // -// https://vk.com/dev/ads.getDemographics +// https://dev.vk.com/method/ads.getDemographics type AdsGetDemographicsBuilder struct { api.Params } @@ -708,7 +708,7 @@ func (b *AdsGetDemographicsBuilder) DateTo(v string) *AdsGetDemographicsBuilder // Returns information about current state of a counter — number of remaining runs of methods and time to the next // counter nulling in seconds. // -// https://vk.com/dev/ads.getFloodStats +// https://dev.vk.com/method/ads.getFloodStats type AdsGetFloodStatsBuilder struct { api.Params } @@ -728,7 +728,7 @@ func (b *AdsGetFloodStatsBuilder) AccountID(v int) *AdsGetFloodStatsBuilder { // AdsGetMusiciansBuilder builder. // -// https://vk.com/dev/ads.getMusicians +// https://dev.vk.com/method/ads.getMusicians type AdsGetMusiciansBuilder struct { api.Params } @@ -748,7 +748,7 @@ func (b *AdsGetMusiciansBuilder) ArtistName(v string) *AdsGetMusiciansBuilder { // // Returns a list of managers and supervisors of advertising account. // -// https://vk.com/dev/ads.getOfficeUsers +// https://dev.vk.com/method/ads.getOfficeUsers type AdsGetOfficeUsersBuilder struct { api.Params } @@ -768,7 +768,7 @@ func (b *AdsGetOfficeUsersBuilder) AccountID(v int) *AdsGetOfficeUsersBuilder { // // Returns detailed statistics of promoted posts reach from campaigns and ads. // -// https://vk.com/dev/ads.getPostsReach +// https://dev.vk.com/method/ads.getPostsReach type AdsGetPostsReachBuilder struct { api.Params } @@ -805,7 +805,7 @@ func (b *AdsGetPostsReachBuilder) IDs(v string) *AdsGetPostsReachBuilder { // // Returns a reason of ad rejection for pre-moderation. // -// https://vk.com/dev/ads.getRejectionReason +// https://dev.vk.com/method/ads.getRejectionReason type AdsGetRejectionReasonBuilder struct { api.Params } @@ -831,7 +831,7 @@ func (b *AdsGetRejectionReasonBuilder) AdID(v int) *AdsGetRejectionReasonBuilder // // Returns statistics of performance indicators for ads, campaigns, clients or the whole account. // -// https://vk.com/dev/ads.getStatistics +// https://dev.vk.com/method/ads.getStatistics type AdsGetStatisticsBuilder struct { api.Params } @@ -916,7 +916,7 @@ func (b *AdsGetStatisticsBuilder) DateTo(v string) *AdsGetStatisticsBuilder { // // Returns a set of auto-suggestions for various targeting parameters. // -// https://vk.com/dev/ads.getSuggestions +// https://dev.vk.com/method/ads.getSuggestions type AdsGetSuggestionsBuilder struct { api.Params } @@ -997,7 +997,7 @@ func (b *AdsGetSuggestionsBuilder) Lang(v string) *AdsGetSuggestionsBuilder { // // Returns a list of target groups. // -// https://vk.com/dev/ads.getTargetGroups +// https://dev.vk.com/method/ads.getTargetGroups type AdsGetTargetGroupsBuilder struct { api.Params } @@ -1032,7 +1032,7 @@ func (b *AdsGetTargetGroupsBuilder) Extended(v bool) *AdsGetTargetGroupsBuilder // // Returns the size of targeting audience, and also recommended values for CPC and CPM. // -// https://vk.com/dev/ads.getTargetingStats +// https://dev.vk.com/method/ads.getTargetingStats type AdsGetTargetingStatsBuilder struct { api.Params } @@ -1133,7 +1133,7 @@ func (b *AdsGetTargetingStatsBuilder) LinkDomain(v string) *AdsGetTargetingStats // // Returns URL to upload an ad photo to. // -// https://vk.com/dev/ads.getUploadURL +// https://dev.vk.com/method/ads.getUploadURL type AdsGetUploadURLBuilder struct { api.Params } @@ -1169,7 +1169,7 @@ func (b *AdsGetUploadURLBuilder) Icon(v int) *AdsGetUploadURLBuilder { // // Imports a list of advertiser's contacts to count VK registered users against the target group. // -// https://vk.com/dev/ads.importTargetContacts +// https://dev.vk.com/method/ads.importTargetContacts type AdsImportTargetContactsBuilder struct { api.Params } @@ -1208,7 +1208,7 @@ func (b *AdsImportTargetContactsBuilder) Contacts(v string) *AdsImportTargetCont // // Removes managers and/or supervisors from advertising account. // -// https://vk.com/dev/ads.removeOfficeUsers +// https://dev.vk.com/method/ads.removeOfficeUsers type AdsRemoveOfficeUsersBuilder struct { api.Params } @@ -1234,7 +1234,7 @@ func (b *AdsRemoveOfficeUsersBuilder) IDs(v string) *AdsRemoveOfficeUsersBuilder // // Edits ads. // -// https://vk.com/dev/ads.updateAds +// https://dev.vk.com/method/ads.updateAds type AdsUpdateAdsBuilder struct { api.Params } @@ -1261,7 +1261,7 @@ func (b *AdsUpdateAdsBuilder) Data(v string) *AdsUpdateAdsBuilder { // // Edits advertising campaigns. // -// https://vk.com/dev/ads.updateCampaigns +// https://dev.vk.com/method/ads.updateCampaigns type AdsUpdateCampaignsBuilder struct { api.Params } @@ -1288,7 +1288,7 @@ func (b *AdsUpdateCampaignsBuilder) Data(v string) *AdsUpdateCampaignsBuilder { // // Edits clients of an advertising agency. // -// https://vk.com/dev/ads.updateClients +// https://dev.vk.com/method/ads.updateClients type AdsUpdateClientsBuilder struct { api.Params } @@ -1315,7 +1315,7 @@ func (b *AdsUpdateClientsBuilder) Data(v string) *AdsUpdateClientsBuilder { // // Edits a retarget group. // -// https://vk.com/dev/ads.updateTargetGroup +// https://dev.vk.com/method/ads.updateTargetGroup type AdsUpdateTargetGroupBuilder struct { api.Params } diff --git a/api/params/appWidgets.go b/api/params/appWidgets.go index 9c2fd605..97d146c1 100644 --- a/api/params/appWidgets.go +++ b/api/params/appWidgets.go @@ -8,7 +8,7 @@ import ( // // Allows to update community app widget. // -// https://vk.com/dev/appWidgets.update +// https://dev.vk.com/method/appWidgets.update type AppWidgetsUpdateBuilder struct { api.Params } diff --git a/api/params/apps.go b/api/params/apps.go index 5c646e05..c47d544e 100644 --- a/api/params/apps.go +++ b/api/params/apps.go @@ -6,7 +6,7 @@ import ( // AppsAddUsersToTestingGroupBuilder builder. // -// https://vk.com/dev/apps.addUsersToTestingGroup +// https://dev.vk.com/method/apps.addUsersToTestingGroup type AppsAddUsersToTestingGroupBuilder struct { api.Params } @@ -32,7 +32,7 @@ func (b *AppsAddUsersToTestingGroupBuilder) GroupID(v int) *AppsAddUsersToTestin // // Returns applications data. // -// https://vk.com/dev/apps.get +// https://dev.vk.com/method/apps.get type AppsGetBuilder struct { api.Params } @@ -154,7 +154,7 @@ func (b *AppsGetBuilder) NameCase(v string) *AppsGetBuilder { // // Returns a list of applications (apps) available to users in the App Catalog. // -// https://vk.com/dev/apps.getCatalog +// https://dev.vk.com/method/apps.getCatalog type AppsGetCatalogBuilder struct { api.Params } @@ -249,7 +249,7 @@ func (b *AppsGetCatalogBuilder) Filter(v string) *AppsGetCatalogBuilder { // // Creates friends list for requests and invites in current app. // -// https://vk.com/dev/apps.getFriendsList +// https://dev.vk.com/method/apps.getFriendsList type AppsGetFriendsListBuilder struct { api.Params } @@ -299,7 +299,7 @@ func (b *AppsGetFriendsListBuilder) Fields(v []string) *AppsGetFriendsListBuilde // // Returns players rating in the game. // -// https://vk.com/dev/apps.getLeaderboard +// https://dev.vk.com/method/apps.getLeaderboard type AppsGetLeaderboardBuilder struct { api.Params } @@ -341,7 +341,7 @@ func (b *AppsGetLeaderboardBuilder) Extended(v bool) *AppsGetLeaderboardBuilder // // Returns scopes for auth. // -// https://vk.com/dev/apps.getScopes +// https://dev.vk.com/method/apps.getScopes type AppsGetScopesBuilder struct { api.Params } @@ -361,7 +361,7 @@ func (b *AppsGetScopesBuilder) Type(v string) *AppsGetScopesBuilder { // // Returns user score in app. // -// https://vk.com/dev/apps.getScore +// https://dev.vk.com/method/apps.getScore type AppsGetScoreBuilder struct { api.Params } @@ -379,7 +379,7 @@ func (b *AppsGetScoreBuilder) UserID(v int) *AppsGetScoreBuilder { // AppsGetTestingGroupsBuilder builder. // -// https://vk.com/dev/apps.getTestingGroups +// https://dev.vk.com/method/apps.getTestingGroups type AppsGetTestingGroupsBuilder struct { api.Params } @@ -397,7 +397,7 @@ func (b *AppsGetTestingGroupsBuilder) GroupID(v int) *AppsGetTestingGroupsBuilde // AppsRemoveUsersFromTestingGroupsBuilder builder. // -// https://vk.com/dev/apps.removeUsersFromTestingGroups +// https://dev.vk.com/method/apps.removeUsersFromTestingGroups type AppsRemoveUsersFromTestingGroupsBuilder struct { api.Params } @@ -415,7 +415,7 @@ func (b *AppsRemoveUsersFromTestingGroupsBuilder) UserIDs(v []int) *AppsRemoveUs // AppsRemoveTestingGroupBuilder builder. // -// https://vk.com/dev/apps.removeTestingGroup +// https://dev.vk.com/method/apps.removeTestingGroup type AppsRemoveTestingGroupBuilder struct { api.Params } @@ -435,7 +435,7 @@ func (b *AppsRemoveTestingGroupBuilder) GroupID(v int) *AppsRemoveTestingGroupBu // // Sends a request to another user in an app that uses VK authorization. // -// https://vk.com/dev/apps.sendRequest +// https://dev.vk.com/method/apps.sendRequest type AppsSendRequestBuilder struct { api.Params } @@ -487,7 +487,7 @@ func (b *AppsSendRequestBuilder) Separate(v bool) *AppsSendRequestBuilder { // AppsUpdateMetaForTestingGroupBuilder builder. // -// https://vk.com/dev/apps.UpdateMetaForTestingGroup +// https://dev.vk.com/method/apps.UpdateMetaForTestingGroup type AppsUpdateMetaForTestingGroupBuilder struct { api.Params } diff --git a/api/params/auth.go b/api/params/auth.go index dc6021fc..8f47836f 100644 --- a/api/params/auth.go +++ b/api/params/auth.go @@ -8,7 +8,7 @@ import ( // // Checks a user's phone number for correctness. // -// https://vk.com/dev/auth.checkPhone +// https://dev.vk.com/method/auth.checkPhone type AuthCheckPhoneBuilder struct { api.Params } @@ -47,7 +47,7 @@ func (b *AuthCheckPhoneBuilder) AuthByPhone(v bool) *AuthCheckPhoneBuilder { // Allows to restore account access using a code received via SMS. // This method is only available for apps with [vk.com/dev/auth_direct|Direct authorization] access. // -// https://vk.com/dev/auth.restore +// https://dev.vk.com/method/auth.restore type AuthRestoreBuilder struct { api.Params } diff --git a/api/params/board.go b/api/params/board.go index 3b0fec28..96409e33 100644 --- a/api/params/board.go +++ b/api/params/board.go @@ -8,7 +8,7 @@ import ( // // Creates a new topic on a community's discussion board. // -// https://vk.com/dev/board.addTopic +// https://dev.vk.com/method/board.addTopic type BoardAddTopicBuilder struct { api.Params } @@ -61,7 +61,7 @@ func (b *BoardAddTopicBuilder) Attachments(v interface{}) *BoardAddTopicBuilder // // Closes a topic on a community's discussion board so that comments cannot be posted. // -// https://vk.com/dev/board.closeTopic +// https://dev.vk.com/method/board.closeTopic type BoardCloseTopicBuilder struct { api.Params } @@ -87,7 +87,7 @@ func (b *BoardCloseTopicBuilder) TopicID(v int) *BoardCloseTopicBuilder { // // Adds a comment on a topic on a community's discussion board. // -// https://vk.com/dev/board.createComment +// https://dev.vk.com/method/board.createComment type BoardCreateCommentBuilder struct { api.Params } @@ -147,7 +147,7 @@ func (b *BoardCreateCommentBuilder) GUID(v string) *BoardCreateCommentBuilder { // // Deletes a comment on a topic on a community's discussion board. // -// https://vk.com/dev/board.deleteComment +// https://dev.vk.com/method/board.deleteComment type BoardDeleteCommentBuilder struct { api.Params } @@ -179,7 +179,7 @@ func (b *BoardDeleteCommentBuilder) CommentID(v int) *BoardDeleteCommentBuilder // // Deletes a topic from a community's discussion board. // -// https://vk.com/dev/board.deleteTopic +// https://dev.vk.com/method/board.deleteTopic type BoardDeleteTopicBuilder struct { api.Params } @@ -205,7 +205,7 @@ func (b *BoardDeleteTopicBuilder) TopicID(v int) *BoardDeleteTopicBuilder { // // Edits a comment on a topic on a community's discussion board. // -// https://vk.com/dev/board.editComment +// https://dev.vk.com/method/board.editComment type BoardEditCommentBuilder struct { api.Params } @@ -253,7 +253,7 @@ func (b *BoardEditCommentBuilder) Attachments(v interface{}) *BoardEditCommentBu // // Edits the title of a topic on a community's discussion board. // -// https://vk.com/dev/board.editTopic +// https://dev.vk.com/method/board.editTopic type BoardEditTopicBuilder struct { api.Params } @@ -285,7 +285,7 @@ func (b *BoardEditTopicBuilder) Title(v string) *BoardEditTopicBuilder { // // Pins a topic (fixes its place) to the top of a community's discussion board. // -// https://vk.com/dev/board.fixTopic +// https://dev.vk.com/method/board.fixTopic type BoardFixTopicBuilder struct { api.Params } @@ -311,7 +311,7 @@ func (b *BoardFixTopicBuilder) TopicID(v int) *BoardFixTopicBuilder { // // Returns a list of comments on a topic on a community's discussion board. // -// https://vk.com/dev/board.getComments +// https://dev.vk.com/method/board.getComments type BoardGetCommentsBuilder struct { api.Params } @@ -375,7 +375,7 @@ func (b *BoardGetCommentsBuilder) Sort(v string) *BoardGetCommentsBuilder { // // Returns a list of topics on a community's discussion board. // -// https://vk.com/dev/board.getTopics +// https://dev.vk.com/method/board.getTopics type BoardGetTopicsBuilder struct { api.Params } @@ -462,7 +462,7 @@ func (b *BoardGetTopicsBuilder) PreviewLength(v int) *BoardGetTopicsBuilder { // // Re-opens a previously closed topic on a community's discussion board. // -// https://vk.com/dev/board.openTopic +// https://dev.vk.com/method/board.openTopic type BoardOpenTopicBuilder struct { api.Params } @@ -488,7 +488,7 @@ func (b *BoardOpenTopicBuilder) TopicID(v int) *BoardOpenTopicBuilder { // // Restores a comment deleted from a topic on a community's discussion board. // -// https://vk.com/dev/board.restoreComment +// https://dev.vk.com/method/board.restoreComment type BoardRestoreCommentBuilder struct { api.Params } @@ -520,7 +520,7 @@ func (b *BoardRestoreCommentBuilder) CommentID(v int) *BoardRestoreCommentBuilde // // Unpins a pinned topic from the top of a community's discussion board. // -// https://vk.com/dev/board.unfixTopic +// https://dev.vk.com/method/board.unfixTopic type BoardUnfixTopicBuilder struct { api.Params } diff --git a/api/params/calls.go b/api/params/calls.go index 1c810b26..939ab0df 100644 --- a/api/params/calls.go +++ b/api/params/calls.go @@ -4,7 +4,7 @@ import "github.com/SevereCloud/vksdk/v2/api" // CallsStartBuilder builder. // -// https://vk.com/dev/calls.start +// https://dev.vk.com/method/calls.start type CallsStartBuilder struct { api.Params } @@ -22,7 +22,7 @@ func (b *CallsStartBuilder) GroupID(v int) *CallsStartBuilder { // CallsForceFinishBuilder builder. // -// https://vk.com/dev/calls.forceFinish +// https://dev.vk.com/method/calls.forceFinish type CallsForceFinishBuilder struct { api.Params } diff --git a/api/params/database.go b/api/params/database.go index a323d5c4..450694e6 100644 --- a/api/params/database.go +++ b/api/params/database.go @@ -8,7 +8,7 @@ import ( // // Returns list of chairs on a specified faculty. // -// https://vk.com/dev/database.getChairs +// https://dev.vk.com/method/database.getChairs type DatabaseGetChairsBuilder struct { api.Params } @@ -40,7 +40,7 @@ func (b *DatabaseGetChairsBuilder) Count(v int) *DatabaseGetChairsBuilder { // // Returns a list of cities. // -// https://vk.com/dev/database.getCities +// https://dev.vk.com/method/database.getCities type DatabaseGetCitiesBuilder struct { api.Params } @@ -94,7 +94,7 @@ func (b *DatabaseGetCitiesBuilder) Count(v int) *DatabaseGetCitiesBuilder { // // Returns information about cities by their IDs. // -// https://vk.com/dev/database.getCitiesById +// https://dev.vk.com/method/database.getCitiesById type DatabaseGetCitiesByIDBuilder struct { api.Params } @@ -114,7 +114,7 @@ func (b *DatabaseGetCitiesByIDBuilder) CityIDs(v []int) *DatabaseGetCitiesByIDBu // // Returns a list of countries. // -// https://vk.com/dev/database.getCountries +// https://dev.vk.com/method/database.getCountries type DatabaseGetCountriesBuilder struct { api.Params } @@ -156,7 +156,7 @@ func (b *DatabaseGetCountriesBuilder) Count(v int) *DatabaseGetCountriesBuilder // // Returns information about countries by their IDs. // -// https://vk.com/dev/database.getCountriesById +// https://dev.vk.com/method/database.getCountriesById type DatabaseGetCountriesByIDBuilder struct { api.Params } @@ -176,7 +176,7 @@ func (b *DatabaseGetCountriesByIDBuilder) CountryIDs(v []int) *DatabaseGetCountr // // Returns a list of faculties (i.e., university departments). // -// https://vk.com/dev/database.getFaculties +// https://dev.vk.com/method/database.getFaculties type DatabaseGetFacultiesBuilder struct { api.Params } @@ -208,7 +208,7 @@ func (b *DatabaseGetFacultiesBuilder) Count(v int) *DatabaseGetFacultiesBuilder // // Get metro stations by city. // -// https://vk.com/dev/database.getMetroStations +// https://dev.vk.com/method/database.getMetroStations type DatabaseGetMetroStationsBuilder struct { api.Params } @@ -246,7 +246,7 @@ func (b *DatabaseGetMetroStationsBuilder) Extended(v bool) *DatabaseGetMetroStat // // Get metro station by his id. // -// https://vk.com/dev/database.getMetroStationsById +// https://dev.vk.com/method/database.getMetroStationsById type DatabaseGetMetroStationsByIDBuilder struct { api.Params } @@ -266,7 +266,7 @@ func (b *DatabaseGetMetroStationsByIDBuilder) StationIDs(v []int) *DatabaseGetMe // // Returns a list of regions. // -// https://vk.com/dev/database.getRegions +// https://dev.vk.com/method/database.getRegions type DatabaseGetRegionsBuilder struct { api.Params } @@ -304,7 +304,7 @@ func (b *DatabaseGetRegionsBuilder) Count(v int) *DatabaseGetRegionsBuilder { // // Returns a list of school classes specified for the country. // -// https://vk.com/dev/database.getSchoolClasses +// https://dev.vk.com/method/database.getSchoolClasses type DatabaseGetSchoolClassesBuilder struct { api.Params } @@ -324,7 +324,7 @@ func (b *DatabaseGetSchoolClassesBuilder) CountryID(v int) *DatabaseGetSchoolCla // // Returns a list of schools. // -// https://vk.com/dev/database.getSchools +// https://dev.vk.com/method/database.getSchools type DatabaseGetSchoolsBuilder struct { api.Params } @@ -362,7 +362,7 @@ func (b *DatabaseGetSchoolsBuilder) Count(v int) *DatabaseGetSchoolsBuilder { // // Returns a list of higher education institutions. // -// https://vk.com/dev/database.getUniversities +// https://dev.vk.com/method/database.getUniversities type DatabaseGetUniversitiesBuilder struct { api.Params } diff --git a/api/params/docs.go b/api/params/docs.go index 4f77e52e..991563f6 100644 --- a/api/params/docs.go +++ b/api/params/docs.go @@ -8,7 +8,7 @@ import ( // // Copies a document to a user's or community's document list. // -// https://vk.com/dev/docs.add +// https://dev.vk.com/method/docs.add type DocsAddBuilder struct { api.Params } @@ -40,7 +40,7 @@ func (b *DocsAddBuilder) AccessKey(v string) *DocsAddBuilder { // // Deletes a user or community document. // -// https://vk.com/dev/docs.delete +// https://dev.vk.com/method/docs.delete type DocsDeleteBuilder struct { api.Params } @@ -66,7 +66,7 @@ func (b *DocsDeleteBuilder) DocID(v int) *DocsDeleteBuilder { // // Edits a document. // -// https://vk.com/dev/docs.edit +// https://dev.vk.com/method/docs.edit type DocsEditBuilder struct { api.Params } @@ -104,7 +104,7 @@ func (b *DocsEditBuilder) Tags(v []string) *DocsEditBuilder { // // Returns detailed information about user or community documents. // -// https://vk.com/dev/docs.get +// https://dev.vk.com/method/docs.get type DocsGetBuilder struct { api.Params } @@ -142,7 +142,7 @@ func (b *DocsGetBuilder) OwnerID(v int) *DocsGetBuilder { // // Returns information about documents by their IDs. // -// https://vk.com/dev/docs.getById +// https://dev.vk.com/method/docs.getById type DocsGetByIDBuilder struct { api.Params } @@ -162,7 +162,7 @@ func (b *DocsGetByIDBuilder) Docs(v []string) *DocsGetByIDBuilder { // // Returns the server address for document upload. // -// https://vk.com/dev/docs.getMessagesUploadServer +// https://dev.vk.com/method/docs.getMessagesUploadServer type DocsGetMessagesUploadServerBuilder struct { api.Params } @@ -190,7 +190,7 @@ func (b *DocsGetMessagesUploadServerBuilder) PeerID(v int) *DocsGetMessagesUploa // // Returns documents types available for current user. // -// https://vk.com/dev/docs.getTypes +// https://dev.vk.com/method/docs.getTypes type DocsGetTypesBuilder struct { api.Params } @@ -210,7 +210,7 @@ func (b *DocsGetTypesBuilder) OwnerID(v int) *DocsGetTypesBuilder { // // Returns the server address for document upload. // -// https://vk.com/dev/docs.getUploadServer +// https://dev.vk.com/method/docs.getUploadServer type DocsGetUploadServerBuilder struct { api.Params } @@ -230,7 +230,7 @@ func (b *DocsGetUploadServerBuilder) GroupID(v int) *DocsGetUploadServerBuilder // // Returns the server address for document upload onto a user's or community's wall. // -// https://vk.com/dev/docs.getWallUploadServer +// https://dev.vk.com/method/docs.getWallUploadServer type DocsGetWallUploadServerBuilder struct { api.Params } @@ -250,7 +250,7 @@ func (b *DocsGetWallUploadServerBuilder) GroupID(v int) *DocsGetWallUploadServer // // Saves a document after [vk.com/dev/upload_files_2|uploading it to a server]. // -// https://vk.com/dev/docs.save +// https://dev.vk.com/method/docs.save type DocsSaveBuilder struct { api.Params } @@ -282,7 +282,7 @@ func (b *DocsSaveBuilder) Tags(v string) *DocsSaveBuilder { // // Returns a list of documents matching the search criteria. // -// https://vk.com/dev/docs.search +// https://dev.vk.com/method/docs.search type DocsSearchBuilder struct { api.Params } diff --git a/api/params/downloadedGames.go b/api/params/downloadedGames.go index e0809aa1..640ce690 100644 --- a/api/params/downloadedGames.go +++ b/api/params/downloadedGames.go @@ -6,7 +6,7 @@ import ( // DownloadedGamesGetPaidStatusBuilder builder. // -// https://vk.com/dev/downloadedGames.getPaidStatus +// https://dev.vk.com/method/downloadedGames.getPaidStatus type DownloadedGamesGetPaidStatusBuilder struct { api.Params } diff --git a/api/params/fave.go b/api/params/fave.go index 81564d5e..43b0e9ea 100644 --- a/api/params/fave.go +++ b/api/params/fave.go @@ -6,7 +6,7 @@ import ( // FaveAddArticleBuilder builder. // -// https://vk.com/dev/fave.addArticle +// https://dev.vk.com/method/fave.addArticle type FaveAddArticleBuilder struct { api.Params } @@ -26,7 +26,7 @@ func (b *FaveAddArticleBuilder) URL(v string) *FaveAddArticleBuilder { // // Adds a link to user faves. // -// https://vk.com/dev/fave.addLink +// https://dev.vk.com/method/fave.addLink type FaveAddLinkBuilder struct { api.Params } @@ -44,7 +44,7 @@ func (b *FaveAddLinkBuilder) Link(v string) *FaveAddLinkBuilder { // FaveAddPageBuilder builder. // -// https://vk.com/dev/fave.addPage +// https://dev.vk.com/method/fave.addPage type FaveAddPageBuilder struct { api.Params } @@ -68,7 +68,7 @@ func (b *FaveAddPageBuilder) GroupID(v int) *FaveAddPageBuilder { // FaveAddPostBuilder builder. // -// https://vk.com/dev/fave.addPost +// https://dev.vk.com/method/fave.addPost type FaveAddPostBuilder struct { api.Params } @@ -98,7 +98,7 @@ func (b *FaveAddPostBuilder) AccessKey(v string) *FaveAddPostBuilder { // FaveAddProductBuilder builder. // -// https://vk.com/dev/fave.addProduct +// https://dev.vk.com/method/fave.addProduct type FaveAddProductBuilder struct { api.Params } @@ -128,7 +128,7 @@ func (b *FaveAddProductBuilder) AccessKey(v string) *FaveAddProductBuilder { // FaveAddTagBuilder builder. // -// https://vk.com/dev/fave.addTag +// https://dev.vk.com/method/fave.addTag type FaveAddTagBuilder struct { api.Params } @@ -146,7 +146,7 @@ func (b *FaveAddTagBuilder) Name(v string) *FaveAddTagBuilder { // FaveAddVideoBuilder builder. // -// https://vk.com/dev/fave.addVideo +// https://dev.vk.com/method/fave.addVideo type FaveAddVideoBuilder struct { api.Params } @@ -176,7 +176,7 @@ func (b *FaveAddVideoBuilder) AccessKey(v string) *FaveAddVideoBuilder { // FaveEditTagBuilder builder. // -// https://vk.com/dev/fave.editTag +// https://dev.vk.com/method/fave.editTag type FaveEditTagBuilder struct { api.Params } @@ -200,7 +200,7 @@ func (b *FaveEditTagBuilder) Name(v string) *FaveEditTagBuilder { // FaveGetBuilder builder. // -// https://vk.com/dev/fave.get +// https://dev.vk.com/method/fave.get type FaveGetBuilder struct { api.Params } @@ -254,7 +254,7 @@ func (b *FaveGetBuilder) IsFromSnackbar(v bool) *FaveGetBuilder { // FaveGetPagesBuilder builder. // -// https://vk.com/dev/fave.getPages +// https://dev.vk.com/method/fave.getPages type FaveGetPagesBuilder struct { api.Params } @@ -296,7 +296,7 @@ func (b *FaveGetPagesBuilder) TagID(v int) *FaveGetPagesBuilder { // FaveRemoveArticleBuilder builder. // -// https://vk.com/dev/fave.removeArticle +// https://dev.vk.com/method/fave.removeArticle type FaveRemoveArticleBuilder struct { api.Params } @@ -322,7 +322,7 @@ func (b *FaveRemoveArticleBuilder) ArticleID(v int) *FaveRemoveArticleBuilder { // // Removes link from the user's faves. // -// https://vk.com/dev/fave.removeLink +// https://dev.vk.com/method/fave.removeLink type FaveRemoveLinkBuilder struct { api.Params } @@ -346,7 +346,7 @@ func (b *FaveRemoveLinkBuilder) Link(v string) *FaveRemoveLinkBuilder { // FaveRemovePageBuilder builder. // -// https://vk.com/dev/fave.removePage +// https://dev.vk.com/method/fave.removePage type FaveRemovePageBuilder struct { api.Params } @@ -370,7 +370,7 @@ func (b *FaveRemovePageBuilder) GroupID(v int) *FaveRemovePageBuilder { // FaveRemovePostBuilder builder. // -// https://vk.com/dev/fave.removePost +// https://dev.vk.com/method/fave.removePost type FaveRemovePostBuilder struct { api.Params } @@ -394,7 +394,7 @@ func (b *FaveRemovePostBuilder) ID(v int) *FaveRemovePostBuilder { // FaveRemoveProductBuilder builder. // -// https://vk.com/dev/fave.removeProduct +// https://dev.vk.com/method/fave.removeProduct type FaveRemoveProductBuilder struct { api.Params } @@ -418,7 +418,7 @@ func (b *FaveRemoveProductBuilder) ID(v int) *FaveRemoveProductBuilder { // FaveRemoveTagBuilder builder. // -// https://vk.com/dev/fave.removeTag +// https://dev.vk.com/method/fave.removeTag type FaveRemoveTagBuilder struct { api.Params } @@ -436,7 +436,7 @@ func (b *FaveRemoveTagBuilder) ID(v int) *FaveRemoveTagBuilder { // FaveReorderTagsBuilder builder. // -// https://vk.com/dev/fave.reorderTags +// https://dev.vk.com/method/fave.reorderTags type FaveReorderTagsBuilder struct { api.Params } @@ -454,7 +454,7 @@ func (b *FaveReorderTagsBuilder) IDs(v []int) *FaveReorderTagsBuilder { // FaveSetPageTagsBuilder builder. // -// https://vk.com/dev/fave.setPageTags +// https://dev.vk.com/method/fave.setPageTags type FaveSetPageTagsBuilder struct { api.Params } @@ -484,7 +484,7 @@ func (b *FaveSetPageTagsBuilder) TagIDs(v []int) *FaveSetPageTagsBuilder { // FaveSetTagsBuilder builder. // -// https://vk.com/dev/fave.setTags +// https://dev.vk.com/method/fave.setTags type FaveSetTagsBuilder struct { api.Params } @@ -532,7 +532,7 @@ func (b *FaveSetTagsBuilder) LinkURL(v string) *FaveSetTagsBuilder { // FaveTrackPageInteractionBuilder builder. // -// https://vk.com/dev/fave.trackPageInteraction +// https://dev.vk.com/method/fave.trackPageInteraction type FaveTrackPageInteractionBuilder struct { api.Params } diff --git a/api/params/friends.go b/api/params/friends.go index 8830dd4b..1f18651d 100644 --- a/api/params/friends.go +++ b/api/params/friends.go @@ -8,7 +8,7 @@ import ( // // Approves or creates a friend request. // -// https://vk.com/dev/friends.add +// https://dev.vk.com/method/friends.add type FriendsAddBuilder struct { api.Params } @@ -40,7 +40,7 @@ func (b *FriendsAddBuilder) Follow(v bool) *FriendsAddBuilder { // // Creates a new friend list for the current user. // -// https://vk.com/dev/friends.addList +// https://dev.vk.com/method/friends.addList type FriendsAddListBuilder struct { api.Params } @@ -66,7 +66,7 @@ func (b *FriendsAddListBuilder) UserIDs(v []int) *FriendsAddListBuilder { // // Checks the current user's friendship status with other specified users. // -// https://vk.com/dev/friends.areFriends +// https://dev.vk.com/method/friends.areFriends type FriendsAreFriendsBuilder struct { api.Params } @@ -97,7 +97,7 @@ func (b *FriendsAreFriendsBuilder) NeedSign(v bool) *FriendsAreFriendsBuilder { // // Declines a friend request or deletes a user from the current user's friend list. // -// https://vk.com/dev/friends.delete +// https://dev.vk.com/method/friends.delete type FriendsDeleteBuilder struct { api.Params } @@ -118,7 +118,7 @@ func (b *FriendsDeleteBuilder) UserID(v int) *FriendsDeleteBuilder { // // Deletes a friend list of the current user. // -// https://vk.com/dev/friends.deleteList +// https://dev.vk.com/method/friends.deleteList type FriendsDeleteListBuilder struct { api.Params } @@ -138,7 +138,7 @@ func (b *FriendsDeleteListBuilder) ListID(v int) *FriendsDeleteListBuilder { // // Edits the friend lists of the selected user. // -// https://vk.com/dev/friends.edit +// https://dev.vk.com/method/friends.edit type FriendsEditBuilder struct { api.Params } @@ -164,7 +164,7 @@ func (b *FriendsEditBuilder) ListIDs(v []int) *FriendsEditBuilder { // // Edits a friend list of the current user. // -// https://vk.com/dev/friends.editList +// https://dev.vk.com/method/friends.editList type FriendsEditListBuilder struct { api.Params } @@ -208,7 +208,7 @@ func (b *FriendsEditListBuilder) DeleteUserIDs(v []int) *FriendsEditListBuilder // // Returns a list of user IDs or detailed information about a user's friends. // -// https://vk.com/dev/friends.get +// https://dev.vk.com/method/friends.get type FriendsGetBuilder struct { api.Params } @@ -292,7 +292,7 @@ func (b *FriendsGetBuilder) Ref(v string) *FriendsGetBuilder { // 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 +// https://dev.vk.com/method/friends.getByPhones type FriendsGetByPhonesBuilder struct { api.Params } @@ -320,7 +320,7 @@ func (b *FriendsGetByPhonesBuilder) Fields(v []string) *FriendsGetByPhonesBuilde // // Returns a list of the user's friend lists. // -// https://vk.com/dev/friends.getLists +// https://dev.vk.com/method/friends.getLists type FriendsGetListsBuilder struct { api.Params } @@ -348,7 +348,7 @@ func (b *FriendsGetListsBuilder) ReturnSystem(v bool) *FriendsGetListsBuilder { // // Returns a list of user IDs of the mutual friends of two users. // -// https://vk.com/dev/friends.getMutual +// https://dev.vk.com/method/friends.getMutual type FriendsGetMutualBuilder struct { api.Params } @@ -398,7 +398,7 @@ func (b *FriendsGetMutualBuilder) Offset(v int) *FriendsGetMutualBuilder { // // Returns a list of user IDs of a user's friends who are online. // -// https://vk.com/dev/friends.getOnline +// https://dev.vk.com/method/friends.getOnline type FriendsGetOnlineBuilder struct { api.Params } @@ -450,7 +450,7 @@ func (b *FriendsGetOnlineBuilder) Offset(v int) *FriendsGetOnlineBuilder { // // Returns a list of user IDs of the current user's recently added friends. // -// https://vk.com/dev/friends.getRecent +// https://dev.vk.com/method/friends.getRecent type FriendsGetRecentBuilder struct { api.Params } @@ -470,7 +470,7 @@ func (b *FriendsGetRecentBuilder) Count(v int) *FriendsGetRecentBuilder { // // Returns information about the current user's incoming and outgoing friend requests. // -// https://vk.com/dev/friends.getRequests +// https://dev.vk.com/method/friends.getRequests type FriendsGetRequestsBuilder struct { api.Params } @@ -555,7 +555,7 @@ func (b *FriendsGetRequestsBuilder) Fields(v []string) *FriendsGetRequestsBuilde // // Returns a list of profiles of users whom the current user may know. // -// https://vk.com/dev/friends.getSuggestions +// https://dev.vk.com/method/friends.getSuggestions type FriendsGetSuggestionsBuilder struct { api.Params } @@ -620,7 +620,7 @@ func (b *FriendsGetSuggestionsBuilder) NameCase(v string) *FriendsGetSuggestions // // Returns a list of friends matching the search criteria. // -// https://vk.com/dev/friends.search +// https://dev.vk.com/method/friends.search type FriendsSearchBuilder struct { api.Params } diff --git a/api/params/gifts.go b/api/params/gifts.go index f9a8cfbb..c437ec4d 100644 --- a/api/params/gifts.go +++ b/api/params/gifts.go @@ -8,7 +8,7 @@ import ( // // Returns a list of user gifts. // -// https://vk.com/dev/gifts.get +// https://dev.vk.com/method/gifts.get type GiftsGetBuilder struct { api.Params } diff --git a/api/params/groups.go b/api/params/groups.go index 4ebe16ec..76e159fb 100644 --- a/api/params/groups.go +++ b/api/params/groups.go @@ -6,7 +6,7 @@ import ( // GroupsAddAddressBuilder builder. // -// https://vk.com/dev/groups.addAddress +// https://dev.vk.com/method/groups.addAddress type GroupsAddAddressBuilder struct { api.Params } @@ -96,7 +96,7 @@ func (b *GroupsAddAddressBuilder) IsMainAddress(v bool) *GroupsAddAddressBuilder // GroupsAddCallbackServerBuilder builder. // -// https://vk.com/dev/groups.addCallbackServer +// https://dev.vk.com/method/groups.addCallbackServer type GroupsAddCallbackServerBuilder struct { api.Params } @@ -134,7 +134,7 @@ func (b *GroupsAddCallbackServerBuilder) SecretKey(v string) *GroupsAddCallbackS // // Allows to add a link to the community. // -// https://vk.com/dev/groups.addLink +// https://dev.vk.com/method/groups.addLink type GroupsAddLinkBuilder struct { api.Params } @@ -166,7 +166,7 @@ func (b *GroupsAddLinkBuilder) Text(v string) *GroupsAddLinkBuilder { // // Allows to approve join request to the community. // -// https://vk.com/dev/groups.approveRequest +// https://dev.vk.com/method/groups.approveRequest type GroupsApproveRequestBuilder struct { api.Params } @@ -190,7 +190,7 @@ func (b *GroupsApproveRequestBuilder) UserID(v int) *GroupsApproveRequestBuilder // GroupsBanBuilder builder. // -// https://vk.com/dev/groups.ban +// https://dev.vk.com/method/groups.ban type GroupsBanBuilder struct { api.Params } @@ -240,7 +240,7 @@ func (b *GroupsBanBuilder) CommentVisible(v bool) *GroupsBanBuilder { // // Creates a new community. // -// https://vk.com/dev/groups.create +// https://dev.vk.com/method/groups.create type GroupsCreateBuilder struct { api.Params } @@ -302,7 +302,7 @@ func (b *GroupsCreateBuilder) Subtype(v int) *GroupsCreateBuilder { // GroupsDeleteCallbackServerBuilder builder. // -// https://vk.com/dev/groups.deleteCallbackServer +// https://dev.vk.com/method/groups.deleteCallbackServer type GroupsDeleteCallbackServerBuilder struct { api.Params } @@ -328,7 +328,7 @@ func (b *GroupsDeleteCallbackServerBuilder) ServerID(v int) *GroupsDeleteCallbac // // Allows to delete a link from the community. // -// https://vk.com/dev/groups.deleteLink +// https://dev.vk.com/method/groups.deleteLink type GroupsDeleteLinkBuilder struct { api.Params } @@ -352,7 +352,7 @@ func (b *GroupsDeleteLinkBuilder) LinkID(v int) *GroupsDeleteLinkBuilder { // GroupsDisableOnlineBuilder builder. // -// https://vk.com/dev/groups.disableOnline +// https://dev.vk.com/method/groups.disableOnline type GroupsDisableOnlineBuilder struct { api.Params } @@ -372,7 +372,7 @@ func (b *GroupsDisableOnlineBuilder) GroupID(v int) *GroupsDisableOnlineBuilder // // Edits a community. // -// https://vk.com/dev/groups.edit +// https://dev.vk.com/method/groups.edit type GroupsEditBuilder struct { api.Params } @@ -841,7 +841,7 @@ func (b *GroupsEditBuilder) City(v int) *GroupsEditBuilder { // GroupsEditAddressBuilder builder. // -// https://vk.com/dev/groups.editAddress +// https://dev.vk.com/method/groups.editAddress type GroupsEditAddressBuilder struct { api.Params } @@ -937,7 +937,7 @@ func (b *GroupsEditAddressBuilder) IsMainAddress(v bool) *GroupsEditAddressBuild // GroupsEditCallbackServerBuilder builder. // -// https://vk.com/dev/groups.editCallbackServer +// https://dev.vk.com/method/groups.editCallbackServer type GroupsEditCallbackServerBuilder struct { api.Params } @@ -981,7 +981,7 @@ func (b *GroupsEditCallbackServerBuilder) SecretKey(v string) *GroupsEditCallbac // // Allows to edit a link in the community. // -// https://vk.com/dev/groups.editLink +// https://dev.vk.com/method/groups.editLink type GroupsEditLinkBuilder struct { api.Params } @@ -1013,7 +1013,7 @@ func (b *GroupsEditLinkBuilder) Text(v string) *GroupsEditLinkBuilder { // // Allows to add, remove or edit the community manager. // -// https://vk.com/dev/groups.editManager +// https://dev.vk.com/method/groups.editManager type GroupsEditManagerBuilder struct { api.Params } @@ -1073,7 +1073,7 @@ func (b *GroupsEditManagerBuilder) ContactEmail(v string) *GroupsEditManagerBuil // GroupsEnableOnlineBuilder builder. // -// https://vk.com/dev/groups.enableOnline +// https://dev.vk.com/method/groups.enableOnline type GroupsEnableOnlineBuilder struct { api.Params } @@ -1093,7 +1093,7 @@ func (b *GroupsEnableOnlineBuilder) GroupID(v int) *GroupsEnableOnlineBuilder { // // Returns a list of the communities to which a user belongs. // -// https://vk.com/dev/groups.get +// https://dev.vk.com/method/groups.get type GroupsGetBuilder struct { api.Params } @@ -1159,7 +1159,7 @@ func (b *GroupsGetBuilder) Count(v int) *GroupsGetBuilder { // // Returns a list of community addresses. // -// https://vk.com/dev/groups.getAddresses +// https://dev.vk.com/method/groups.getAddresses type GroupsGetAddressesBuilder struct { api.Params } @@ -1215,7 +1215,7 @@ func (b *GroupsGetAddressesBuilder) Fields(v []string) *GroupsGetAddressesBuilde // // Returns a list of users on a community blacklist. // -// https://vk.com/dev/groups.getBanned +// https://dev.vk.com/method/groups.getBanned type GroupsGetBannedBuilder struct { api.Params } @@ -1259,7 +1259,7 @@ func (b *GroupsGetBannedBuilder) OwnerID(v int) *GroupsGetBannedBuilder { // // Returns information about communities by their IDs. // -// https://vk.com/dev/groups.getById +// https://dev.vk.com/method/groups.getById type GroupsGetByIDBuilder struct { api.Params } @@ -1291,7 +1291,7 @@ func (b *GroupsGetByIDBuilder) Fields(v []string) *GroupsGetByIDBuilder { // // Returns Callback API confirmation code for the community. // -// https://vk.com/dev/groups.getCallbackConfirmationCode +// https://dev.vk.com/method/groups.getCallbackConfirmationCode type GroupsGetCallbackConfirmationCodeBuilder struct { api.Params } @@ -1309,7 +1309,7 @@ func (b *GroupsGetCallbackConfirmationCodeBuilder) GroupID(v int) *GroupsGetCall // GroupsGetCallbackServersBuilder builder. // -// https://vk.com/dev/groups.getCallbackServers +// https://dev.vk.com/method/groups.getCallbackServers type GroupsGetCallbackServersBuilder struct { api.Params } @@ -1335,7 +1335,7 @@ func (b *GroupsGetCallbackServersBuilder) ServerIDs(v []int) *GroupsGetCallbackS // // Returns [vk.com/dev/callback_api|Callback API] notifications settings. // -// https://vk.com/dev/groups.getCallbackSettings +// https://dev.vk.com/method/groups.getCallbackSettings type GroupsGetCallbackSettingsBuilder struct { api.Params } @@ -1361,7 +1361,7 @@ func (b *GroupsGetCallbackSettingsBuilder) ServerID(v int) *GroupsGetCallbackSet // // Returns communities list for a catalog category. // -// https://vk.com/dev/groups.getCatalog +// https://dev.vk.com/method/groups.getCatalog type GroupsGetCatalogBuilder struct { api.Params } @@ -1387,7 +1387,7 @@ func (b *GroupsGetCatalogBuilder) SubcategoryID(v int) *GroupsGetCatalogBuilder // // Returns categories list for communities catalog. // -// https://vk.com/dev/groups.getCatalogInfo +// https://dev.vk.com/method/groups.getCatalogInfo type GroupsGetCatalogInfoBuilder struct { api.Params } @@ -1413,7 +1413,7 @@ func (b *GroupsGetCatalogInfoBuilder) Subcategories(v bool) *GroupsGetCatalogInf // // Returns invited users list of a community. // -// https://vk.com/dev/groups.getInvitedUsers +// https://dev.vk.com/method/groups.getInvitedUsers type GroupsGetInvitedUsersBuilder struct { api.Params } @@ -1473,7 +1473,7 @@ func (b *GroupsGetInvitedUsersBuilder) NameCase(v string) *GroupsGetInvitedUsers // // Returns a list of invitations to join communities and events. // -// https://vk.com/dev/groups.getInvites +// https://dev.vk.com/method/groups.getInvites type GroupsGetInvitesBuilder struct { api.Params } @@ -1505,7 +1505,7 @@ func (b *GroupsGetInvitesBuilder) Extended(v bool) *GroupsGetInvitesBuilder { // // Returns the data needed to query a Long Poll server for events. // -// https://vk.com/dev/groups.getLongPollServer +// https://dev.vk.com/method/groups.getLongPollServer type GroupsGetLongPollServerBuilder struct { api.Params } @@ -1525,7 +1525,7 @@ func (b *GroupsGetLongPollServerBuilder) GroupID(v int) *GroupsGetLongPollServer // // Returns Long Poll notification settings. // -// https://vk.com/dev/groups.getLongPollSettings +// https://dev.vk.com/method/groups.getLongPollSettings type GroupsGetLongPollSettingsBuilder struct { api.Params } @@ -1545,7 +1545,7 @@ func (b *GroupsGetLongPollSettingsBuilder) GroupID(v int) *GroupsGetLongPollSett // // Returns a list of community members. // -// https://vk.com/dev/groups.getMembers +// https://dev.vk.com/method/groups.getMembers type GroupsGetMembersBuilder struct { api.Params } @@ -1601,7 +1601,7 @@ func (b *GroupsGetMembersBuilder) Filter(v string) *GroupsGetMembersBuilder { // // Returns a list of requests to the community. // -// https://vk.com/dev/groups.getRequests +// https://dev.vk.com/method/groups.getRequests type GroupsGetRequestsBuilder struct { api.Params } @@ -1639,7 +1639,7 @@ func (b *GroupsGetRequestsBuilder) Fields(v []string) *GroupsGetRequestsBuilder // // Returns community settings. // -// https://vk.com/dev/groups.getSettings +// https://dev.vk.com/method/groups.getSettings type GroupsGetSettingsBuilder struct { api.Params } @@ -1657,7 +1657,7 @@ func (b *GroupsGetSettingsBuilder) GroupID(v int) *GroupsGetSettingsBuilder { // GroupsGetTagListBuilder builder. // -// https://vk.com/dev/groups.getTagList +// https://dev.vk.com/method/groups.getTagList type GroupsGetTagListBuilder struct { api.Params } @@ -1677,7 +1677,7 @@ func (b *GroupsGetTagListBuilder) GroupID(v int) *GroupsGetTagListBuilder { // // Allows to invite friends to the community. // -// https://vk.com/dev/groups.invite +// https://dev.vk.com/method/groups.invite type GroupsInviteBuilder struct { api.Params } @@ -1703,7 +1703,7 @@ func (b *GroupsInviteBuilder) UserID(v int) *GroupsInviteBuilder { // // Returns information specifying whether a user is a member of a community. // -// https://vk.com/dev/groups.isMember +// https://dev.vk.com/method/groups.isMember type GroupsIsMemberBuilder struct { api.Params } @@ -1741,7 +1741,7 @@ func (b *GroupsIsMemberBuilder) Extended(v bool) *GroupsIsMemberBuilder { // // With this method you can join the group or public page, and also confirm your participation in an event. // -// https://vk.com/dev/groups.join +// https://dev.vk.com/method/groups.join type GroupsJoinBuilder struct { api.Params } @@ -1771,7 +1771,7 @@ func (b *GroupsJoinBuilder) NotSure(v string) *GroupsJoinBuilder { // // With this method you can leave a group, public page, or event. // -// https://vk.com/dev/groups.leave +// https://dev.vk.com/method/groups.leave type GroupsLeaveBuilder struct { api.Params } @@ -1791,7 +1791,7 @@ func (b *GroupsLeaveBuilder) GroupID(v int) *GroupsLeaveBuilder { // // Removes a user from the community. // -// https://vk.com/dev/groups.removeUser +// https://dev.vk.com/method/groups.removeUser type GroupsRemoveUserBuilder struct { api.Params } @@ -1817,7 +1817,7 @@ func (b *GroupsRemoveUserBuilder) UserID(v int) *GroupsRemoveUserBuilder { // // Allows to reorder links in the community. // -// https://vk.com/dev/groups.reorderLink +// https://dev.vk.com/method/groups.reorderLink type GroupsReorderLinkBuilder struct { api.Params } @@ -1849,7 +1849,7 @@ func (b *GroupsReorderLinkBuilder) After(v int) *GroupsReorderLinkBuilder { // // Returns a list of communities matching the search criteria. // -// https://vk.com/dev/groups.search +// https://dev.vk.com/method/groups.search type GroupsSearchBuilder struct { api.Params } @@ -1930,7 +1930,7 @@ func (b *GroupsSearchBuilder) Count(v int) *GroupsSearchBuilder { // // Allow to set notifications settings for group. // -// https://vk.com/dev/groups.setCallbackSettings +// https://dev.vk.com/method/groups.setCallbackSettings type GroupsSetCallbackSettingsBuilder struct { api.Params } @@ -2268,7 +2268,7 @@ func (b *GroupsSetCallbackSettingsBuilder) DonutMoneyWithdrawError(v bool) *Grou // // Sets Long Poll notification settings. // -// https://vk.com/dev/groups.setLongPollSettings +// https://dev.vk.com/method/groups.setLongPollSettings type GroupsSetLongPollSettingsBuilder struct { api.Params } @@ -2598,7 +2598,7 @@ func (b *GroupsSetLongPollSettingsBuilder) DonutMoneyWithdrawError(v bool) *Grou // GroupsSetUserNoteBuilder builder. // -// https://vk.com/dev/groups.setUserNote +// https://dev.vk.com/method/groups.setUserNote type GroupsSetUserNoteBuilder struct { api.Params } @@ -2630,7 +2630,7 @@ func (b *GroupsSetUserNoteBuilder) Note(v string) *GroupsSetUserNoteBuilder { // GroupsTagAddBuilder builder. // -// https://vk.com/dev/groups.tagAdd +// https://dev.vk.com/method/groups.tagAdd type GroupsTagAddBuilder struct { api.Params } @@ -2682,7 +2682,7 @@ func (b *GroupsTagAddBuilder) TagColor(v string) *GroupsTagAddBuilder { // GroupsTagBindBuilder builder. // -// https://vk.com/dev/groups.tagBind +// https://dev.vk.com/method/groups.tagBind type GroupsTagBindBuilder struct { api.Params } @@ -2728,7 +2728,7 @@ func (b *GroupsTagBindBuilder) Unbind() *GroupsTagBindBuilder { // GroupsTagDeleteBuilder builder. // -// https://vk.com/dev/groups.tagDelete +// https://dev.vk.com/method/groups.tagDelete type GroupsTagDeleteBuilder struct { api.Params } @@ -2752,7 +2752,7 @@ func (b *GroupsTagDeleteBuilder) TagID(v int) *GroupsTagDeleteBuilder { // GroupsTagUpdateBuilder builder. // -// https://vk.com/dev/groups.tagUpdate +// https://dev.vk.com/method/groups.tagUpdate type GroupsTagUpdateBuilder struct { api.Params } @@ -2782,7 +2782,7 @@ func (b *GroupsTagUpdateBuilder) TagName(v string) *GroupsTagUpdateBuilder { // GroupsToggleMarketBuilder builder. // -// https://vk.com/dev/groups.toggleMarket +// https://dev.vk.com/method/groups.toggleMarket type GroupsToggleMarketBuilder struct { api.Params } @@ -2820,7 +2820,7 @@ func (b *GroupsToggleMarketBuilder) State(v GroupMarketState) *GroupsToggleMarke // GroupsUnbanBuilder builder. // -// https://vk.com/dev/groups.unban +// https://dev.vk.com/method/groups.unban type GroupsUnbanBuilder struct { api.Params } diff --git a/api/params/leads.go b/api/params/leads.go index 99f525d6..d517eb76 100644 --- a/api/params/leads.go +++ b/api/params/leads.go @@ -8,7 +8,7 @@ import ( // // Checks if the user can start the lead. // -// https://vk.com/dev/leads.checkUser +// https://dev.vk.com/method/leads.checkUser type LeadsCheckUserBuilder struct { api.Params } @@ -58,7 +58,7 @@ func (b *LeadsCheckUserBuilder) Country(v string) *LeadsCheckUserBuilder { // // Completes the lead started by user. // -// https://vk.com/dev/leads.complete +// https://dev.vk.com/method/leads.complete type LeadsCompleteBuilder struct { api.Params } @@ -90,7 +90,7 @@ func (b *LeadsCompleteBuilder) Comment(v string) *LeadsCompleteBuilder { // // Returns lead stats data. // -// https://vk.com/dev/leads.getStats +// https://dev.vk.com/method/leads.getStats type LeadsGetStatsBuilder struct { api.Params } @@ -128,7 +128,7 @@ func (b *LeadsGetStatsBuilder) DateEnd(v string) *LeadsGetStatsBuilder { // // Returns a list of last user actions for the offer. // -// https://vk.com/dev/leads.getUsers +// https://dev.vk.com/method/leads.getUsers type LeadsGetUsersBuilder struct { api.Params } @@ -192,7 +192,7 @@ func (b *LeadsGetUsersBuilder) Reverse(v bool) *LeadsGetUsersBuilder { // // Counts the metric event. // -// https://vk.com/dev/leads.metricHit +// https://dev.vk.com/method/leads.metricHit type LeadsMetricHitBuilder struct { api.Params } @@ -212,7 +212,7 @@ func (b *LeadsMetricHitBuilder) Data(v string) *LeadsMetricHitBuilder { // // Creates new session for the user passing the offer. // -// https://vk.com/dev/leads.start +// https://dev.vk.com/method/leads.start type LeadsStartBuilder struct { api.Params } diff --git a/api/params/likes.go b/api/params/likes.go index e2d2c8ab..28c6d74f 100644 --- a/api/params/likes.go +++ b/api/params/likes.go @@ -8,7 +8,7 @@ import ( // // Adds the specified object to the 'Likes' list of the current user. // -// https://vk.com/dev/likes.add +// https://dev.vk.com/method/likes.add type LikesAddBuilder struct { api.Params } @@ -72,7 +72,7 @@ func (b *LikesAddBuilder) AccessKey(v string) *LikesAddBuilder { // // Deletes the specified object from the 'Likes' list of the current user. // -// https://vk.com/dev/likes.delete +// https://dev.vk.com/method/likes.delete type LikesDeleteBuilder struct { api.Params } @@ -124,7 +124,7 @@ func (b *LikesDeleteBuilder) ItemID(v int) *LikesDeleteBuilder { // // Returns a list of IDs of users who added the specified object to their 'Likes' list. // -// https://vk.com/dev/likes.getList +// https://dev.vk.com/method/likes.getList type LikesGetListBuilder struct { api.Params } @@ -236,7 +236,7 @@ func (b *LikesGetListBuilder) SkipOwn(v bool) *LikesGetListBuilder { // // Checks for the object in the 'Likes' list of the specified user. // -// https://vk.com/dev/likes.isLiked +// https://dev.vk.com/method/likes.isLiked type LikesIsLikedBuilder struct { api.Params } diff --git a/api/params/market.go b/api/params/market.go index 05cd949d..f2a08ca6 100644 --- a/api/params/market.go +++ b/api/params/market.go @@ -8,7 +8,7 @@ import ( // // Ads a new item to the market. // -// https://vk.com/dev/market.add +// https://dev.vk.com/method/market.add type MarketAddBuilder struct { api.Params } @@ -82,7 +82,7 @@ func (b *MarketAddBuilder) URL(v string) *MarketAddBuilder { // // Creates new collection of items. // -// https://vk.com/dev/market.addAlbum +// https://dev.vk.com/method/market.addAlbum type MarketAddAlbumBuilder struct { api.Params } @@ -126,7 +126,7 @@ func (b *MarketAddAlbumBuilder) IsHidden(v bool) *MarketAddAlbumBuilder { // // Adds an item to one or multiple collections. // -// https://vk.com/dev/market.addToAlbum +// https://dev.vk.com/method/market.addToAlbum type MarketAddToAlbumBuilder struct { api.Params } @@ -164,7 +164,7 @@ func (b *MarketAddToAlbumBuilder) AlbumIDs(v []int) *MarketAddToAlbumBuilder { // // Creates a new comment for an item. // -// https://vk.com/dev/market.createComment +// https://dev.vk.com/method/market.createComment type MarketCreateCommentBuilder struct { api.Params } @@ -230,7 +230,7 @@ func (b *MarketCreateCommentBuilder) GUID(v string) *MarketCreateCommentBuilder // // Deletes an item. // -// https://vk.com/dev/market.delete +// https://dev.vk.com/method/market.delete type MarketDeleteBuilder struct { api.Params } @@ -256,7 +256,7 @@ func (b *MarketDeleteBuilder) ItemID(v int) *MarketDeleteBuilder { // // Deletes a collection of items. // -// https://vk.com/dev/market.deleteAlbum +// https://dev.vk.com/method/market.deleteAlbum type MarketDeleteAlbumBuilder struct { api.Params } @@ -282,7 +282,7 @@ func (b *MarketDeleteAlbumBuilder) AlbumID(v int) *MarketDeleteAlbumBuilder { // // Deletes an item's comment. // -// https://vk.com/dev/market.deleteComment +// https://dev.vk.com/method/market.deleteComment type MarketDeleteCommentBuilder struct { api.Params } @@ -310,7 +310,7 @@ func (b *MarketDeleteCommentBuilder) CommentID(v int) *MarketDeleteCommentBuilde // // Edits an item. // -// https://vk.com/dev/market.edit +// https://dev.vk.com/method/market.edit type MarketEditBuilder struct { api.Params } @@ -384,7 +384,7 @@ func (b *MarketEditBuilder) URL(v string) *MarketEditBuilder { // // Edits a collection of items. // -// https://vk.com/dev/market.editAlbum +// https://dev.vk.com/method/market.editAlbum type MarketEditAlbumBuilder struct { api.Params } @@ -434,7 +434,7 @@ func (b *MarketEditAlbumBuilder) IsHidden(v bool) *MarketEditAlbumBuilder { // // EditOrders an item. // -// https://vk.com/dev/market.editOrder +// https://dev.vk.com/method/market.editOrder type MarketEditOrderBuilder struct { api.Params } @@ -526,7 +526,7 @@ func (b *MarketEditOrderBuilder) ReceiptLink(v string) *MarketEditOrderBuilder { // // Changes item comment's text. // -// https://vk.com/dev/market.editComment +// https://dev.vk.com/method/market.editComment type MarketEditCommentBuilder struct { api.Params } @@ -568,7 +568,7 @@ func (b *MarketEditCommentBuilder) Attachments(v interface{}) *MarketEditComment // // Returns items list for a community. // -// https://vk.com/dev/market.get +// https://dev.vk.com/method/market.get type MarketGetBuilder struct { api.Params } @@ -630,7 +630,7 @@ func (b *MarketGetBuilder) WithDisabled(v bool) *MarketGetBuilder { // // Returns items album's data. // -// https://vk.com/dev/market.getAlbumById +// https://dev.vk.com/method/market.getAlbumById type MarketGetAlbumByIDBuilder struct { api.Params } @@ -663,7 +663,7 @@ func (b *MarketGetAlbumByIDBuilder) NeedAllItemIDs(v bool) *MarketGetAlbumByIDBu // // Returns community's collections list. // -// https://vk.com/dev/market.getAlbums +// https://dev.vk.com/method/market.getAlbums type MarketGetAlbumsBuilder struct { api.Params } @@ -695,7 +695,7 @@ func (b *MarketGetAlbumsBuilder) Count(v int) *MarketGetAlbumsBuilder { // // Returns information about market items by their ids. // -// https://vk.com/dev/market.getById +// https://dev.vk.com/method/market.getById type MarketGetByIDBuilder struct { api.Params } @@ -722,7 +722,7 @@ func (b *MarketGetByIDBuilder) Extended(v bool) *MarketGetByIDBuilder { // // Returns a list of market categories. // -// https://vk.com/dev/market.getCategories +// https://dev.vk.com/method/market.getCategories type MarketGetCategoriesBuilder struct { api.Params } @@ -748,7 +748,7 @@ func (b *MarketGetCategoriesBuilder) Offset(v int) *MarketGetCategoriesBuilder { // // Returns comments list for an item. // -// https://vk.com/dev/market.getComments +// https://dev.vk.com/method/market.getComments type MarketGetCommentsBuilder struct { api.Params } @@ -819,7 +819,7 @@ func (b *MarketGetCommentsBuilder) Fields(v []string) *MarketGetCommentsBuilder // // Returns community's orders list. // -// https://vk.com/dev/market.getGroupOrders +// https://dev.vk.com/method/market.getGroupOrders type MarketGetGroupOrdersBuilder struct { api.Params } @@ -851,7 +851,7 @@ func (b *MarketGetGroupOrdersBuilder) Count(v int) *MarketGetGroupOrdersBuilder // // Returns order by id. // -// https://vk.com/dev/market.getOrderById +// https://dev.vk.com/method/market.getOrderById type MarketGetOrderByIDBuilder struct { api.Params } @@ -883,7 +883,7 @@ func (b *MarketGetOrderByIDBuilder) Extended(v bool) *MarketGetOrderByIDBuilder // // Returns items of an order. // -// https://vk.com/dev/market.getOrderItems +// https://dev.vk.com/method/market.getOrderItems type MarketGetOrderItemsBuilder struct { api.Params } @@ -915,7 +915,7 @@ func (b *MarketGetOrderItemsBuilder) Count(v int) *MarketGetOrderItemsBuilder { // // Removes an item from one or multiple collections. // -// https://vk.com/dev/market.removeFromAlbum +// https://dev.vk.com/method/market.removeFromAlbum type MarketRemoveFromAlbumBuilder struct { api.Params } @@ -947,7 +947,7 @@ func (b *MarketRemoveFromAlbumBuilder) AlbumIDs(v []int) *MarketRemoveFromAlbumB // // Reorders the collections list. // -// https://vk.com/dev/market.reorderAlbums +// https://dev.vk.com/method/market.reorderAlbums type MarketReorderAlbumsBuilder struct { api.Params } @@ -985,7 +985,7 @@ func (b *MarketReorderAlbumsBuilder) After(v int) *MarketReorderAlbumsBuilder { // // Changes item place in a collection. // -// https://vk.com/dev/market.reorderItems +// https://dev.vk.com/method/market.reorderItems type MarketReorderItemsBuilder struct { api.Params } @@ -1029,7 +1029,7 @@ func (b *MarketReorderItemsBuilder) After(v int) *MarketReorderItemsBuilder { // // Sends a complaint to the item. // -// https://vk.com/dev/market.report +// https://dev.vk.com/method/market.report type MarketReportBuilder struct { api.Params } @@ -1075,7 +1075,7 @@ func (b *MarketReportBuilder) Reason(v int) *MarketReportBuilder { // // Sends a complaint to the item's comment. // -// https://vk.com/dev/market.reportComment +// https://dev.vk.com/method/market.reportComment type MarketReportCommentBuilder struct { api.Params } @@ -1121,7 +1121,7 @@ func (b *MarketReportCommentBuilder) Reason(v int) *MarketReportCommentBuilder { // // Restores recently deleted item. // -// https://vk.com/dev/market.restore +// https://dev.vk.com/method/market.restore type MarketRestoreBuilder struct { api.Params } @@ -1147,7 +1147,7 @@ func (b *MarketRestoreBuilder) ItemID(v int) *MarketRestoreBuilder { // // Restores a recently deleted comment. // -// https://vk.com/dev/market.restoreComment +// https://dev.vk.com/method/market.restoreComment type MarketRestoreCommentBuilder struct { api.Params } @@ -1174,7 +1174,7 @@ func (b *MarketRestoreCommentBuilder) CommentID(v int) *MarketRestoreCommentBuil // // Searches market items in a community's catalog. // -// https://vk.com/dev/market.search +// https://dev.vk.com/method/market.search type MarketSearchBuilder struct { api.Params } @@ -1264,7 +1264,7 @@ func (b *MarketSearchBuilder) NeedVariants(v bool) *MarketSearchBuilder { // MarketSearchItemsBuilder builder. // -// https://vk.com/dev/market.searchItems +// https://dev.vk.com/method/market.searchItems type MarketSearchItemsBuilder struct { api.Params } diff --git a/api/params/marusia.go b/api/params/marusia.go index e6e17298..121e6a89 100644 --- a/api/params/marusia.go +++ b/api/params/marusia.go @@ -6,7 +6,7 @@ import ( // MarusiaSavePictureBuilder builder. // -// https://vk.com/dev/marusia_skill_docs10 +// https://dev.vk.com/ru/marusia/media-api type MarusiaSavePictureBuilder struct { api.Params } @@ -36,7 +36,7 @@ func (b *MarusiaSavePictureBuilder) Hash(v string) *MarusiaSavePictureBuilder { // MarusiaDeletePictureBuilder builder. // -// https://vk.com/dev/marusia_skill_docs10 +// https://dev.vk.com/ru/marusia/media-api type MarusiaDeletePictureBuilder struct { api.Params } @@ -54,7 +54,7 @@ func (b *MarusiaDeletePictureBuilder) ID(v int) *MarusiaDeletePictureBuilder { // MarusiaCreateAudioBuilder builder. // -// https://vk.com/dev/marusia_skill_docs10 +// https://dev.vk.com/ru/marusia/media-api type MarusiaCreateAudioBuilder struct { api.Params } @@ -72,7 +72,7 @@ func (b *MarusiaCreateAudioBuilder) AudioMeta(v string) *MarusiaCreateAudioBuild // MarusiaDeleteAudioBuilder builder. // -// https://vk.com/dev/marusia_skill_docs10 +// https://dev.vk.com/ru/marusia/media-api type MarusiaDeleteAudioBuilder struct { api.Params } diff --git a/api/params/messages.go b/api/params/messages.go index 64589258..ee0c2697 100644 --- a/api/params/messages.go +++ b/api/params/messages.go @@ -8,7 +8,7 @@ import ( // // Adds a new user to a chat. // -// https://vk.com/dev/messages.addChatUser +// https://dev.vk.com/method/messages.addChatUser type MessagesAddChatUserBuilder struct { api.Params } @@ -34,7 +34,7 @@ func (b *MessagesAddChatUserBuilder) UserID(v int) *MessagesAddChatUserBuilder { // // Allows sending messages from community to the current user. // -// https://vk.com/dev/messages.allowMessagesFromGroup +// https://dev.vk.com/method/messages.allowMessagesFromGroup type MessagesAllowMessagesFromGroupBuilder struct { api.Params } @@ -60,7 +60,7 @@ func (b *MessagesAllowMessagesFromGroupBuilder) Key(v string) *MessagesAllowMess // // Creates a chat with several participants. // -// https://vk.com/dev/messages.createChat +// https://dev.vk.com/method/messages.createChat type MessagesCreateChatBuilder struct { api.Params } @@ -86,7 +86,7 @@ func (b *MessagesCreateChatBuilder) Title(v string) *MessagesCreateChatBuilder { // // Deletes one or more messages. // -// https://vk.com/dev/messages.delete +// https://dev.vk.com/method/messages.delete type MessagesDeleteBuilder struct { api.Params } @@ -136,7 +136,7 @@ func (b *MessagesDeleteBuilder) DeleteForAll(v bool) *MessagesDeleteBuilder { // // Deletes a chat's cover picture. // -// https://vk.com/dev/messages.deleteChatPhoto +// https://dev.vk.com/method/messages.deleteChatPhoto type MessagesDeleteChatPhotoBuilder struct { api.Params } @@ -162,7 +162,7 @@ func (b *MessagesDeleteChatPhotoBuilder) GroupID(v int) *MessagesDeleteChatPhoto // // Deletes all private messages in a conversation. // -// https://vk.com/dev/messages.deleteConversation +// https://dev.vk.com/method/messages.deleteConversation type MessagesDeleteConversationBuilder struct { api.Params } @@ -196,7 +196,7 @@ func (b *MessagesDeleteConversationBuilder) GroupID(v int) *MessagesDeleteConver // // Denies sending message from community to the current user. // -// https://vk.com/dev/messages.denyMessagesFromGroup +// https://dev.vk.com/method/messages.denyMessagesFromGroup type MessagesDenyMessagesFromGroupBuilder struct { api.Params } @@ -216,7 +216,7 @@ func (b *MessagesDenyMessagesFromGroupBuilder) GroupID(v int) *MessagesDenyMessa // // Edits the message. // -// https://vk.com/dev/messages.edit +// https://dev.vk.com/method/messages.edit type MessagesEditBuilder struct { api.Params } @@ -288,14 +288,14 @@ func (b *MessagesEditBuilder) GroupID(v int) *MessagesEditBuilder { } // Keyboard parameter. -// https://vk.com/dev/bots_docs_3 +// https://dev.vk.com/ru/api/bots/development/keyboard func (b *MessagesEditBuilder) Keyboard(v interface{}) *MessagesEditBuilder { b.Params["keyboard"] = v return b } // Template parameter. -// https://vk.com/dev/bot_docs_templates +// https://dev.vk.com/ru/api/bots/development/messages func (b *MessagesEditBuilder) Template(v interface{}) *MessagesEditBuilder { b.Params["template"] = v return b @@ -317,7 +317,7 @@ func (b *MessagesEditBuilder) DontParseLinks(v bool) *MessagesEditBuilder { // // Edits the title of a chat. // -// https://vk.com/dev/messages.editChat +// https://dev.vk.com/method/messages.editChat type MessagesEditChatBuilder struct { api.Params } @@ -341,7 +341,7 @@ func (b *MessagesEditChatBuilder) Title(v string) *MessagesEditChatBuilder { // MessagesForceCallFinishBuilder builder. // -// https://vk.com/dev/messages.forceCallFinish +// https://dev.vk.com/method/messages.forceCallFinish type MessagesForceCallFinishBuilder struct { api.Params } @@ -361,7 +361,7 @@ func (b *MessagesForceCallFinishBuilder) CallID(v string) *MessagesForceCallFini // // Returns messages by their IDs within the conversation. // -// https://vk.com/dev/messages.getByConversationMessageId +// https://dev.vk.com/method/messages.getByConversationMessageId type MessagesGetByConversationMessageIDBuilder struct { api.Params } @@ -407,7 +407,7 @@ func (b *MessagesGetByConversationMessageIDBuilder) GroupID(v int) *MessagesGetB // // Returns messages by their IDs. // -// https://vk.com/dev/messages.getById +// https://dev.vk.com/method/messages.getById type MessagesGetByIDBuilder struct { api.Params } @@ -453,7 +453,7 @@ func (b *MessagesGetByIDBuilder) GroupID(v int) *MessagesGetByIDBuilder { // MessagesGetChatPreviewBuilder builder. // -// https://vk.com/dev/messages.getChatPreview +// https://dev.vk.com/method/messages.getChatPreview type MessagesGetChatPreviewBuilder struct { api.Params } @@ -485,7 +485,7 @@ func (b *MessagesGetChatPreviewBuilder) Fields(v []string) *MessagesGetChatPrevi // // Returns a list of IDs of users participating in a chat. // -// https://vk.com/dev/messages.getConversationMembers +// https://dev.vk.com/method/messages.getConversationMembers type MessagesGetConversationMembersBuilder struct { api.Params } @@ -517,7 +517,7 @@ func (b *MessagesGetConversationMembersBuilder) GroupID(v int) *MessagesGetConve // // Returns a list of the current user's conversations. // -// https://vk.com/dev/messages.getConversations +// https://dev.vk.com/method/messages.getConversations type MessagesGetConversationsBuilder struct { api.Params } @@ -576,7 +576,7 @@ func (b *MessagesGetConversationsBuilder) GroupID(v int) *MessagesGetConversatio // // Returns conversations by their IDs. // -// https://vk.com/dev/messages.getConversationsById +// https://dev.vk.com/method/messages.getConversationsById type MessagesGetConversationsByIDBuilder struct { api.Params } @@ -616,7 +616,7 @@ func (b *MessagesGetConversationsByIDBuilder) GroupID(v int) *MessagesGetConvers // // Returns message history for the specified user or group chat. // -// https://vk.com/dev/messages.getHistory +// https://dev.vk.com/method/messages.getHistory type MessagesGetHistoryBuilder struct { api.Params } @@ -685,7 +685,7 @@ func (b *MessagesGetHistoryBuilder) GroupID(v int) *MessagesGetHistoryBuilder { // // Returns media files from the dialog or group chat. // -// https://vk.com/dev/messages.getHistoryAttachments +// https://dev.vk.com/method/messages.getHistoryAttachments type MessagesGetHistoryAttachmentsBuilder struct { api.Params } @@ -753,7 +753,7 @@ func (b *MessagesGetHistoryAttachmentsBuilder) MaxForwardsLevel(v int) *Messages // MessagesGetIntentUsersBuilder builder. // -// https://vk.com/dev/messages.getIntentUsers +// https://dev.vk.com/method/messages.getIntentUsers type MessagesGetIntentUsersBuilder struct { api.Params } @@ -807,7 +807,7 @@ func (b *MessagesGetIntentUsersBuilder) Fields(v []string) *MessagesGetIntentUse // MessagesGetInviteLinkBuilder builder. // -// https://vk.com/dev/messages.getInviteLink +// https://dev.vk.com/method/messages.getInviteLink type MessagesGetInviteLinkBuilder struct { api.Params } @@ -840,7 +840,7 @@ func (b *MessagesGetInviteLinkBuilder) GroupID(v int) *MessagesGetInviteLinkBuil // // Returns a user's current status and date of last activity. // -// https://vk.com/dev/messages.getLastActivity +// https://dev.vk.com/method/messages.getLastActivity type MessagesGetLastActivityBuilder struct { api.Params } @@ -860,7 +860,7 @@ func (b *MessagesGetLastActivityBuilder) UserID(v int) *MessagesGetLastActivityB // // Returns updates in user's private messages. // -// https://vk.com/dev/messages.getLongPollHistory +// https://dev.vk.com/method/messages.getLongPollHistory type MessagesGetLongPollHistoryBuilder struct { api.Params } @@ -957,7 +957,7 @@ func (b *MessagesGetLongPollHistoryBuilder) Credentials(v bool) *MessagesGetLong // // Returns data required for connection to a Long Poll server. // -// https://vk.com/dev/messages.getLongPollServer +// https://dev.vk.com/method/messages.getLongPollServer type MessagesGetLongPollServerBuilder struct { api.Params } @@ -991,7 +991,7 @@ func (b *MessagesGetLongPollServerBuilder) LpVersion(v int) *MessagesGetLongPoll // Returns information whether sending messages from the community to // current user is allowed. // -// https://vk.com/dev/messages.isMessagesFromGroupAllowed +// https://dev.vk.com/method/messages.isMessagesFromGroupAllowed type MessagesIsMessagesFromGroupAllowedBuilder struct { api.Params } @@ -1015,7 +1015,7 @@ func (b *MessagesIsMessagesFromGroupAllowedBuilder) UserID(v int) *MessagesIsMes // MessagesJoinChatByInviteLinkBuilder builder. // -// https://vk.com/dev/messages.joinChatByInviteLink +// https://dev.vk.com/method/messages.joinChatByInviteLink type MessagesJoinChatByInviteLinkBuilder struct { api.Params } @@ -1035,7 +1035,7 @@ func (b *MessagesJoinChatByInviteLinkBuilder) Link(v string) *MessagesJoinChatBy // // Marks and unmarks conversations as unanswered. // -// https://vk.com/dev/messages.markAsAnsweredConversation +// https://dev.vk.com/method/messages.markAsAnsweredConversation type MessagesMarkAsAnsweredConversationBuilder struct { api.Params } @@ -1067,7 +1067,7 @@ func (b *MessagesMarkAsAnsweredConversationBuilder) GroupID(v int) *MessagesMark // // Marks and unmarks messages as important (starred). // -// https://vk.com/dev/messages.markAsImportant +// https://dev.vk.com/method/messages.markAsImportant type MessagesMarkAsImportantBuilder struct { api.Params } @@ -1093,7 +1093,7 @@ func (b *MessagesMarkAsImportantBuilder) Important(v int) *MessagesMarkAsImporta // // Marks and unmarks conversations as important. // -// https://vk.com/dev/messages.markAsImportantConversation +// https://dev.vk.com/method/messages.markAsImportantConversation type MessagesMarkAsImportantConversationBuilder struct { api.Params } @@ -1125,7 +1125,7 @@ func (b *MessagesMarkAsImportantConversationBuilder) GroupID(v int) *MessagesMar // // Marks messages as read. // -// https://vk.com/dev/messages.markAsRead +// https://dev.vk.com/method/messages.markAsRead type MessagesMarkAsReadBuilder struct { api.Params } @@ -1165,7 +1165,7 @@ func (b *MessagesMarkAsReadBuilder) GroupID(v int) *MessagesMarkAsReadBuilder { // // Pin a message. // -// https://vk.com/dev/messages.pin +// https://dev.vk.com/method/messages.pin type MessagesPinBuilder struct { api.Params } @@ -1200,7 +1200,7 @@ func (b *MessagesPinBuilder) ConversationMessageID(v int) *MessagesPinBuilder { // Allows the current user to leave a chat or, if the current user started the // chat, allows the user to remove another user from the chat. // -// https://vk.com/dev/messages.removeChatUser +// https://dev.vk.com/method/messages.removeChatUser type MessagesRemoveChatUserBuilder struct { api.Params } @@ -1232,7 +1232,7 @@ func (b *MessagesRemoveChatUserBuilder) MemberID(v int) *MessagesRemoveChatUserB // // Restores a deleted message. // -// https://vk.com/dev/messages.restore +// https://dev.vk.com/method/messages.restore type MessagesRestoreBuilder struct { api.Params } @@ -1259,7 +1259,7 @@ func (b *MessagesRestoreBuilder) GroupID(v int) *MessagesRestoreBuilder { // Returns a list of the current user's private messages that match search // criteria. // -// https://vk.com/dev/messages.search +// https://dev.vk.com/method/messages.search type MessagesSearchBuilder struct { api.Params } @@ -1334,7 +1334,7 @@ func (b *MessagesSearchBuilder) GroupID(v int) *MessagesSearchBuilder { // Returns a list of the current user's conversations that match search // criteria. // -// https://vk.com/dev/messages.searchConversations +// https://dev.vk.com/method/messages.searchConversations type MessagesSearchConversationsBuilder struct { api.Params } @@ -1378,7 +1378,7 @@ func (b *MessagesSearchConversationsBuilder) GroupID(v int) *MessagesSearchConve // // Sends a message. // -// https://vk.com/dev/messages.send +// https://dev.vk.com/method/messages.send type MessagesSendBuilder struct { api.Params } @@ -1496,14 +1496,14 @@ func (b *MessagesSendBuilder) GroupID(v int) *MessagesSendBuilder { } // Keyboard parameter. -// https://vk.com/dev/bots_docs_3 +// https://dev.vk.com/ru/api/bots/development/keyboard func (b *MessagesSendBuilder) Keyboard(v interface{}) *MessagesSendBuilder { b.Params["keyboard"] = v return b } // Template parameter. -// https://vk.com/dev/bot_docs_templates +// https://dev.vk.com/ru/api/bots/development/messages func (b *MessagesSendBuilder) Template(v interface{}) *MessagesSendBuilder { b.Params["template"] = v return b @@ -1516,7 +1516,7 @@ func (b *MessagesSendBuilder) Payload(v string) *MessagesSendBuilder { } // ContentSource parameter. -// https://vk.com/dev/bots_docs_2 +// https://dev.vk.com/ru/api/bots/development/messages func (b *MessagesSendBuilder) ContentSource(v interface{}) *MessagesSendBuilder { b.Params["content_source"] = v return b @@ -1560,7 +1560,7 @@ const ( // Intent parameter. // -// https://vk.com/dev/bots_docs_4 +// https://dev.vk.com/ru/api/bots/monetization/overview func (b *MessagesSendBuilder) Intent(v string) *MessagesSendBuilder { b.Params["intent"] = v return b @@ -1578,7 +1578,7 @@ func (b *MessagesSendBuilder) SubscribeID(v int) *MessagesSendBuilder { // // Changes the status of a user as typing in a conversation. // -// https://vk.com/dev/messages.sendMessageEventAnswer +// https://dev.vk.com/method/messages.sendMessageEventAnswer type MessagesSendMessageEventAnswerBuilder struct { api.Params } @@ -1616,7 +1616,7 @@ func (b *MessagesSendMessageEventAnswerBuilder) EventData(v interface{}) *Messag // // Changes the status of a user as typing in a conversation. // -// https://vk.com/dev/messages.setActivity +// https://dev.vk.com/method/messages.setActivity type MessagesSetActivityBuilder struct { api.Params } @@ -1656,7 +1656,7 @@ func (b *MessagesSetActivityBuilder) GroupID(v int) *MessagesSetActivityBuilder // // Sets a previously-uploaded picture as the cover picture of a chat. // -// https://vk.com/dev/messages.setChatPhoto +// https://dev.vk.com/method/messages.setChatPhoto type MessagesSetChatPhotoBuilder struct { api.Params } @@ -1676,7 +1676,7 @@ func (b *MessagesSetChatPhotoBuilder) File(v string) *MessagesSetChatPhotoBuilde // MessagesStartCallBuilder builder. // -// https://vk.com/dev/messages.startCall +// https://dev.vk.com/method/messages.startCall type MessagesStartCallBuilder struct { api.Params } @@ -1694,7 +1694,7 @@ func (b *MessagesStartCallBuilder) GroupID(v int) *MessagesStartCallBuilder { // MessagesUnpinBuilder builder. // -// https://vk.com/dev/messages.unpin +// https://dev.vk.com/method/messages.unpin type MessagesUnpinBuilder struct { api.Params } diff --git a/api/params/newsfeed.go b/api/params/newsfeed.go index b9ee59d4..9527077e 100644 --- a/api/params/newsfeed.go +++ b/api/params/newsfeed.go @@ -8,7 +8,7 @@ import ( // // Prevents news from specified users and communities from appearing in the current user's newsfeed. // -// https://vk.com/dev/newsfeed.addBan +// https://dev.vk.com/method/newsfeed.addBan type NewsfeedAddBanBuilder struct { api.Params } @@ -34,7 +34,7 @@ func (b *NewsfeedAddBanBuilder) GroupIDs(v []int) *NewsfeedAddBanBuilder { // // Allows news from previously banned users and communities to be shown in the current user's newsfeed. // -// https://vk.com/dev/newsfeed.deleteBan +// https://dev.vk.com/method/newsfeed.deleteBan type NewsfeedDeleteBanBuilder struct { api.Params } @@ -58,7 +58,7 @@ func (b *NewsfeedDeleteBanBuilder) GroupIDs(v []int) *NewsfeedDeleteBanBuilder { // NewsfeedDeleteListBuilder builder. // -// https://vk.com/dev/newsfeed.deleteList +// https://dev.vk.com/method/newsfeed.deleteList type NewsfeedDeleteListBuilder struct { api.Params } @@ -78,7 +78,7 @@ func (b *NewsfeedDeleteListBuilder) ListID(v int) *NewsfeedDeleteListBuilder { // // Returns data required to show newsfeed for the current user. // -// https://vk.com/dev/newsfeed.get +// https://dev.vk.com/method/newsfeed.get type NewsfeedGetBuilder struct { api.Params } @@ -171,7 +171,7 @@ func (b *NewsfeedGetBuilder) Section(v string) *NewsfeedGetBuilder { // // Returns a list of users and communities banned from the current user's newsfeed. // -// https://vk.com/dev/newsfeed.getBanned +// https://dev.vk.com/method/newsfeed.getBanned type NewsfeedGetBannedBuilder struct { api.Params } @@ -215,7 +215,7 @@ func (b *NewsfeedGetBannedBuilder) NameCase(v string) *NewsfeedGetBannedBuilder // // Returns a list of comments in the current user's newsfeed. // -// https://vk.com/dev/newsfeed.getComments +// https://dev.vk.com/method/newsfeed.getComments type NewsfeedGetCommentsBuilder struct { api.Params } @@ -289,7 +289,7 @@ func (b *NewsfeedGetCommentsBuilder) Fields(v []string) *NewsfeedGetCommentsBuil // // Returns a list of newsfeeds followed by the current user. // -// https://vk.com/dev/newsfeed.getLists +// https://dev.vk.com/method/newsfeed.getLists type NewsfeedGetListsBuilder struct { api.Params } @@ -315,7 +315,7 @@ func (b *NewsfeedGetListsBuilder) Extended(v bool) *NewsfeedGetListsBuilder { // // Returns a list of posts on user walls in which the current user is mentioned. // -// https://vk.com/dev/newsfeed.getMentions +// https://dev.vk.com/method/newsfeed.getMentions type NewsfeedGetMentionsBuilder struct { api.Params } @@ -359,7 +359,7 @@ func (b *NewsfeedGetMentionsBuilder) Count(v int) *NewsfeedGetMentionsBuilder { // // Returns a list of newsfeeds recommended to the current user. // -// https://vk.com/dev/newsfeed.getRecommended +// https://dev.vk.com/method/newsfeed.getRecommended type NewsfeedGetRecommendedBuilder struct { api.Params } @@ -409,7 +409,7 @@ func (b *NewsfeedGetRecommendedBuilder) Fields(v []string) *NewsfeedGetRecommend // // Returns communities and users that current user is suggested to follow. // -// https://vk.com/dev/newsfeed.getSuggestedSources +// https://dev.vk.com/method/newsfeed.getSuggestedSources type NewsfeedGetSuggestedSourcesBuilder struct { api.Params } @@ -448,7 +448,7 @@ func (b *NewsfeedGetSuggestedSourcesBuilder) Fields(v []string) *NewsfeedGetSugg // // Hides an item from the newsfeed. // -// https://vk.com/dev/newsfeed.ignoreItem +// https://dev.vk.com/method/newsfeed.ignoreItem type NewsfeedIgnoreItemBuilder struct { api.Params } @@ -491,7 +491,7 @@ func (b *NewsfeedIgnoreItemBuilder) ItemID(v int) *NewsfeedIgnoreItemBuilder { // // Creates and edits user newsfeed lists. // -// https://vk.com/dev/newsfeed.saveList +// https://dev.vk.com/method/newsfeed.saveList type NewsfeedSaveListBuilder struct { api.Params } @@ -529,7 +529,7 @@ func (b *NewsfeedSaveListBuilder) NoReposts(v bool) *NewsfeedSaveListBuilder { // // Returns search results by statuses. // -// https://vk.com/dev/newsfeed.search +// https://dev.vk.com/method/newsfeed.search type NewsfeedSearchBuilder struct { api.Params } @@ -597,7 +597,7 @@ func (b *NewsfeedSearchBuilder) Fields(v []string) *NewsfeedSearchBuilder { // // Returns a hidden item to the newsfeed. // -// https://vk.com/dev/newsfeed.unignoreItem +// https://dev.vk.com/method/newsfeed.unignoreItem type NewsfeedUnignoreItemBuilder struct { api.Params } @@ -646,7 +646,7 @@ func (b *NewsfeedUnignoreItemBuilder) TrackCode(v string) *NewsfeedUnignoreItemB // // Unsubscribes the current user from specified newsfeeds. // -// https://vk.com/dev/newsfeed.unsubscribe +// https://dev.vk.com/method/newsfeed.unsubscribe type NewsfeedUnsubscribeBuilder struct { api.Params } diff --git a/api/params/notes.go b/api/params/notes.go index 9897e77c..2ecaea14 100644 --- a/api/params/notes.go +++ b/api/params/notes.go @@ -8,7 +8,7 @@ import ( // // Creates a new note for the current user. // -// https://vk.com/dev/notes.add +// https://dev.vk.com/method/notes.add type NotesAddBuilder struct { api.Params } @@ -46,7 +46,7 @@ func (b *NotesAddBuilder) PrivacyComment(v []string) *NotesAddBuilder { // // Adds a new comment on a note. // -// https://vk.com/dev/notes.createComment +// https://dev.vk.com/method/notes.createComment type NotesCreateCommentBuilder struct { api.Params } @@ -90,7 +90,7 @@ func (b *NotesCreateCommentBuilder) GUID(v string) *NotesCreateCommentBuilder { // // Deletes a note of the current user. // -// https://vk.com/dev/notes.delete +// https://dev.vk.com/method/notes.delete type NotesDeleteBuilder struct { api.Params } @@ -110,7 +110,7 @@ func (b *NotesDeleteBuilder) NoteID(v int) *NotesDeleteBuilder { // // Deletes a comment on a note. // -// https://vk.com/dev/notes.deleteComment +// https://dev.vk.com/method/notes.deleteComment type NotesDeleteCommentBuilder struct { api.Params } @@ -136,7 +136,7 @@ func (b *NotesDeleteCommentBuilder) OwnerID(v int) *NotesDeleteCommentBuilder { // // Edits a note of the current user. // -// https://vk.com/dev/notes.edit +// https://dev.vk.com/method/notes.edit type NotesEditBuilder struct { api.Params } @@ -180,7 +180,7 @@ func (b *NotesEditBuilder) PrivacyComment(v []string) *NotesEditBuilder { // // Edits a comment on a note. // -// https://vk.com/dev/notes.editComment +// https://dev.vk.com/method/notes.editComment type NotesEditCommentBuilder struct { api.Params } @@ -212,7 +212,7 @@ func (b *NotesEditCommentBuilder) Message(v string) *NotesEditCommentBuilder { // // Returns a list of notes created by a user. // -// https://vk.com/dev/notes.get +// https://dev.vk.com/method/notes.get type NotesGetBuilder struct { api.Params } @@ -256,7 +256,7 @@ func (b *NotesGetBuilder) Sort(v int) *NotesGetBuilder { // // Returns a note by its ID. // -// https://vk.com/dev/notes.getById +// https://dev.vk.com/method/notes.getById type NotesGetByIDBuilder struct { api.Params } @@ -288,7 +288,7 @@ func (b *NotesGetByIDBuilder) NeedWiki(v bool) *NotesGetByIDBuilder { // // Returns a list of comments on a note. // -// https://vk.com/dev/notes.getComments +// https://dev.vk.com/method/notes.getComments type NotesGetCommentsBuilder struct { api.Params } @@ -332,7 +332,7 @@ func (b *NotesGetCommentsBuilder) Count(v int) *NotesGetCommentsBuilder { // // Restores a deleted comment on a note. // -// https://vk.com/dev/notes.restoreComment +// https://dev.vk.com/method/notes.restoreComment type NotesRestoreCommentBuilder struct { api.Params } diff --git a/api/params/notifications.go b/api/params/notifications.go index ba0fd69b..2149277e 100644 --- a/api/params/notifications.go +++ b/api/params/notifications.go @@ -8,7 +8,7 @@ import ( // // Returns a list of notifications about other users' feedback to the current user's wall posts. // -// https://vk.com/dev/notifications.get +// https://dev.vk.com/method/notifications.get type NotificationsGetBuilder struct { api.Params } @@ -62,7 +62,7 @@ func (b *NotificationsGetBuilder) EndTime(v int) *NotificationsGetBuilder { // NotificationsSendMessageBuilder builder. // -// https://vk.com/dev/notifications.sendMessage +// https://dev.vk.com/method/notifications.sendMessage type NotificationsSendMessageBuilder struct { api.Params } diff --git a/api/params/orders.go b/api/params/orders.go index ee314908..d94d6a04 100644 --- a/api/params/orders.go +++ b/api/params/orders.go @@ -6,7 +6,7 @@ import ( // OrdersCancelSubscriptionBuilder builder. // -// https://vk.com/dev/orders.cancelSubscription +// https://dev.vk.com/method/orders.cancelSubscription type OrdersCancelSubscriptionBuilder struct { api.Params } @@ -38,7 +38,7 @@ func (b *OrdersCancelSubscriptionBuilder) PendingCancel(v bool) *OrdersCancelSub // // Changes order status. // -// https://vk.com/dev/orders.changeState +// https://dev.vk.com/method/orders.changeState type OrdersChangeStateBuilder struct { api.Params } @@ -83,7 +83,7 @@ func (b *OrdersChangeStateBuilder) TestMode(v bool) *OrdersChangeStateBuilder { // // Returns a list of orders. // -// https://vk.com/dev/orders.get +// https://dev.vk.com/method/orders.get type OrdersGetBuilder struct { api.Params } @@ -113,7 +113,7 @@ func (b *OrdersGetBuilder) TestMode(v bool) *OrdersGetBuilder { // OrdersGetAmountBuilder builder. // -// https://vk.com/dev/orders.getAmount +// https://dev.vk.com/method/orders.getAmount type OrdersGetAmountBuilder struct { api.Params } @@ -139,7 +139,7 @@ func (b *OrdersGetAmountBuilder) Votes(v []string) *OrdersGetAmountBuilder { // // Returns information about orders by their IDs. // -// https://vk.com/dev/orders.getById +// https://dev.vk.com/method/orders.getById type OrdersGetByIDBuilder struct { api.Params } @@ -169,7 +169,7 @@ func (b *OrdersGetByIDBuilder) TestMode(v bool) *OrdersGetByIDBuilder { // OrdersGetUserSubscriptionByIDBuilder builder. // -// https://vk.com/dev/orders.getUserSubscriptionById +// https://dev.vk.com/method/orders.getUserSubscriptionById type OrdersGetUserSubscriptionByIDBuilder struct { api.Params } @@ -193,7 +193,7 @@ func (b *OrdersGetUserSubscriptionByIDBuilder) SubscriptionID(v int) *OrdersGetU // OrdersGetUserSubscriptionsBuilder builder. // -// https://vk.com/dev/orders.getUserSubscriptions +// https://dev.vk.com/method/orders.getUserSubscriptions type OrdersGetUserSubscriptionsBuilder struct { api.Params } @@ -211,7 +211,7 @@ func (b *OrdersGetUserSubscriptionsBuilder) UserID(v int) *OrdersGetUserSubscrip // OrdersUpdateSubscriptionBuilder builder. // -// https://vk.com/dev/orders.updateSubscription +// https://dev.vk.com/method/orders.updateSubscription type OrdersUpdateSubscriptionBuilder struct { api.Params } diff --git a/api/params/pages.go b/api/params/pages.go index 007b2ff7..57454b51 100644 --- a/api/params/pages.go +++ b/api/params/pages.go @@ -8,7 +8,7 @@ import ( // // Allows to clear the cache of particular 'external' pages which may be attached to VK posts. // -// https://vk.com/dev/pages.clearCache +// https://dev.vk.com/method/pages.clearCache type PagesClearCacheBuilder struct { api.Params } @@ -28,7 +28,7 @@ func (b *PagesClearCacheBuilder) URL(v string) *PagesClearCacheBuilder { // // Returns information about a wiki page. // -// https://vk.com/dev/pages.get +// https://dev.vk.com/method/pages.get type PagesGetBuilder struct { api.Params } @@ -84,7 +84,7 @@ func (b *PagesGetBuilder) NeedHTML(v bool) *PagesGetBuilder { // // Returns a list of all previous versions of a wiki page. // -// https://vk.com/dev/pages.getHistory +// https://dev.vk.com/method/pages.getHistory type PagesGetHistoryBuilder struct { api.Params } @@ -116,7 +116,7 @@ func (b *PagesGetHistoryBuilder) UserID(v int) *PagesGetHistoryBuilder { // // Returns a list of wiki pages in a group. // -// https://vk.com/dev/pages.getTitles +// https://dev.vk.com/method/pages.getTitles type PagesGetTitlesBuilder struct { api.Params } @@ -136,7 +136,7 @@ func (b *PagesGetTitlesBuilder) GroupID(v int) *PagesGetTitlesBuilder { // // Returns the text of one of the previous versions of a wiki page. // -// https://vk.com/dev/pages.getVersion +// https://dev.vk.com/method/pages.getVersion type PagesGetVersionBuilder struct { api.Params } @@ -174,7 +174,7 @@ func (b *PagesGetVersionBuilder) NeedHTML(v bool) *PagesGetVersionBuilder { // // Returns HTML representation of the wiki markup. // -// https://vk.com/dev/pages.parseWiki +// https://dev.vk.com/method/pages.parseWiki type PagesParseWikiBuilder struct { api.Params } @@ -200,7 +200,7 @@ func (b *PagesParseWikiBuilder) GroupID(v int) *PagesParseWikiBuilder { // // Saves the text of a wiki page. // -// https://vk.com/dev/pages.save +// https://dev.vk.com/method/pages.save type PagesSaveBuilder struct { api.Params } @@ -244,7 +244,7 @@ func (b *PagesSaveBuilder) Title(v string) *PagesSaveBuilder { // // Saves modified read and edit access settings for a wiki page. // -// https://vk.com/dev/pages.saveAccess +// https://dev.vk.com/method/pages.saveAccess type PagesSaveAccessBuilder struct { api.Params } diff --git a/api/params/photos.go b/api/params/photos.go index 96a9b158..9e05ecdb 100644 --- a/api/params/photos.go +++ b/api/params/photos.go @@ -8,7 +8,7 @@ import ( // // Confirms a tag on a photo. // -// https://vk.com/dev/photos.confirmTag +// https://dev.vk.com/method/photos.confirmTag type PhotosConfirmTagBuilder struct { api.Params } @@ -40,7 +40,7 @@ func (b *PhotosConfirmTagBuilder) TagID(v int) *PhotosConfirmTagBuilder { // // Allows to copy a photo to the "Saved photos" album. // -// https://vk.com/dev/photos.copy +// https://dev.vk.com/method/photos.copy type PhotosCopyBuilder struct { api.Params } @@ -72,7 +72,7 @@ func (b *PhotosCopyBuilder) AccessKey(v string) *PhotosCopyBuilder { // // Creates an empty photo album. // -// https://vk.com/dev/photos.createAlbum +// https://dev.vk.com/method/photos.createAlbum type PhotosCreateAlbumBuilder struct { api.Params } @@ -128,7 +128,7 @@ func (b *PhotosCreateAlbumBuilder) CommentsDisabled(v bool) *PhotosCreateAlbumBu // // Adds a new comment on the photo. // -// https://vk.com/dev/photos.createComment +// https://dev.vk.com/method/photos.createComment type PhotosCreateCommentBuilder struct { api.Params } @@ -200,7 +200,7 @@ func (b *PhotosCreateCommentBuilder) GUID(v string) *PhotosCreateCommentBuilder // // Deletes a photo. // -// https://vk.com/dev/photos.delete +// https://dev.vk.com/method/photos.delete type PhotosDeleteBuilder struct { api.Params } @@ -226,7 +226,7 @@ func (b *PhotosDeleteBuilder) PhotoID(v int) *PhotosDeleteBuilder { // // Deletes a photo album belonging to the current user. // -// https://vk.com/dev/photos.deleteAlbum +// https://dev.vk.com/method/photos.deleteAlbum type PhotosDeleteAlbumBuilder struct { api.Params } @@ -252,7 +252,7 @@ func (b *PhotosDeleteAlbumBuilder) GroupID(v int) *PhotosDeleteAlbumBuilder { // // Deletes a comment on the photo. // -// https://vk.com/dev/photos.deleteComment +// https://dev.vk.com/method/photos.deleteComment type PhotosDeleteCommentBuilder struct { api.Params } @@ -278,7 +278,7 @@ func (b *PhotosDeleteCommentBuilder) CommentID(v int) *PhotosDeleteCommentBuilde // // Edits the caption of a photo. // -// https://vk.com/dev/photos.edit +// https://dev.vk.com/method/photos.edit type PhotosEditBuilder struct { api.Params } @@ -340,7 +340,7 @@ func (b *PhotosEditBuilder) DeletePlace(v bool) *PhotosEditBuilder { // // Edits information about a photo album. // -// https://vk.com/dev/photos.editAlbum +// https://dev.vk.com/method/photos.editAlbum type PhotosEditAlbumBuilder struct { api.Params } @@ -402,7 +402,7 @@ func (b *PhotosEditAlbumBuilder) CommentsDisabled(v bool) *PhotosEditAlbumBuilde // // Edits a comment on a photo. // -// https://vk.com/dev/photos.editComment +// https://dev.vk.com/method/photos.editComment type PhotosEditCommentBuilder struct { api.Params } @@ -445,7 +445,7 @@ func (b *PhotosEditCommentBuilder) Attachments(v interface{}) *PhotosEditComment // // Returns a list of a user's or community's photos. // -// https://vk.com/dev/photos.get +// https://dev.vk.com/method/photos.get type PhotosGetBuilder struct { api.Params } @@ -522,7 +522,7 @@ func (b *PhotosGetBuilder) Count(v int) *PhotosGetBuilder { // // Returns a list of a user's or community's photo albums. // -// https://vk.com/dev/photos.getAlbums +// https://dev.vk.com/method/photos.getAlbums type PhotosGetAlbumsBuilder struct { api.Params } @@ -578,7 +578,7 @@ func (b *PhotosGetAlbumsBuilder) PhotoSizes(v bool) *PhotosGetAlbumsBuilder { // // Returns the number of photo albums belonging to a user or community. // -// https://vk.com/dev/photos.getAlbumsCount +// https://dev.vk.com/method/photos.getAlbumsCount type PhotosGetAlbumsCountBuilder struct { api.Params } @@ -604,7 +604,7 @@ func (b *PhotosGetAlbumsCountBuilder) GroupID(v int) *PhotosGetAlbumsCountBuilde // // Returns a list of photos belonging to a user or community, in reverse chronological order. // -// https://vk.com/dev/photos.getAll +// https://dev.vk.com/method/photos.getAll type PhotosGetAllBuilder struct { api.Params } @@ -668,7 +668,7 @@ func (b *PhotosGetAllBuilder) SkipHidden(v bool) *PhotosGetAllBuilder { // // Returns a list of comments on a specific photo album or all albums of the user sorted in reverse chronological order. // -// https://vk.com/dev/photos.getAllComments +// https://dev.vk.com/method/photos.getAllComments type PhotosGetAllCommentsBuilder struct { api.Params } @@ -712,7 +712,7 @@ func (b *PhotosGetAllCommentsBuilder) Count(v int) *PhotosGetAllCommentsBuilder // // Returns information about photos by their IDs. // -// https://vk.com/dev/photos.getById +// https://dev.vk.com/method/photos.getById type PhotosGetByIDBuilder struct { api.Params } @@ -746,7 +746,7 @@ func (b *PhotosGetByIDBuilder) PhotoSizes(v bool) *PhotosGetByIDBuilder { // // Returns an upload link for chat cover pictures. // -// https://vk.com/dev/photos.getChatUploadServer +// https://dev.vk.com/method/photos.getChatUploadServer type PhotosGetChatUploadServerBuilder struct { api.Params } @@ -784,7 +784,7 @@ func (b *PhotosGetChatUploadServerBuilder) CropWidth(v int) *PhotosGetChatUpload // // Returns a list of comments on a photo. // -// https://vk.com/dev/photos.getComments +// https://dev.vk.com/method/photos.getComments type PhotosGetCommentsBuilder struct { api.Params } @@ -858,7 +858,7 @@ func (b *PhotosGetCommentsBuilder) Fields(v []string) *PhotosGetCommentsBuilder // // Returns the server address for market album photo upload. // -// https://vk.com/dev/photos.getMarketAlbumUploadServer +// https://dev.vk.com/method/photos.getMarketAlbumUploadServer type PhotosGetMarketAlbumUploadServerBuilder struct { api.Params } @@ -878,7 +878,7 @@ func (b *PhotosGetMarketAlbumUploadServerBuilder) GroupID(v int) *PhotosGetMarke // // Returns the server address for market photo upload. // -// https://vk.com/dev/photos.getMarketUploadServer +// https://dev.vk.com/method/photos.getMarketUploadServer type PhotosGetMarketUploadServerBuilder struct { api.Params } @@ -922,7 +922,7 @@ func (b *PhotosGetMarketUploadServerBuilder) CropWidth(v int) *PhotosGetMarketUp // // Returns the server address for photo upload in a private message for a user. // -// https://vk.com/dev/photos.getMessagesUploadServer +// https://dev.vk.com/method/photos.getMessagesUploadServer type PhotosGetMessagesUploadServerBuilder struct { api.Params } @@ -943,7 +943,7 @@ func (b *PhotosGetMessagesUploadServerBuilder) PeerID(v int) *PhotosGetMessagesU // // Returns a list of photos with tags that have not been viewed. // -// https://vk.com/dev/photos.getNewTags +// https://dev.vk.com/method/photos.getNewTags type PhotosGetNewTagsBuilder struct { api.Params } @@ -969,7 +969,7 @@ func (b *PhotosGetNewTagsBuilder) Count(v int) *PhotosGetNewTagsBuilder { // // Returns the server address for owner cover upload. // -// https://vk.com/dev/photos.getOwnerCoverPhotoUploadServer +// https://dev.vk.com/method/photos.getOwnerCoverPhotoUploadServer type PhotosGetOwnerCoverPhotoUploadServerBuilder struct { api.Params } @@ -1013,7 +1013,7 @@ func (b *PhotosGetOwnerCoverPhotoUploadServerBuilder) CropY2(v int) *PhotosGetOw // // Returns an upload server address for a profile or community photo. // -// https://vk.com/dev/photos.getOwnerPhotoUploadServer +// https://dev.vk.com/method/photos.getOwnerPhotoUploadServer type PhotosGetOwnerPhotoUploadServerBuilder struct { api.Params } @@ -1034,7 +1034,7 @@ func (b *PhotosGetOwnerPhotoUploadServerBuilder) OwnerID(v int) *PhotosGetOwnerP // // Returns a list of tags on a photo. // -// https://vk.com/dev/photos.getTags +// https://dev.vk.com/method/photos.getTags type PhotosGetTagsBuilder struct { api.Params } @@ -1066,7 +1066,7 @@ func (b *PhotosGetTagsBuilder) AccessKey(v string) *PhotosGetTagsBuilder { // // Returns the server address for photo upload. // -// https://vk.com/dev/photos.getUploadServer +// https://dev.vk.com/method/photos.getUploadServer type PhotosGetUploadServerBuilder struct { api.Params } @@ -1092,7 +1092,7 @@ func (b *PhotosGetUploadServerBuilder) AlbumID(v int) *PhotosGetUploadServerBuil // // Returns a list of photos in which a user is tagged. // -// https://vk.com/dev/photos.getUserPhotos +// https://dev.vk.com/method/photos.getUserPhotos type PhotosGetUserPhotosBuilder struct { api.Params } @@ -1137,7 +1137,7 @@ func (b *PhotosGetUserPhotosBuilder) Sort(v string) *PhotosGetUserPhotosBuilder // // Returns the server address for photo upload onto a user's wall. // -// https://vk.com/dev/photos.getWallUploadServer +// https://dev.vk.com/method/photos.getWallUploadServer type PhotosGetWallUploadServerBuilder struct { api.Params } @@ -1157,7 +1157,7 @@ func (b *PhotosGetWallUploadServerBuilder) GroupID(v int) *PhotosGetWallUploadSe // // Makes a photo into an album cover. // -// https://vk.com/dev/photos.makeCover +// https://dev.vk.com/method/photos.makeCover type PhotosMakeCoverBuilder struct { api.Params } @@ -1189,7 +1189,7 @@ func (b *PhotosMakeCoverBuilder) AlbumID(v int) *PhotosMakeCoverBuilder { // // Moves a photo from one album to another. // -// https://vk.com/dev/photos.move +// https://dev.vk.com/method/photos.move type PhotosMoveBuilder struct { api.Params } @@ -1221,7 +1221,7 @@ func (b *PhotosMoveBuilder) PhotoID(v int) *PhotosMoveBuilder { // // Adds a tag on the photo. // -// https://vk.com/dev/photos.putTag +// https://dev.vk.com/method/photos.putTag type PhotosPutTagBuilder struct { api.Params } @@ -1277,7 +1277,7 @@ func (b *PhotosPutTagBuilder) Y2(v float64) *PhotosPutTagBuilder { // // Removes a tag from a photo. // -// https://vk.com/dev/photos.removeTag +// https://dev.vk.com/method/photos.removeTag type PhotosRemoveTagBuilder struct { api.Params } @@ -1309,7 +1309,7 @@ func (b *PhotosRemoveTagBuilder) TagID(v int) *PhotosRemoveTagBuilder { // // Reorders the album in the list of user albums. // -// https://vk.com/dev/photos.reorderAlbums +// https://dev.vk.com/method/photos.reorderAlbums type PhotosReorderAlbumsBuilder struct { api.Params } @@ -1347,7 +1347,7 @@ func (b *PhotosReorderAlbumsBuilder) After(v int) *PhotosReorderAlbumsBuilder { // // Reorders the photo in the list of photos of the user album. // -// https://vk.com/dev/photos.reorderPhotos +// https://dev.vk.com/method/photos.reorderPhotos type PhotosReorderPhotosBuilder struct { api.Params } @@ -1385,7 +1385,7 @@ func (b *PhotosReorderPhotosBuilder) After(v int) *PhotosReorderPhotosBuilder { // // Reports (submits a complaint about) a photo. // -// https://vk.com/dev/photos.report +// https://dev.vk.com/method/photos.report type PhotosReportBuilder struct { api.Params } @@ -1431,7 +1431,7 @@ func (b *PhotosReportBuilder) Reason(v int) *PhotosReportBuilder { // // Reports (submits a complaint about) a comment on a photo. // -// https://vk.com/dev/photos.reportComment +// https://dev.vk.com/method/photos.reportComment type PhotosReportCommentBuilder struct { api.Params } @@ -1477,7 +1477,7 @@ func (b *PhotosReportCommentBuilder) Reason(v int) *PhotosReportCommentBuilder { // // Restores a deleted photo. // -// https://vk.com/dev/photos.restore +// https://dev.vk.com/method/photos.restore type PhotosRestoreBuilder struct { api.Params } @@ -1503,7 +1503,7 @@ func (b *PhotosRestoreBuilder) PhotoID(v int) *PhotosRestoreBuilder { // // Restores a deleted comment on a photo. // -// https://vk.com/dev/photos.restoreComment +// https://dev.vk.com/method/photos.restoreComment type PhotosRestoreCommentBuilder struct { api.Params } @@ -1529,7 +1529,7 @@ func (b *PhotosRestoreCommentBuilder) CommentID(v int) *PhotosRestoreCommentBuil // // Saves photos after successful uploading. // -// https://vk.com/dev/photos.save +// https://dev.vk.com/method/photos.save type PhotosSaveBuilder struct { api.Params } @@ -1591,7 +1591,7 @@ func (b *PhotosSaveBuilder) Caption(v string) *PhotosSaveBuilder { // // Saves market album photos after successful uploading. // -// https://vk.com/dev/photos.saveMarketAlbumPhoto +// https://dev.vk.com/method/photos.saveMarketAlbumPhoto type PhotosSaveMarketAlbumPhotoBuilder struct { api.Params } @@ -1629,7 +1629,7 @@ func (b *PhotosSaveMarketAlbumPhotoBuilder) Hash(v string) *PhotosSaveMarketAlbu // // Saves market photos after successful uploading. // -// https://vk.com/dev/photos.saveMarketPhoto +// https://dev.vk.com/method/photos.saveMarketPhoto type PhotosSaveMarketPhotoBuilder struct { api.Params } @@ -1680,7 +1680,7 @@ func (b *PhotosSaveMarketPhotoBuilder) CropHash(v string) *PhotosSaveMarketPhoto // Saves a photo after being successfully uploaded. URL obtained with // [vk.com/dev/photos.getMessagesUploadServer|photos.getMessagesUploadServer] method. // -// https://vk.com/dev/photos.saveMessagesPhoto +// https://dev.vk.com/method/photos.saveMessagesPhoto type PhotosSaveMessagesPhotoBuilder struct { api.Params } @@ -1712,7 +1712,7 @@ func (b *PhotosSaveMessagesPhotoBuilder) Hash(v string) *PhotosSaveMessagesPhoto // // Saves cover photo after successful uploading. // -// https://vk.com/dev/photos.saveOwnerCoverPhoto +// https://dev.vk.com/method/photos.saveOwnerCoverPhoto type PhotosSaveOwnerCoverPhotoBuilder struct { api.Params } @@ -1739,7 +1739,7 @@ func (b *PhotosSaveOwnerCoverPhotoBuilder) Photo(v string) *PhotosSaveOwnerCover // Saves a profile or community photo. Upload URL can be got with the // [vk.com/dev/photos.getOwnerPhotoUploadServer|photos.getOwnerPhotoUploadServer] method. // -// https://vk.com/dev/photos.saveOwnerPhoto +// https://dev.vk.com/method/photos.saveOwnerPhoto type PhotosSaveOwnerPhotoBuilder struct { api.Params } @@ -1771,7 +1771,7 @@ func (b *PhotosSaveOwnerPhotoBuilder) Photo(v string) *PhotosSaveOwnerPhotoBuild // // Saves a photo to a user's or community's wall after being uploaded. // -// https://vk.com/dev/photos.saveWallPhoto +// https://dev.vk.com/method/photos.saveWallPhoto type PhotosSaveWallPhotoBuilder struct { api.Params } @@ -1833,7 +1833,7 @@ func (b *PhotosSaveWallPhotoBuilder) Caption(v string) *PhotosSaveWallPhotoBuild // // Returns a list of photos. // -// https://vk.com/dev/photos.search +// https://dev.vk.com/method/photos.search type PhotosSearchBuilder struct { api.Params } diff --git a/api/params/polls.go b/api/params/polls.go index a8a76ab5..fe1445e9 100644 --- a/api/params/polls.go +++ b/api/params/polls.go @@ -8,7 +8,7 @@ import ( // // Adds the current user's vote to the selected answer in the poll. // -// https://vk.com/dev/polls.addVote +// https://dev.vk.com/method/polls.addVote type PollsAddVoteBuilder struct { api.Params } @@ -46,7 +46,7 @@ func (b *PollsAddVoteBuilder) IsBoard(v bool) *PollsAddVoteBuilder { // // Creates polls that can be attached to the users' or communities' posts. // -// https://vk.com/dev/polls.create +// https://dev.vk.com/method/polls.create type PollsCreateBuilder struct { api.Params } @@ -110,7 +110,7 @@ func (b *PollsCreateBuilder) BackgroundID(v string) *PollsCreateBuilder { // // Deletes the current user's vote from the selected answer in the poll. // -// https://vk.com/dev/polls.deleteVote +// https://dev.vk.com/method/polls.deleteVote type PollsDeleteVoteBuilder struct { api.Params } @@ -148,7 +148,7 @@ func (b *PollsDeleteVoteBuilder) IsBoard(v bool) *PollsDeleteVoteBuilder { // // Edits created polls. // -// https://vk.com/dev/polls.edit +// https://dev.vk.com/method/polls.edit type PollsEditBuilder struct { api.Params } @@ -217,7 +217,7 @@ func (b *PollsEditBuilder) BackgroundID(v string) *PollsEditBuilder { // // Returns detailed information about a poll by its ID. // -// https://vk.com/dev/polls.getById +// https://dev.vk.com/method/polls.getById type PollsGetByIDBuilder struct { api.Params } @@ -273,7 +273,7 @@ func (b *PollsGetByIDBuilder) NameCase(v string) *PollsGetByIDBuilder { // // Returns a list of IDs of users who selected specific answers in the poll. // -// https://vk.com/dev/polls.getVoters +// https://dev.vk.com/method/polls.getVoters type PollsGetVotersBuilder struct { api.Params } diff --git a/api/params/prettyCards.go b/api/params/prettyCards.go index 873a9987..2697f717 100644 --- a/api/params/prettyCards.go +++ b/api/params/prettyCards.go @@ -6,7 +6,7 @@ import ( // PrettyCardsCreateBuilder builder. // -// https://vk.com/dev/prettyCards.create +// https://dev.vk.com/method/prettyCards.create type PrettyCardsCreateBuilder struct { api.Params } @@ -60,7 +60,7 @@ func (b *PrettyCardsCreateBuilder) Button(v string) *PrettyCardsCreateBuilder { // PrettyCardsDeleteBuilder builder. // -// https://vk.com/dev/prettyCards.delete +// https://dev.vk.com/method/prettyCards.delete type PrettyCardsDeleteBuilder struct { api.Params } @@ -84,7 +84,7 @@ func (b *PrettyCardsDeleteBuilder) CardID(v int) *PrettyCardsDeleteBuilder { // PrettyCardsEditBuilder builder. // -// https://vk.com/dev/prettyCards.edit +// https://dev.vk.com/method/prettyCards.edit type PrettyCardsEditBuilder struct { api.Params } @@ -144,7 +144,7 @@ func (b *PrettyCardsEditBuilder) Button(v string) *PrettyCardsEditBuilder { // PrettyCardsGetBuilder builder. // -// https://vk.com/dev/prettyCards.get +// https://dev.vk.com/method/prettyCards.get type PrettyCardsGetBuilder struct { api.Params } @@ -174,7 +174,7 @@ func (b *PrettyCardsGetBuilder) Count(v int) *PrettyCardsGetBuilder { // PrettyCardsGetByIDBuilder builder. // -// https://vk.com/dev/prettyCards.getById +// https://dev.vk.com/method/prettyCards.getById type PrettyCardsGetByIDBuilder struct { api.Params } diff --git a/api/params/search.go b/api/params/search.go index b815661a..10b12f4e 100644 --- a/api/params/search.go +++ b/api/params/search.go @@ -8,7 +8,7 @@ import ( // // Allows the programmer to do a quick search for any substring. // -// https://vk.com/dev/search.getHints +// https://dev.vk.com/method/search.getHints type SearchGetHintsBuilder struct { api.Params } diff --git a/api/params/secure.go b/api/params/secure.go index abd1ac5e..25739f4f 100644 --- a/api/params/secure.go +++ b/api/params/secure.go @@ -8,7 +8,7 @@ import ( // // Adds user activity information to an application. // -// https://vk.com/dev/secure.addAppEvent +// https://dev.vk.com/method/secure.addAppEvent type SecureAddAppEventBuilder struct { api.Params } @@ -52,7 +52,7 @@ func (b *SecureAddAppEventBuilder) Value(v int) *SecureAddAppEventBuilder { // // Checks the user authentication in 'IFrame' and 'Flash' apps using the 'access_token' parameter. // -// https://vk.com/dev/secure.checkToken +// https://dev.vk.com/method/secure.checkToken type SecureCheckTokenBuilder struct { api.Params } @@ -82,7 +82,7 @@ func (b *SecureCheckTokenBuilder) IP(v string) *SecureCheckTokenBuilder { // Shows a list of SMS notifications sent by the application using // [vk.com/dev/secure.sendSMSNotification|secure.sendSMSNotification] method. // -// https://vk.com/dev/secure.getSMSHistory +// https://dev.vk.com/method/secure.getSMSHistory type SecureGetSMSHistoryBuilder struct { api.Params } @@ -120,7 +120,7 @@ func (b *SecureGetSMSHistoryBuilder) Limit(v int) *SecureGetSMSHistoryBuilder { // // Shows history of votes transaction between users and the application. // -// https://vk.com/dev/secure.getTransactionsHistory +// https://dev.vk.com/method/secure.getTransactionsHistory type SecureGetTransactionsHistoryBuilder struct { api.Params } @@ -170,7 +170,7 @@ func (b *SecureGetTransactionsHistoryBuilder) Limit(v int) *SecureGetTransaction // // Returns one of the previously set game levels of one or more users in the application. // -// https://vk.com/dev/secure.getUserLevel +// https://dev.vk.com/method/secure.getUserLevel type SecureGetUserLevelBuilder struct { api.Params } @@ -190,7 +190,7 @@ func (b *SecureGetUserLevelBuilder) UserIDs(v []int) *SecureGetUserLevelBuilder // // Opens the game achievement and gives the user a sticker. // -// https://vk.com/dev/secure.giveEventSticker +// https://dev.vk.com/method/secure.giveEventSticker type SecureGiveEventStickerBuilder struct { api.Params } @@ -216,7 +216,7 @@ func (b *SecureGiveEventStickerBuilder) AchievementID(v int) *SecureGiveEventSti // // Sends notification to the user. // -// https://vk.com/dev/secure.sendNotification +// https://dev.vk.com/method/secure.sendNotification type SecureSendNotificationBuilder struct { api.Params } @@ -248,7 +248,7 @@ func (b *SecureSendNotificationBuilder) Message(v string) *SecureSendNotificatio // // Sends 'SMS' notification to a user's mobile device. // -// https://vk.com/dev/secure.sendSMSNotification +// https://dev.vk.com/method/secure.sendSMSNotification type SecureSendSMSNotificationBuilder struct { api.Params } @@ -276,7 +276,7 @@ func (b *SecureSendSMSNotificationBuilder) Message(v string) *SecureSendSMSNotif // // Sets a counter which is shown to the user in bold in the left menu. // -// https://vk.com/dev/secure.setCounter +// https://dev.vk.com/method/secure.setCounter type SecureSetCounterBuilder struct { api.Params } diff --git a/api/params/stats.go b/api/params/stats.go index 368b7882..5e1489f5 100644 --- a/api/params/stats.go +++ b/api/params/stats.go @@ -8,7 +8,7 @@ import ( // // Returns statistics of a community or an application. // -// https://vk.com/dev/stats.get +// https://dev.vk.com/method/stats.get type StatsGetBuilder struct { api.Params } @@ -76,7 +76,7 @@ func (b *StatsGetBuilder) Extended(v bool) *StatsGetBuilder { // // Returns stats for a wall post. // -// https://vk.com/dev/stats.getPostReach +// https://dev.vk.com/method/stats.getPostReach type StatsGetPostReachBuilder struct { api.Params } @@ -100,7 +100,7 @@ func (b *StatsGetPostReachBuilder) PostID(v int) *StatsGetPostReachBuilder { // StatsTrackVisitorBuilder builder. // -// https://vk.com/dev/stats.trackVisitor +// https://dev.vk.com/method/stats.trackVisitor type StatsTrackVisitorBuilder struct { api.Params } diff --git a/api/params/status.go b/api/params/status.go index dbf90910..bc36c15a 100644 --- a/api/params/status.go +++ b/api/params/status.go @@ -8,7 +8,7 @@ import ( // // Returns data required to show the status of a user or community. // -// https://vk.com/dev/status.get +// https://dev.vk.com/method/status.get type StatusGetBuilder struct { api.Params } @@ -34,7 +34,7 @@ func (b *StatusGetBuilder) GroupID(v int) *StatusGetBuilder { // // Sets a new status for the current user. // -// https://vk.com/dev/status.set +// https://dev.vk.com/method/status.set type StatusSetBuilder struct { api.Params } diff --git a/api/params/storage.go b/api/params/storage.go index 01438019..a387cc45 100644 --- a/api/params/storage.go +++ b/api/params/storage.go @@ -8,7 +8,7 @@ import ( // // Returns a value of variable with the name set by key parameter. // -// https://vk.com/dev/storage.get +// https://dev.vk.com/method/storage.get type StorageGetBuilder struct { api.Params } @@ -46,7 +46,7 @@ func (b *StorageGetBuilder) Global(v bool) *StorageGetBuilder { // // Returns the names of all variables. // -// https://vk.com/dev/storage.getKeys +// https://dev.vk.com/method/storage.getKeys type StorageGetKeysBuilder struct { api.Params } @@ -84,7 +84,7 @@ func (b *StorageGetKeysBuilder) Count(v int) *StorageGetKeysBuilder { // // Saves a value of variable with the name set by 'key' parameter. // -// https://vk.com/dev/storage.set +// https://dev.vk.com/method/storage.set type StorageSetBuilder struct { api.Params } diff --git a/api/params/stories.go b/api/params/stories.go index de190810..b6707346 100644 --- a/api/params/stories.go +++ b/api/params/stories.go @@ -8,7 +8,7 @@ import ( // // Allows to hide stories from chosen sources from current user's feed. // -// https://vk.com/dev/stories.banOwner +// https://dev.vk.com/method/stories.banOwner type StoriesBanOwnerBuilder struct { api.Params } @@ -28,7 +28,7 @@ func (b *StoriesBanOwnerBuilder) OwnersIDs(v []int) *StoriesBanOwnerBuilder { // // Allows to delete story. // -// https://vk.com/dev/stories.delete +// https://dev.vk.com/method/stories.delete type StoriesDeleteBuilder struct { api.Params } @@ -54,7 +54,7 @@ func (b *StoriesDeleteBuilder) StoryID(v int) *StoriesDeleteBuilder { // // Returns stories available for current user. // -// https://vk.com/dev/stories.get +// https://dev.vk.com/method/stories.get type StoriesGetBuilder struct { api.Params } @@ -80,7 +80,7 @@ func (b *StoriesGetBuilder) Extended(v bool) *StoriesGetBuilder { // // Returns list of sources hidden from current user's feed. // -// https://vk.com/dev/stories.getBanned +// https://dev.vk.com/method/stories.getBanned type StoriesGetBannedBuilder struct { api.Params } @@ -106,7 +106,7 @@ func (b *StoriesGetBannedBuilder) Fields(v []string) *StoriesGetBannedBuilder { // // Returns story by its ID. // -// https://vk.com/dev/stories.getById +// https://dev.vk.com/method/stories.getById type StoriesGetByIDBuilder struct { api.Params } @@ -138,7 +138,7 @@ func (b *StoriesGetByIDBuilder) Fields(v []string) *StoriesGetByIDBuilder { // // Returns URL for uploading a story with photo. // -// https://vk.com/dev/stories.getPhotoUploadServer +// https://dev.vk.com/method/stories.getPhotoUploadServer type StoriesGetPhotoUploadServerBuilder struct { api.Params } @@ -188,7 +188,7 @@ func (b *StoriesGetPhotoUploadServerBuilder) GroupID(v int) *StoriesGetPhotoUplo // // Returns replies to the story. // -// https://vk.com/dev/stories.getReplies +// https://dev.vk.com/method/stories.getReplies type StoriesGetRepliesBuilder struct { api.Params } @@ -232,7 +232,7 @@ func (b *StoriesGetRepliesBuilder) Fields(v []string) *StoriesGetRepliesBuilder // // Returns stories available for current user. // -// https://vk.com/dev/stories.getStats +// https://dev.vk.com/method/stories.getStats type StoriesGetStatsBuilder struct { api.Params } @@ -258,7 +258,7 @@ func (b *StoriesGetStatsBuilder) StoryID(v int) *StoriesGetStatsBuilder { // // Allows to receive URL for uploading story with video. // -// https://vk.com/dev/stories.getVideoUploadServer +// https://dev.vk.com/method/stories.getVideoUploadServer type StoriesGetVideoUploadServerBuilder struct { api.Params } @@ -308,7 +308,7 @@ func (b *StoriesGetVideoUploadServerBuilder) GroupID(v int) *StoriesGetVideoUplo // // Returns a list of story viewers. // -// https://vk.com/dev/stories.getViewers +// https://dev.vk.com/method/stories.getViewers type StoriesGetViewersBuilder struct { api.Params } @@ -352,7 +352,7 @@ func (b *StoriesGetViewersBuilder) Extended(v bool) *StoriesGetViewersBuilder { // // Hides all replies in the last 24 hours from the user to current user's stories. // -// https://vk.com/dev/stories.hideAllReplies +// https://dev.vk.com/method/stories.hideAllReplies type StoriesHideAllRepliesBuilder struct { api.Params } @@ -378,7 +378,7 @@ func (b *StoriesHideAllRepliesBuilder) GroupID(v int) *StoriesHideAllRepliesBuil // // Hides the reply to the current user's story. // -// https://vk.com/dev/stories.hideReply +// https://dev.vk.com/method/stories.hideReply type StoriesHideReplyBuilder struct { api.Params } @@ -402,7 +402,7 @@ func (b *StoriesHideReplyBuilder) StoryID(v int) *StoriesHideReplyBuilder { // StoriesSaveBuilder builder. // -// https://vk.com/dev/stories.save +// https://dev.vk.com/method/stories.save type StoriesSaveBuilder struct { api.Params } @@ -424,7 +424,7 @@ func (b *StoriesSaveBuilder) UploadResults(v string) *StoriesSaveBuilder { // // Sends feedback to the story. // -// https://vk.com/dev/stories.sendInteraction +// https://dev.vk.com/method/stories.sendInteraction type StoriesSendInteractionBuilder struct { api.Params } @@ -472,7 +472,7 @@ func (b *StoriesSendInteractionBuilder) UnseenMarker(v bool) *StoriesSendInterac // // Allows to show stories from hidden sources in current user's feed. // -// https://vk.com/dev/stories.unbanOwner +// https://dev.vk.com/method/stories.unbanOwner type StoriesUnbanOwnerBuilder struct { api.Params } diff --git a/api/params/streaming.go b/api/params/streaming.go index 1405de08..722a8baf 100644 --- a/api/params/streaming.go +++ b/api/params/streaming.go @@ -6,7 +6,7 @@ import ( // StreamingSetSettingsBuilder builder. // -// https://vk.com/dev/streaming.setSettings +// https://dev.vk.com/method/streaming.setSettings type StreamingSetSettingsBuilder struct { api.Params } diff --git a/api/params/users.go b/api/params/users.go index 0f274e28..b364a18a 100644 --- a/api/params/users.go +++ b/api/params/users.go @@ -8,7 +8,7 @@ import ( // // Returns detailed information on users. // -// https://vk.com/dev/users.get +// https://dev.vk.com/method/users.get type UsersGetBuilder struct { api.Params } @@ -55,7 +55,7 @@ func (b *UsersGetBuilder) NameCase(v string) *UsersGetBuilder { // // Returns a list of IDs of followers of the user in question, sorted by date added, most recent first. // -// https://vk.com/dev/users.getFollowers +// https://dev.vk.com/method/users.getFollowers type UsersGetFollowersBuilder struct { api.Params } @@ -113,7 +113,7 @@ func (b *UsersGetFollowersBuilder) NameCase(v string) *UsersGetFollowersBuilder // // Returns a list of IDs of users and communities followed by the user. // -// https://vk.com/dev/users.getSubscriptions +// https://dev.vk.com/method/users.getSubscriptions type UsersGetSubscriptionsBuilder struct { api.Params } @@ -158,7 +158,7 @@ func (b *UsersGetSubscriptionsBuilder) Fields(v []string) *UsersGetSubscriptions // // Returns information whether a user installed the application. // -// https://vk.com/dev/users.isAppUser +// https://dev.vk.com/method/users.isAppUser type UsersIsAppUserBuilder struct { api.Params } @@ -178,7 +178,7 @@ func (b *UsersIsAppUserBuilder) UserID(v int) *UsersIsAppUserBuilder { // // Reports (submits a complain about) a user. // -// https://vk.com/dev/users.report +// https://dev.vk.com/method/users.report type UsersReportBuilder struct { api.Params } @@ -211,7 +211,7 @@ func (b *UsersReportBuilder) Comment(v string) *UsersReportBuilder { // // Returns a list of users matching the search criteria. // -// https://vk.com/dev/users.search +// https://dev.vk.com/method/users.search type UsersSearchBuilder struct { api.Params } diff --git a/api/params/utils.go b/api/params/utils.go index 48b14d33..05ae4293 100644 --- a/api/params/utils.go +++ b/api/params/utils.go @@ -8,7 +8,7 @@ import ( // // Checks whether a link is blocked in VK. // -// https://vk.com/dev/utils.checkLink +// https://dev.vk.com/method/utils.checkLink type UtilsCheckLinkBuilder struct { api.Params } @@ -28,7 +28,7 @@ func (b *UtilsCheckLinkBuilder) URL(v string) *UtilsCheckLinkBuilder { // // Deletes shortened link from user's list. // -// https://vk.com/dev/utils.deleteFromLastShortened +// https://dev.vk.com/method/utils.deleteFromLastShortened type UtilsDeleteFromLastShortenedBuilder struct { api.Params } @@ -48,7 +48,7 @@ func (b *UtilsDeleteFromLastShortenedBuilder) Key(v string) *UtilsDeleteFromLast // // Returns a list of user's shortened links. // -// https://vk.com/dev/utils.getLastShortenedLinks +// https://dev.vk.com/method/utils.getLastShortenedLinks type UtilsGetLastShortenedLinksBuilder struct { api.Params } @@ -74,7 +74,7 @@ func (b *UtilsGetLastShortenedLinksBuilder) Offset(v int) *UtilsGetLastShortened // // Returns stats data for shortened link. // -// https://vk.com/dev/utils.getLinkStats +// https://dev.vk.com/method/utils.getLinkStats type UtilsGetLinkStatsBuilder struct { api.Params } @@ -124,7 +124,7 @@ func (b *UtilsGetLinkStatsBuilder) Extended(v bool) *UtilsGetLinkStatsBuilder { // // Allows to receive a link shortened via vk.cc. // -// https://vk.com/dev/utils.getShortLink +// https://dev.vk.com/method/utils.getShortLink type UtilsGetShortLinkBuilder struct { api.Params } @@ -150,7 +150,7 @@ func (b *UtilsGetShortLinkBuilder) Private(v bool) *UtilsGetShortLinkBuilder { // // Detects a type of object (e.g., user, community, application) and its ID by screen name. // -// https://vk.com/dev/utils.resolveScreenName +// https://dev.vk.com/method/utils.resolveScreenName type UtilsResolveScreenNameBuilder struct { api.Params } diff --git a/api/params/video.go b/api/params/video.go index 7e53787c..78f4125a 100644 --- a/api/params/video.go +++ b/api/params/video.go @@ -8,7 +8,7 @@ import ( // // Adds a video to a user or community page. // -// https://vk.com/dev/video.add +// https://dev.vk.com/method/video.add type VideoAddBuilder struct { api.Params } @@ -40,7 +40,7 @@ func (b *VideoAddBuilder) OwnerID(v int) *VideoAddBuilder { // // Creates an empty album for videos. // -// https://vk.com/dev/video.addAlbum +// https://dev.vk.com/method/video.addAlbum type VideoAddAlbumBuilder struct { api.Params } @@ -78,7 +78,7 @@ func (b *VideoAddAlbumBuilder) Privacy(v []string) *VideoAddAlbumBuilder { // VideoAddToAlbumBuilder builder. // -// https://vk.com/dev/video.addToAlbum +// https://dev.vk.com/method/video.addToAlbum type VideoAddToAlbumBuilder struct { api.Params } @@ -122,7 +122,7 @@ func (b *VideoAddToAlbumBuilder) VideoID(v int) *VideoAddToAlbumBuilder { // // Adds a new comment on a video. // -// https://vk.com/dev/video.createComment +// https://dev.vk.com/method/video.createComment type VideoCreateCommentBuilder struct { api.Params } @@ -188,7 +188,7 @@ func (b *VideoCreateCommentBuilder) GUID(v string) *VideoCreateCommentBuilder { // // Deletes a video from a user or community page. // -// https://vk.com/dev/video.delete +// https://dev.vk.com/method/video.delete type VideoDeleteBuilder struct { api.Params } @@ -220,7 +220,7 @@ func (b *VideoDeleteBuilder) TargetID(v int) *VideoDeleteBuilder { // // Deletes a video album. // -// https://vk.com/dev/video.deleteAlbum +// https://dev.vk.com/method/video.deleteAlbum type VideoDeleteAlbumBuilder struct { api.Params } @@ -246,7 +246,7 @@ func (b *VideoDeleteAlbumBuilder) AlbumID(v int) *VideoDeleteAlbumBuilder { // // Deletes a comment on a video. // -// https://vk.com/dev/video.deleteComment +// https://dev.vk.com/method/video.deleteComment type VideoDeleteCommentBuilder struct { api.Params } @@ -272,7 +272,7 @@ func (b *VideoDeleteCommentBuilder) CommentID(v int) *VideoDeleteCommentBuilder // // Edits information about a video on a user or community page. // -// https://vk.com/dev/video.edit +// https://dev.vk.com/method/video.edit type VideoEditBuilder struct { api.Params } @@ -335,7 +335,7 @@ func (b *VideoEditBuilder) Repeat(v bool) *VideoEditBuilder { // // Edits the title of a video album. // -// https://vk.com/dev/video.editAlbum +// https://dev.vk.com/method/video.editAlbum type VideoEditAlbumBuilder struct { api.Params } @@ -381,7 +381,7 @@ func (b *VideoEditAlbumBuilder) Privacy(v []string) *VideoEditAlbumBuilder { // // Edits the text of a comment on a video. // -// https://vk.com/dev/video.editComment +// https://dev.vk.com/method/video.editComment type VideoEditCommentBuilder struct { api.Params } @@ -423,7 +423,7 @@ func (b *VideoEditCommentBuilder) Attachments(v interface{}) *VideoEditCommentBu // // Returns detailed information about videos. // -// https://vk.com/dev/video.get +// https://dev.vk.com/method/video.get type VideoGetBuilder struct { api.Params } @@ -475,7 +475,7 @@ func (b *VideoGetBuilder) Extended(v bool) *VideoGetBuilder { // // Returns video album info. // -// https://vk.com/dev/video.getAlbumById +// https://dev.vk.com/method/video.getAlbumById type VideoGetAlbumByIDBuilder struct { api.Params } @@ -501,7 +501,7 @@ func (b *VideoGetAlbumByIDBuilder) AlbumID(v int) *VideoGetAlbumByIDBuilder { // // Returns a list of video albums owned by a user or community. // -// https://vk.com/dev/video.getAlbums +// https://dev.vk.com/method/video.getAlbums type VideoGetAlbumsBuilder struct { api.Params } @@ -543,7 +543,7 @@ func (b *VideoGetAlbumsBuilder) NeedSystem(v bool) *VideoGetAlbumsBuilder { // VideoGetAlbumsByVideoBuilder builder. // -// https://vk.com/dev/video.getAlbumsByVideo +// https://dev.vk.com/method/video.getAlbumsByVideo type VideoGetAlbumsByVideoBuilder struct { api.Params } @@ -581,7 +581,7 @@ func (b *VideoGetAlbumsByVideoBuilder) Extended(v bool) *VideoGetAlbumsByVideoBu // // Returns a list of comments on a video. // -// https://vk.com/dev/video.getComments +// https://dev.vk.com/method/video.getComments type VideoGetCommentsBuilder struct { api.Params } @@ -647,7 +647,7 @@ func (b *VideoGetCommentsBuilder) Fields(v []string) *VideoGetCommentsBuilder { // VideoRemoveFromAlbumBuilder builder. // -// https://vk.com/dev/video.removeFromAlbum +// https://dev.vk.com/method/video.removeFromAlbum type VideoRemoveFromAlbumBuilder struct { api.Params } @@ -691,7 +691,7 @@ func (b *VideoRemoveFromAlbumBuilder) VideoID(v int) *VideoRemoveFromAlbumBuilde // // Reorders the album in the list of user video albums. // -// https://vk.com/dev/video.reorderAlbums +// https://dev.vk.com/method/video.reorderAlbums type VideoReorderAlbumsBuilder struct { api.Params } @@ -729,7 +729,7 @@ func (b *VideoReorderAlbumsBuilder) After(v int) *VideoReorderAlbumsBuilder { // // Reorders the video in the video album. // -// https://vk.com/dev/video.reorderVideos +// https://dev.vk.com/method/video.reorderVideos type VideoReorderVideosBuilder struct { api.Params } @@ -791,7 +791,7 @@ func (b *VideoReorderVideosBuilder) AfterVideoID(v int) *VideoReorderVideosBuild // // Reports (submits a complaint about) a video. // -// https://vk.com/dev/video.report +// https://dev.vk.com/method/video.report type VideoReportBuilder struct { api.Params } @@ -849,7 +849,7 @@ func (b *VideoReportBuilder) SearchQuery(v string) *VideoReportBuilder { // // Reports (submits a complaint about) a comment on a video. // -// https://vk.com/dev/video.reportComment +// https://dev.vk.com/method/video.reportComment type VideoReportCommentBuilder struct { api.Params } @@ -895,7 +895,7 @@ func (b *VideoReportCommentBuilder) Reason(v int) *VideoReportCommentBuilder { // // Restores a previously deleted video. // -// https://vk.com/dev/video.restore +// https://dev.vk.com/method/video.restore type VideoRestoreBuilder struct { api.Params } @@ -921,7 +921,7 @@ func (b *VideoRestoreBuilder) OwnerID(v int) *VideoRestoreBuilder { // // Restores a previously deleted comment on a video. // -// https://vk.com/dev/video.restoreComment +// https://dev.vk.com/method/video.restoreComment type VideoRestoreCommentBuilder struct { api.Params } @@ -947,7 +947,7 @@ func (b *VideoRestoreCommentBuilder) CommentID(v int) *VideoRestoreCommentBuilde // // Returns a server address (required for upload) and video data. // -// https://vk.com/dev/video.save +// https://dev.vk.com/method/video.save type VideoSaveBuilder struct { api.Params } @@ -1047,7 +1047,7 @@ func (b *VideoSaveBuilder) Compression(v bool) *VideoSaveBuilder { // // Returns a list of videos under the set search criterion. // -// https://vk.com/dev/video.search +// https://dev.vk.com/method/video.search type VideoSearchBuilder struct { api.Params } @@ -1145,7 +1145,7 @@ func (b *VideoSearchBuilder) LegalOwner(v int) *VideoSearchBuilder { // VideoStartStreamingBuilder builder. // -// https://vk.com/dev/video.startStreaming +// https://dev.vk.com/method/video.startStreaming type VideoStartStreamingBuilder struct { api.Params } @@ -1217,7 +1217,7 @@ func (b *VideoStartStreamingBuilder) Publish(v bool) *VideoStartStreamingBuilder // VideoStopStreamingBuilder builder. // -// https://vk.com/dev/video.stopStreaming +// https://dev.vk.com/method/video.stopStreaming type VideoStopStreamingBuilder struct { api.Params } diff --git a/api/params/wall.go b/api/params/wall.go index 3371008e..7e572624 100644 --- a/api/params/wall.go +++ b/api/params/wall.go @@ -6,7 +6,7 @@ import ( // WallCheckCopyrightLinkBuilder builder. // -// https://vk.com/dev/wall.checkCopyrightLink +// https://dev.vk.com/method/wall.checkCopyrightLink type WallCheckCopyrightLinkBuilder struct { api.Params } @@ -24,7 +24,7 @@ func (b *WallCheckCopyrightLinkBuilder) Link(v string) *WallCheckCopyrightLinkBu // WallCloseCommentsBuilder builder. // -// https://vk.com/dev/wall.closeComments +// https://dev.vk.com/method/wall.closeComments type WallCloseCommentsBuilder struct { api.Params } @@ -50,7 +50,7 @@ func (b *WallCloseCommentsBuilder) PostID(v int) *WallCloseCommentsBuilder { // // Adds a comment to a post on a user wall or community wall. // -// https://vk.com/dev/wall.createComment +// https://dev.vk.com/method/wall.createComment type WallCreateCommentBuilder struct { api.Params } @@ -117,7 +117,7 @@ func (b *WallCreateCommentBuilder) GUID(v string) *WallCreateCommentBuilder { // // Deletes a post from a user wall or community wall. // -// https://vk.com/dev/wall.delete +// https://dev.vk.com/method/wall.delete type WallDeleteBuilder struct { api.Params } @@ -143,7 +143,7 @@ func (b *WallDeleteBuilder) PostID(v int) *WallDeleteBuilder { // // Deletes a comment on a post on a user wall or community wall. // -// https://vk.com/dev/wall.deleteComment +// https://dev.vk.com/method/wall.deleteComment type WallDeleteCommentBuilder struct { api.Params } @@ -169,7 +169,7 @@ func (b *WallDeleteCommentBuilder) CommentID(v int) *WallDeleteCommentBuilder { // // Edits a post on a user wall or community wall. // -// https://vk.com/dev/wall.edit +// https://dev.vk.com/method/wall.edit type WallEditBuilder struct { api.Params } @@ -286,7 +286,7 @@ func (b *WallEditBuilder) PosterBkgAccessHash(v string) *WallEditBuilder { // // Allows to edit hidden post. // -// https://vk.com/dev/wall.editAdsStealth +// https://dev.vk.com/method/wall.editAdsStealth type WallEditAdsStealthBuilder struct { api.Params } @@ -383,7 +383,7 @@ func (b *WallEditAdsStealthBuilder) LinkVideo(v string) *WallEditAdsStealthBuild // // Edits a comment on a user wall or community wall. // -// https://vk.com/dev/wall.editComment +// https://dev.vk.com/method/wall.editComment type WallEditCommentBuilder struct { api.Params } @@ -427,7 +427,7 @@ func (b *WallEditCommentBuilder) Attachments(v interface{}) *WallEditCommentBuil // // Returns a list of posts on a user wall or community wall. // -// https://vk.com/dev/wall.get +// https://dev.vk.com/method/wall.get type WallGetBuilder struct { api.Params } @@ -494,7 +494,7 @@ func (b *WallGetBuilder) Fields(v []string) *WallGetBuilder { // // Returns a list of posts from user or community walls by their IDs. // -// https://vk.com/dev/wall.getById +// https://dev.vk.com/method/wall.getById type WallGetByIDBuilder struct { api.Params } @@ -537,7 +537,7 @@ func (b *WallGetByIDBuilder) Fields(v []string) *WallGetByIDBuilder { // // Returns a list of comments on a post on a user wall or community wall. // -// https://vk.com/dev/wall.getComments +// https://dev.vk.com/method/wall.getComments type WallGetCommentsBuilder struct { api.Params } @@ -628,7 +628,7 @@ func (b *WallGetCommentsBuilder) ThreadItemsCount(v int) *WallGetCommentsBuilder // // Returns information about reposts of a post on user wall or community wall. // -// https://vk.com/dev/wall.getReposts +// https://dev.vk.com/method/wall.getReposts type WallGetRepostsBuilder struct { api.Params } @@ -664,7 +664,7 @@ func (b *WallGetRepostsBuilder) Count(v int) *WallGetRepostsBuilder { // WallOpenCommentsBuilder builder. // -// https://vk.com/dev/wall.openComments +// https://dev.vk.com/method/wall.openComments type WallOpenCommentsBuilder struct { api.Params } @@ -690,7 +690,7 @@ func (b *WallOpenCommentsBuilder) PostID(v int) *WallOpenCommentsBuilder { // // Pins the post on wall. // -// https://vk.com/dev/wall.pin +// https://dev.vk.com/method/wall.pin type WallPinBuilder struct { api.Params } @@ -717,7 +717,7 @@ func (b *WallPinBuilder) PostID(v int) *WallPinBuilder { // // Adds a new post on a user wall or community wall. Can also be used to publish suggested or scheduled posts. // -// https://vk.com/dev/wall.post +// https://dev.vk.com/method/wall.post type WallPostBuilder struct { api.Params } @@ -884,7 +884,7 @@ func (b *WallPostBuilder) TopicID(v int) *WallPostBuilder { // Allows to create hidden post which will not be shown on the community's wall and can be used for creating an ad // with type "Community post". // -// https://vk.com/dev/wall.postAdsStealth +// https://dev.vk.com/method/wall.postAdsStealth type WallPostAdsStealthBuilder struct { api.Params } @@ -986,7 +986,7 @@ func (b *WallPostAdsStealthBuilder) LinkVideo(v string) *WallPostAdsStealthBuild // // Reports (submits a complaint about) a comment on a post on a user wall or community wall. // -// https://vk.com/dev/wall.reportComment +// https://dev.vk.com/method/wall.reportComment type WallReportCommentBuilder struct { api.Params } @@ -1032,7 +1032,7 @@ func (b *WallReportCommentBuilder) Reason(v int) *WallReportCommentBuilder { // // Reports (submits a complaint about) a post on a user wall or community wall. // -// https://vk.com/dev/wall.reportPost +// https://dev.vk.com/method/wall.reportPost type WallReportPostBuilder struct { api.Params } @@ -1078,7 +1078,7 @@ func (b *WallReportPostBuilder) Reason(v int) *WallReportPostBuilder { // // Reposts (copies) an object to a user wall or community wall. // -// https://vk.com/dev/wall.repost +// https://dev.vk.com/method/wall.repost type WallRepostBuilder struct { api.Params } @@ -1122,7 +1122,7 @@ func (b *WallRepostBuilder) MuteNotifications(v bool) *WallRepostBuilder { // // Restores a post deleted from a user wall or community wall. // -// https://vk.com/dev/wall.restore +// https://dev.vk.com/method/wall.restore type WallRestoreBuilder struct { api.Params } @@ -1149,7 +1149,7 @@ func (b *WallRestoreBuilder) PostID(v int) *WallRestoreBuilder { // // Restores a comment deleted from a user wall or community wall. // -// https://vk.com/dev/wall.restoreComment +// https://dev.vk.com/method/wall.restoreComment type WallRestoreCommentBuilder struct { api.Params } @@ -1175,7 +1175,7 @@ func (b *WallRestoreCommentBuilder) CommentID(v int) *WallRestoreCommentBuilder // // Allows to search posts on user or community walls. // -// https://vk.com/dev/wall.search +// https://dev.vk.com/method/wall.search type WallSearchBuilder struct { api.Params } @@ -1237,7 +1237,7 @@ func (b *WallSearchBuilder) Fields(v []string) *WallSearchBuilder { // // Unpins the post on wall. // -// https://vk.com/dev/wall.unpin +// https://dev.vk.com/method/wall.unpin type WallUnpinBuilder struct { api.Params } diff --git a/api/params/widgets.go b/api/params/widgets.go index fe1740ba..565d63ca 100644 --- a/api/params/widgets.go +++ b/api/params/widgets.go @@ -8,7 +8,7 @@ import ( // // Gets a list of comments for the page added through the [vk.com/dev/Comments|Comments widget]. // -// https://vk.com/dev/widgets.getComments +// https://dev.vk.com/method/widgets.getComments type WidgetsGetCommentsBuilder struct { api.Params } @@ -65,7 +65,7 @@ func (b *WidgetsGetCommentsBuilder) Count(v int) *WidgetsGetCommentsBuilder { // Gets a list of application/site pages where the [vk.com/dev/Comments|Comments widget] // or [vk.com/dev/Like|Like widget] is installed. // -// https://vk.com/dev/widgets.getPages +// https://dev.vk.com/method/widgets.getPages type WidgetsGetPagesBuilder struct { api.Params } diff --git a/api/photos.go b/api/photos.go index 3754814c..4cf3200c 100644 --- a/api/photos.go +++ b/api/photos.go @@ -6,7 +6,7 @@ import ( // PhotosConfirmTag confirms a tag on a photo. // -// https://vk.com/dev/photos.confirmTag +// https://dev.vk.com/method/photos.confirmTag func (vk *VK) PhotosConfirmTag(params Params) (response int, err error) { err = vk.RequestUnmarshal("photos.confirmTag", &response, params) return @@ -14,7 +14,7 @@ func (vk *VK) PhotosConfirmTag(params Params) (response int, err error) { // PhotosCopy allows to copy a photo to the "Saved photos" album. // -// https://vk.com/dev/photos.copy +// https://dev.vk.com/method/photos.copy func (vk *VK) PhotosCopy(params Params) (response int, err error) { err = vk.RequestUnmarshal("photos.copy", &response, params) return @@ -25,7 +25,7 @@ type PhotosCreateAlbumResponse object.PhotosPhotoAlbumFull // PhotosCreateAlbum creates an empty photo album. // -// https://vk.com/dev/photos.createAlbum +// https://dev.vk.com/method/photos.createAlbum func (vk *VK) PhotosCreateAlbum(params Params) (response PhotosCreateAlbumResponse, err error) { err = vk.RequestUnmarshal("photos.createAlbum", &response, params) return @@ -33,7 +33,7 @@ func (vk *VK) PhotosCreateAlbum(params Params) (response PhotosCreateAlbumRespon // PhotosCreateComment adds a new comment on the photo. // -// https://vk.com/dev/photos.createComment +// https://dev.vk.com/method/photos.createComment func (vk *VK) PhotosCreateComment(params Params) (response int, err error) { err = vk.RequestUnmarshal("photos.createComment", &response, params) return @@ -41,7 +41,7 @@ func (vk *VK) PhotosCreateComment(params Params) (response int, err error) { // PhotosDelete deletes a photo. // -// https://vk.com/dev/photos.delete +// https://dev.vk.com/method/photos.delete func (vk *VK) PhotosDelete(params Params) (response int, err error) { err = vk.RequestUnmarshal("photos.delete", &response, params) return @@ -49,7 +49,7 @@ func (vk *VK) PhotosDelete(params Params) (response int, err error) { // PhotosDeleteAlbum deletes a photo album belonging to the current user. // -// https://vk.com/dev/photos.deleteAlbum +// https://dev.vk.com/method/photos.deleteAlbum func (vk *VK) PhotosDeleteAlbum(params Params) (response int, err error) { err = vk.RequestUnmarshal("photos.deleteAlbum", &response, params) return @@ -57,7 +57,7 @@ func (vk *VK) PhotosDeleteAlbum(params Params) (response int, err error) { // PhotosDeleteComment deletes a comment on the photo. // -// https://vk.com/dev/photos.deleteComment +// https://dev.vk.com/method/photos.deleteComment func (vk *VK) PhotosDeleteComment(params Params) (response int, err error) { err = vk.RequestUnmarshal("photos.deleteComment", &response, params) return @@ -65,7 +65,7 @@ func (vk *VK) PhotosDeleteComment(params Params) (response int, err error) { // PhotosEdit edits the caption of a photo. // -// https://vk.com/dev/photos.edit +// https://dev.vk.com/method/photos.edit func (vk *VK) PhotosEdit(params Params) (response int, err error) { err = vk.RequestUnmarshal("photos.edit", &response, params) return @@ -73,7 +73,7 @@ func (vk *VK) PhotosEdit(params Params) (response int, err error) { // PhotosEditAlbum edits information about a photo album. // -// https://vk.com/dev/photos.editAlbum +// https://dev.vk.com/method/photos.editAlbum func (vk *VK) PhotosEditAlbum(params Params) (response int, err error) { err = vk.RequestUnmarshal("photos.editAlbum", &response, params) return @@ -81,7 +81,7 @@ func (vk *VK) PhotosEditAlbum(params Params) (response int, err error) { // PhotosEditComment edits a comment on a photo. // -// https://vk.com/dev/photos.editComment +// https://dev.vk.com/method/photos.editComment func (vk *VK) PhotosEditComment(params Params) (response int, err error) { err = vk.RequestUnmarshal("photos.editComment", &response, params) return @@ -97,7 +97,7 @@ type PhotosGetResponse struct { // // extended=0 // -// https://vk.com/dev/photos.get +// https://dev.vk.com/method/photos.get func (vk *VK) PhotosGet(params Params) (response PhotosGetResponse, err error) { err = vk.RequestUnmarshal("photos.get", &response, params, Params{"extended": false}) @@ -114,7 +114,7 @@ type PhotosGetExtendedResponse struct { // // extended=1 // -// https://vk.com/dev/photos.get +// https://dev.vk.com/method/photos.get func (vk *VK) PhotosGetExtended(params Params) (response PhotosGetExtendedResponse, err error) { err = vk.RequestUnmarshal("photos.get", &response, params, Params{"extended": true}) @@ -129,7 +129,7 @@ type PhotosGetAlbumsResponse struct { // PhotosGetAlbums returns a list of a user's or community's photo albums. // -// https://vk.com/dev/photos.getAlbums +// https://dev.vk.com/method/photos.getAlbums func (vk *VK) PhotosGetAlbums(params Params) (response PhotosGetAlbumsResponse, err error) { err = vk.RequestUnmarshal("photos.getAlbums", &response, params) return @@ -137,7 +137,7 @@ func (vk *VK) PhotosGetAlbums(params Params) (response PhotosGetAlbumsResponse, // PhotosGetAlbumsCount returns the number of photo albums belonging to a user or community. // -// https://vk.com/dev/photos.getAlbumsCount +// https://dev.vk.com/method/photos.getAlbumsCount func (vk *VK) PhotosGetAlbumsCount(params Params) (response int, err error) { err = vk.RequestUnmarshal("photos.getAlbumsCount", &response, params) return @@ -154,7 +154,7 @@ type PhotosGetAllResponse struct { // // extended=0 // -// https://vk.com/dev/photos.getAll +// https://dev.vk.com/method/photos.getAll func (vk *VK) PhotosGetAll(params Params) (response PhotosGetAllResponse, err error) { err = vk.RequestUnmarshal("photos.getAll", &response, params, Params{"extended": false}) @@ -172,7 +172,7 @@ type PhotosGetAllExtendedResponse struct { // // extended=1 // -// https://vk.com/dev/photos.getAll +// https://dev.vk.com/method/photos.getAll func (vk *VK) PhotosGetAllExtended(params Params) (response PhotosGetAllExtendedResponse, err error) { err = vk.RequestUnmarshal("photos.getAll", &response, params, Params{"extended": true}) @@ -188,7 +188,7 @@ type PhotosGetAllCommentsResponse struct { // PhotosGetAllComments returns a list of comments on a specific // photo album or all albums of the user sorted in reverse chronological order. // -// https://vk.com/dev/photos.getAllComments +// https://dev.vk.com/method/photos.getAllComments func (vk *VK) PhotosGetAllComments(params Params) (response PhotosGetAllCommentsResponse, err error) { err = vk.RequestUnmarshal("photos.getAllComments", &response, params) return @@ -201,7 +201,7 @@ type PhotosGetByIDResponse []object.PhotosPhoto // // extended=0 // -// https://vk.com/dev/photos.getById +// https://dev.vk.com/method/photos.getById func (vk *VK) PhotosGetByID(params Params) (response PhotosGetByIDResponse, err error) { err = vk.RequestUnmarshal("photos.getById", &response, params, Params{"extended": false}) @@ -215,7 +215,7 @@ type PhotosGetByIDExtendedResponse []object.PhotosPhotoFull // // extended=1 // -// https://vk.com/dev/photos.getById +// https://dev.vk.com/method/photos.getById func (vk *VK) PhotosGetByIDExtended(params Params) (response PhotosGetByIDExtendedResponse, err error) { err = vk.RequestUnmarshal("photos.getById", &response, params, Params{"extended": true}) @@ -229,7 +229,7 @@ type PhotosGetChatUploadServerResponse struct { // PhotosGetChatUploadServer returns an upload link for chat cover pictures. // -// https://vk.com/dev/photos.getChatUploadServer +// https://dev.vk.com/method/photos.getChatUploadServer func (vk *VK) PhotosGetChatUploadServer(params Params) (response PhotosGetChatUploadServerResponse, err error) { err = vk.RequestUnmarshal("photos.getChatUploadServer", &response, params) return @@ -246,7 +246,7 @@ type PhotosGetCommentsResponse struct { // // extended=0 // -// https://vk.com/dev/photos.getComments +// https://dev.vk.com/method/photos.getComments func (vk *VK) PhotosGetComments(params Params) (response PhotosGetCommentsResponse, err error) { err = vk.RequestUnmarshal("photos.getComments", &response, params, Params{"extended": false}) @@ -266,7 +266,7 @@ type PhotosGetCommentsExtendedResponse struct { // // extended=1 // -// https://vk.com/dev/photos.getComments +// https://dev.vk.com/method/photos.getComments func (vk *VK) PhotosGetCommentsExtended(params Params) (response PhotosGetCommentsExtendedResponse, err error) { err = vk.RequestUnmarshal("photos.getComments", &response, params, Params{"extended": true}) @@ -280,7 +280,7 @@ type PhotosGetMarketAlbumUploadServerResponse struct { // PhotosGetMarketAlbumUploadServer returns the server address for market album photo upload. // -// https://vk.com/dev/photos.getMarketAlbumUploadServer +// https://dev.vk.com/method/photos.getMarketAlbumUploadServer func (vk *VK) PhotosGetMarketAlbumUploadServer(params Params) ( response PhotosGetMarketAlbumUploadServerResponse, err error, @@ -296,7 +296,7 @@ type PhotosGetMarketUploadServerResponse struct { // PhotosGetMarketUploadServer returns the server address for market photo upload. // -// https://vk.com/dev/photos.getMarketUploadServer +// https://dev.vk.com/method/photos.getMarketUploadServer func (vk *VK) PhotosGetMarketUploadServer(params Params) (response PhotosGetMarketUploadServerResponse, err error) { err = vk.RequestUnmarshal("photos.getMarketUploadServer", &response, params) return @@ -312,7 +312,7 @@ type PhotosGetMessagesUploadServerResponse struct { // PhotosGetMessagesUploadServer returns the server address for photo upload onto a messages. // -// https://vk.com/dev/photos.getMessagesUploadServer +// https://dev.vk.com/method/photos.getMessagesUploadServer func (vk *VK) PhotosGetMessagesUploadServer(params Params) (response PhotosGetMessagesUploadServerResponse, err error) { err = vk.RequestUnmarshal("photos.getMessagesUploadServer", &response, params) return @@ -326,7 +326,7 @@ type PhotosGetNewTagsResponse struct { // PhotosGetNewTags returns a list of photos with tags that have not been viewed. // -// https://vk.com/dev/photos.getNewTags +// https://dev.vk.com/method/photos.getNewTags func (vk *VK) PhotosGetNewTags(params Params) (response PhotosGetNewTagsResponse, err error) { err = vk.RequestUnmarshal("photos.getNewTags", &response, params) return @@ -339,7 +339,7 @@ type PhotosGetOwnerCoverPhotoUploadServerResponse struct { // PhotosGetOwnerCoverPhotoUploadServer receives server address for uploading community cover. // -// https://vk.com/dev/photos.getOwnerCoverPhotoUploadServer +// https://dev.vk.com/method/photos.getOwnerCoverPhotoUploadServer func (vk *VK) PhotosGetOwnerCoverPhotoUploadServer(params Params) ( response PhotosGetOwnerCoverPhotoUploadServerResponse, err error, @@ -356,7 +356,7 @@ type PhotosGetOwnerPhotoUploadServerResponse struct { // PhotosGetOwnerPhotoUploadServer returns an upload server address for a // profile or community photo. // -// https://vk.com/dev/photos.getOwnerPhotoUploadServer +// https://dev.vk.com/method/photos.getOwnerPhotoUploadServer func (vk *VK) PhotosGetOwnerPhotoUploadServer(params Params) ( response PhotosGetOwnerPhotoUploadServerResponse, err error, @@ -370,7 +370,7 @@ type PhotosGetTagsResponse []object.PhotosPhotoTag // PhotosGetTags returns a list of tags on a photo. // -// https://vk.com/dev/photos.getTags +// https://dev.vk.com/method/photos.getTags func (vk *VK) PhotosGetTags(params Params) (response PhotosGetTagsResponse, err error) { err = vk.RequestUnmarshal("photos.getTags", &response, params) return @@ -381,7 +381,7 @@ type PhotosGetUploadServerResponse object.PhotosPhotoUpload // PhotosGetUploadServer returns the server address for photo upload. // -// https://vk.com/dev/photos.getUploadServer +// https://dev.vk.com/method/photos.getUploadServer func (vk *VK) PhotosGetUploadServer(params Params) (response PhotosGetUploadServerResponse, err error) { err = vk.RequestUnmarshal("photos.getUploadServer", &response, params) return @@ -397,7 +397,7 @@ type PhotosGetUserPhotosResponse struct { // // extended=0 // -// https://vk.com/dev/photos.getUserPhotos +// https://dev.vk.com/method/photos.getUserPhotos func (vk *VK) PhotosGetUserPhotos(params Params) (response PhotosGetUserPhotosResponse, err error) { err = vk.RequestUnmarshal("photos.getUserPhotos", &response, params, Params{"extended": false}) @@ -414,7 +414,7 @@ type PhotosGetUserPhotosExtendedResponse struct { // // extended=1 // -// https://vk.com/dev/photos.getUserPhotos +// https://dev.vk.com/method/photos.getUserPhotos func (vk *VK) PhotosGetUserPhotosExtended(params Params) (response PhotosGetUserPhotosExtendedResponse, err error) { err = vk.RequestUnmarshal("photos.getUserPhotos", &response, params, Params{"extended": true}) @@ -426,7 +426,7 @@ type PhotosGetWallUploadServerResponse object.PhotosPhotoUpload // PhotosGetWallUploadServer returns the server address for photo upload onto a user's wall. // -// https://vk.com/dev/photos.getWallUploadServer +// https://dev.vk.com/method/photos.getWallUploadServer func (vk *VK) PhotosGetWallUploadServer(params Params) (response PhotosGetWallUploadServerResponse, err error) { err = vk.RequestUnmarshal("photos.getWallUploadServer", &response, params) return @@ -434,7 +434,7 @@ func (vk *VK) PhotosGetWallUploadServer(params Params) (response PhotosGetWallUp // PhotosMakeCover makes a photo into an album cover. // -// https://vk.com/dev/photos.makeCover +// https://dev.vk.com/method/photos.makeCover func (vk *VK) PhotosMakeCover(params Params) (response int, err error) { err = vk.RequestUnmarshal("photos.makeCover", &response, params) return @@ -442,7 +442,7 @@ func (vk *VK) PhotosMakeCover(params Params) (response int, err error) { // PhotosMove a photo from one album to another. // -// https://vk.com/dev/photos.moveMoves +// https://dev.vk.com/method/photos.moveMoves func (vk *VK) PhotosMove(params Params) (response int, err error) { err = vk.RequestUnmarshal("photos.move", &response, params) return @@ -450,7 +450,7 @@ func (vk *VK) PhotosMove(params Params) (response int, err error) { // PhotosPutTag adds a tag on the photo. // -// https://vk.com/dev/photos.putTag +// https://dev.vk.com/method/photos.putTag func (vk *VK) PhotosPutTag(params Params) (response int, err error) { err = vk.RequestUnmarshal("photos.putTag", &response, params) return @@ -458,7 +458,7 @@ func (vk *VK) PhotosPutTag(params Params) (response int, err error) { // PhotosRemoveTag removes a tag from a photo. // -// https://vk.com/dev/photos.removeTag +// https://dev.vk.com/method/photos.removeTag func (vk *VK) PhotosRemoveTag(params Params) (response int, err error) { err = vk.RequestUnmarshal("photos.removeTag", &response, params) return @@ -466,7 +466,7 @@ func (vk *VK) PhotosRemoveTag(params Params) (response int, err error) { // PhotosReorderAlbums reorders the album in the list of user albums. // -// https://vk.com/dev/photos.reorderAlbums +// https://dev.vk.com/method/photos.reorderAlbums func (vk *VK) PhotosReorderAlbums(params Params) (response int, err error) { err = vk.RequestUnmarshal("photos.reorderAlbums", &response, params) return @@ -474,7 +474,7 @@ func (vk *VK) PhotosReorderAlbums(params Params) (response int, err error) { // PhotosReorderPhotos reorders the photo in the list of photos of the user album. // -// https://vk.com/dev/photos.reorderPhotos +// https://dev.vk.com/method/photos.reorderPhotos func (vk *VK) PhotosReorderPhotos(params Params) (response int, err error) { err = vk.RequestUnmarshal("photos.reorderPhotos", &response, params) return @@ -482,7 +482,7 @@ func (vk *VK) PhotosReorderPhotos(params Params) (response int, err error) { // PhotosReport reports (submits a complaint about) a photo. // -// https://vk.com/dev/photos.report +// https://dev.vk.com/method/photos.report func (vk *VK) PhotosReport(params Params) (response int, err error) { err = vk.RequestUnmarshal("photos.report", &response, params) return @@ -490,7 +490,7 @@ func (vk *VK) PhotosReport(params Params) (response int, err error) { // PhotosReportComment reports (submits a complaint about) a comment on a photo. // -// https://vk.com/dev/photos.reportComment +// https://dev.vk.com/method/photos.reportComment func (vk *VK) PhotosReportComment(params Params) (response int, err error) { err = vk.RequestUnmarshal("photos.reportComment", &response, params) return @@ -498,7 +498,7 @@ func (vk *VK) PhotosReportComment(params Params) (response int, err error) { // PhotosRestore restores a deleted photo. // -// https://vk.com/dev/photos.restore +// https://dev.vk.com/method/photos.restore func (vk *VK) PhotosRestore(params Params) (response int, err error) { err = vk.RequestUnmarshal("photos.restore", &response, params) return @@ -506,7 +506,7 @@ func (vk *VK) PhotosRestore(params Params) (response int, err error) { // PhotosRestoreComment restores a deleted comment on a photo. // -// https://vk.com/dev/photos.restoreComment +// https://dev.vk.com/method/photos.restoreComment func (vk *VK) PhotosRestoreComment(params Params) (response int, err error) { err = vk.RequestUnmarshal("photos.restoreComment", &response, params) return @@ -517,7 +517,7 @@ type PhotosSaveResponse []object.PhotosPhoto // PhotosSave saves photos after successful uploading. // -// https://vk.com/dev/photos.save +// https://dev.vk.com/method/photos.save func (vk *VK) PhotosSave(params Params) (response PhotosSaveResponse, err error) { err = vk.RequestUnmarshal("photos.save", &response, params) return @@ -528,7 +528,7 @@ type PhotosSaveMarketAlbumPhotoResponse []object.PhotosPhoto // PhotosSaveMarketAlbumPhoto photo Saves market album photos after successful uploading. // -// https://vk.com/dev/photos.saveMarketAlbumPhoto +// https://dev.vk.com/method/photos.saveMarketAlbumPhoto func (vk *VK) PhotosSaveMarketAlbumPhoto(params Params) (response PhotosSaveMarketAlbumPhotoResponse, err error) { err = vk.RequestUnmarshal("photos.saveMarketAlbumPhoto", &response, params) return @@ -539,7 +539,7 @@ type PhotosSaveMarketPhotoResponse []object.PhotosPhoto // PhotosSaveMarketPhoto saves market photos after successful uploading. // -// https://vk.com/dev/photos.saveMarketPhoto +// https://dev.vk.com/method/photos.saveMarketPhoto func (vk *VK) PhotosSaveMarketPhoto(params Params) (response PhotosSaveMarketPhotoResponse, err error) { err = vk.RequestUnmarshal("photos.saveMarketPhoto", &response, params) return @@ -550,7 +550,7 @@ type PhotosSaveMessagesPhotoResponse []object.PhotosPhoto // PhotosSaveMessagesPhoto saves a photo after being successfully. // -// https://vk.com/dev/photos.saveMessagesPhoto +// https://dev.vk.com/method/photos.saveMessagesPhoto func (vk *VK) PhotosSaveMessagesPhoto(params Params) (response PhotosSaveMessagesPhotoResponse, err error) { err = vk.RequestUnmarshal("photos.saveMessagesPhoto", &response, params) return @@ -563,7 +563,7 @@ type PhotosSaveOwnerCoverPhotoResponse struct { // PhotosSaveOwnerCoverPhoto saves cover photo after successful uploading. // -// https://vk.com/dev/photos.saveOwnerCoverPhoto +// https://dev.vk.com/method/photos.saveOwnerCoverPhoto func (vk *VK) PhotosSaveOwnerCoverPhoto(params Params) (response PhotosSaveOwnerCoverPhotoResponse, err error) { err = vk.RequestUnmarshal("photos.saveOwnerCoverPhoto", &response, params) return @@ -582,7 +582,7 @@ type PhotosSaveOwnerPhotoResponse struct { // PhotosSaveOwnerPhoto saves a profile or community photo. // -// https://vk.com/dev/photos.saveOwnerPhoto +// https://dev.vk.com/method/photos.saveOwnerPhoto func (vk *VK) PhotosSaveOwnerPhoto(params Params) (response PhotosSaveOwnerPhotoResponse, err error) { err = vk.RequestUnmarshal("photos.saveOwnerPhoto", &response, params) return @@ -593,7 +593,7 @@ type PhotosSaveWallPhotoResponse []object.PhotosPhoto // PhotosSaveWallPhoto saves a photo to a user's or community's wall after being uploaded. // -// https://vk.com/dev/photos.saveWallPhoto +// https://dev.vk.com/method/photos.saveWallPhoto func (vk *VK) PhotosSaveWallPhoto(params Params) (response PhotosSaveWallPhotoResponse, err error) { err = vk.RequestUnmarshal("photos.saveWallPhoto", &response, params) return @@ -607,7 +607,7 @@ type PhotosSearchResponse struct { // PhotosSearch returns a list of photos. // -// https://vk.com/dev/photos.search +// https://dev.vk.com/method/photos.search func (vk *VK) PhotosSearch(params Params) (response PhotosSearchResponse, err error) { err = vk.RequestUnmarshal("photos.search", &response, params) return diff --git a/api/podcasts.go b/api/podcasts.go index 51ffb8cb..698631f7 100644 --- a/api/podcasts.go +++ b/api/podcasts.go @@ -13,7 +13,7 @@ type PodcastsGetCatalogResponse struct { // // extended=0 // -// https://vk.com/dev/podcasts.getCatalog +// https://dev.vk.com/method/podcasts.getCatalog func (vk *VK) PodcastsGetCatalog(params Params) (response PodcastsGetCatalogResponse, err error) { err = vk.RequestUnmarshal("podcasts.getCatalog", &response, params, Params{"extended": false}) @@ -30,7 +30,7 @@ type PodcastsGetCatalogExtendedResponse struct { // // extended=1 // -// https://vk.com/dev/podcasts.getCatalog +// https://dev.vk.com/method/podcasts.getCatalog func (vk *VK) PodcastsGetCatalogExtended(params Params) (response PodcastsGetCatalogExtendedResponse, err error) { err = vk.RequestUnmarshal("podcasts.getCatalog", &response, params, Params{"extended": true}) @@ -42,7 +42,7 @@ type PodcastsGetCategoriesResponse []object.PodcastsCategory // PodcastsGetCategories method. // -// https://vk.com/dev/podcasts.getCategories +// https://dev.vk.com/method/podcasts.getCategories func (vk *VK) PodcastsGetCategories(params Params) (response PodcastsGetCategoriesResponse, err error) { err = vk.RequestUnmarshal("podcasts.getCategories", &response, params) return @@ -56,7 +56,7 @@ type PodcastsGetEpisodesResponse struct { // PodcastsGetEpisodes method. // -// https://vk.com/dev/podcasts.getEpisodes +// https://dev.vk.com/method/podcasts.getEpisodes func (vk *VK) PodcastsGetEpisodes(params Params) (response PodcastsGetEpisodesResponse, err error) { err = vk.RequestUnmarshal("podcasts.getEpisodes", &response, params) return @@ -72,7 +72,7 @@ type PodcastsGetFeedResponse struct { // // extended=0 // -// https://vk.com/dev/podcasts.getFeed +// https://dev.vk.com/method/podcasts.getFeed func (vk *VK) PodcastsGetFeed(params Params) (response PodcastsGetFeedResponse, err error) { err = vk.RequestUnmarshal("podcasts.getFeed", &response, params, Params{"extended": false}) @@ -90,7 +90,7 @@ type PodcastsGetFeedExtendedResponse struct { // // extended=1 // -// https://vk.com/dev/podcasts.getFeed +// https://dev.vk.com/method/podcasts.getFeed func (vk *VK) PodcastsGetFeedExtended(params Params) (response PodcastsGetFeedExtendedResponse, err error) { err = vk.RequestUnmarshal("podcasts.getFeed", &response, params, Params{"extended": true}) @@ -118,7 +118,7 @@ type PodcastsGetStartPageResponse struct { // // extended=0 // -// https://vk.com/dev/podcasts.getStartPage +// https://dev.vk.com/method/podcasts.getStartPage func (vk *VK) PodcastsGetStartPage(params Params) (response PodcastsGetStartPageResponse, err error) { err = vk.RequestUnmarshal("podcasts.getStartPage", &response, params, Params{"extended": false}) @@ -147,7 +147,7 @@ type PodcastsGetStartPageExtendedResponse struct { // // extended=1 // -// https://vk.com/dev/podcasts.getStartPage +// https://dev.vk.com/method/podcasts.getStartPage func (vk *VK) PodcastsGetStartPageExtended(params Params) (response PodcastsGetStartPageExtendedResponse, err error) { err = vk.RequestUnmarshal("podcasts.getStartPage", &response, params, Params{"extended": true}) @@ -156,7 +156,7 @@ func (vk *VK) PodcastsGetStartPageExtended(params Params) (response PodcastsGetS // PodcastsMarkAsListened method. // -// https://vk.com/dev/podcasts.markAsListened +// https://dev.vk.com/method/podcasts.markAsListened func (vk *VK) PodcastsMarkAsListened(params Params) (response int, err error) { err = vk.RequestUnmarshal("podcasts.markAsListened", &response, params) return @@ -164,7 +164,7 @@ func (vk *VK) PodcastsMarkAsListened(params Params) (response int, err error) { // PodcastsSubscribe method. // -// https://vk.com/dev/podcasts.subscribe +// https://dev.vk.com/method/podcasts.subscribe func (vk *VK) PodcastsSubscribe(params Params) (response int, err error) { err = vk.RequestUnmarshal("podcasts.subscribe", &response, params) return @@ -172,7 +172,7 @@ func (vk *VK) PodcastsSubscribe(params Params) (response int, err error) { // PodcastsUnsubscribe method. // -// https://vk.com/dev/podcasts.unsubscribe +// https://dev.vk.com/method/podcasts.unsubscribe func (vk *VK) PodcastsUnsubscribe(params Params) (response int, err error) { err = vk.RequestUnmarshal("podcasts.unsubscribe", &response, params) return diff --git a/api/polls.go b/api/polls.go index 968b242e..3711bd25 100644 --- a/api/polls.go +++ b/api/polls.go @@ -4,7 +4,7 @@ import "github.com/SevereCloud/vksdk/v2/object" // PollsAddVote adds the current user's vote to the selected answer in the poll. // -// https://vk.com/dev/polls.addVote +// https://dev.vk.com/method/polls.addVote func (vk *VK) PollsAddVote(params Params) (response int, err error) { err = vk.RequestUnmarshal("polls.addVote", &response, params) return @@ -15,7 +15,7 @@ type PollsCreateResponse object.PollsPoll // PollsCreate creates polls that can be attached to the users' or communities' posts. // -// https://vk.com/dev/polls.create +// https://dev.vk.com/method/polls.create func (vk *VK) PollsCreate(params Params) (response PollsCreateResponse, err error) { err = vk.RequestUnmarshal("polls.create", &response, params) return @@ -23,7 +23,7 @@ func (vk *VK) PollsCreate(params Params) (response PollsCreateResponse, err erro // PollsDeleteVote deletes the current user's vote from the selected answer in the poll. // -// https://vk.com/dev/polls.deleteVote +// https://dev.vk.com/method/polls.deleteVote func (vk *VK) PollsDeleteVote(params Params) (response int, err error) { err = vk.RequestUnmarshal("polls.deleteVote", &response, params) return @@ -31,7 +31,7 @@ func (vk *VK) PollsDeleteVote(params Params) (response int, err error) { // PollsEdit edits created polls. // -// https://vk.com/dev/polls.edit +// https://dev.vk.com/method/polls.edit func (vk *VK) PollsEdit(params Params) (response int, err error) { err = vk.RequestUnmarshal("polls.edit", &response, params) return @@ -42,7 +42,7 @@ type PollsGetBackgroundsResponse []object.PollsBackground // PollsGetBackgrounds return default backgrounds for polls. // -// https://vk.com/dev/polls.getBackgrounds +// https://dev.vk.com/method/polls.getBackgrounds func (vk *VK) PollsGetBackgrounds(params Params) (response PollsGetBackgroundsResponse, err error) { err = vk.RequestUnmarshal("polls.getBackgrounds", &response, params) return @@ -53,7 +53,7 @@ type PollsGetByIDResponse object.PollsPoll // PollsGetByID returns detailed information about a poll by its ID. // -// https://vk.com/dev/polls.getById +// https://dev.vk.com/method/polls.getById func (vk *VK) PollsGetByID(params Params) (response PollsGetByIDResponse, err error) { err = vk.RequestUnmarshal("polls.getById", &response, params) return @@ -66,7 +66,7 @@ type PollsGetPhotoUploadServerResponse struct { // PollsGetPhotoUploadServer returns a URL for uploading a photo to a poll. // -// https://vk.com/dev/polls.getPhotoUploadServer +// https://dev.vk.com/method/polls.getPhotoUploadServer func (vk *VK) PollsGetPhotoUploadServer(params Params) (response PollsGetPhotoUploadServerResponse, err error) { err = vk.RequestUnmarshal("polls.getPhotoUploadServer", &response, params) return @@ -77,7 +77,7 @@ type PollsGetVotersResponse []object.PollsVoters // PollsGetVoters returns a list of IDs of users who selected specific answers in the poll. // -// https://vk.com/dev/polls.getVoters +// https://dev.vk.com/method/polls.getVoters func (vk *VK) PollsGetVoters(params Params) (response PollsGetVotersResponse, err error) { err = vk.RequestUnmarshal("polls.getVoters", &response, params) return @@ -88,7 +88,7 @@ type PollsGetVotersFieldsResponse []object.PollsVotersFields // PollsGetVotersFields returns a list of IDs of users who selected specific answers in the poll. // -// https://vk.com/dev/polls.getVoters +// https://dev.vk.com/method/polls.getVoters func (vk *VK) PollsGetVotersFields(params Params) (response PollsGetVotersFieldsResponse, err error) { err = vk.RequestUnmarshal("polls.getVoters", &response, params) return @@ -99,7 +99,7 @@ type PollsSavePhotoResponse object.PollsPhoto // PollsSavePhoto allows to save poll's uploaded photo. // -// https://vk.com/dev/polls.savePhoto +// https://dev.vk.com/method/polls.savePhoto func (vk *VK) PollsSavePhoto(params Params) (response PollsSavePhotoResponse, err error) { err = vk.RequestUnmarshal("polls.savePhoto", &response, params) return diff --git a/api/prettycards.go b/api/prettycards.go index c51f5efa..e9cacc9a 100644 --- a/api/prettycards.go +++ b/api/prettycards.go @@ -10,7 +10,7 @@ type PrettyCardsCreateResponse struct { // PrettyCardsCreate method. // -// https://vk.com/dev/prettyCards.create +// https://dev.vk.com/method/prettyCards.create func (vk *VK) PrettyCardsCreate(params Params) (response PrettyCardsCreateResponse, err error) { err = vk.RequestUnmarshal("prettyCards.create", &response, params) return @@ -25,7 +25,7 @@ type PrettyCardsDeleteResponse struct { // PrettyCardsDelete method. // -// https://vk.com/dev/prettyCards.delete +// https://dev.vk.com/method/prettyCards.delete func (vk *VK) PrettyCardsDelete(params Params) (response PrettyCardsDeleteResponse, err error) { err = vk.RequestUnmarshal("prettyCards.delete", &response, params) return @@ -39,7 +39,7 @@ type PrettyCardsEditResponse struct { // PrettyCardsEdit method. // -// https://vk.com/dev/prettyCards.edit +// https://dev.vk.com/method/prettyCards.edit func (vk *VK) PrettyCardsEdit(params Params) (response PrettyCardsEditResponse, err error) { err = vk.RequestUnmarshal("prettyCards.edit", &response, params) return @@ -53,7 +53,7 @@ type PrettyCardsGetResponse struct { // PrettyCardsGet method. // -// https://vk.com/dev/prettyCards.get +// https://dev.vk.com/method/prettyCards.get func (vk *VK) PrettyCardsGet(params Params) (response PrettyCardsGetResponse, err error) { err = vk.RequestUnmarshal("prettyCards.get", &response, params) return @@ -64,7 +64,7 @@ type PrettyCardsGetByIDResponse []object.PrettyCardsPrettyCard // PrettyCardsGetByID method. // -// https://vk.com/dev/prettyCards.getById +// https://dev.vk.com/method/prettyCards.getById func (vk *VK) PrettyCardsGetByID(params Params) (response PrettyCardsGetByIDResponse, err error) { err = vk.RequestUnmarshal("prettyCards.getById", &response, params) return @@ -72,7 +72,7 @@ func (vk *VK) PrettyCardsGetByID(params Params) (response PrettyCardsGetByIDResp // PrettyCardsGetUploadURL method. // -// https://vk.com/dev/prettyCards.getUploadURL +// https://dev.vk.com/method/prettyCards.getUploadURL func (vk *VK) PrettyCardsGetUploadURL(params Params) (response string, err error) { err = vk.RequestUnmarshal("prettyCards.getUploadURL", &response, params) return diff --git a/api/search.go b/api/search.go index 0d9f9549..b906c4d1 100644 --- a/api/search.go +++ b/api/search.go @@ -10,7 +10,7 @@ type SearchGetHintsResponse struct { // SearchGetHints allows the programmer to do a quick search for any substring. // -// https://vk.com/dev/search.getHints +// https://dev.vk.com/method/search.getHints func (vk *VK) SearchGetHints(params Params) (response SearchGetHintsResponse, err error) { err = vk.RequestUnmarshal("search.getHints", &response, params) return diff --git a/api/secure.go b/api/secure.go index b5637f24..a70240e8 100644 --- a/api/secure.go +++ b/api/secure.go @@ -9,7 +9,7 @@ type SecureAddAppEventResponse int // FIXME: not found documentation. https://gi // SecureAddAppEvent adds user activity information to an application. // -// https://vk.com/dev/secure.addAppEvent +// https://dev.vk.com/method/secure.addAppEvent func (vk *VK) SecureAddAppEvent(params Params) (response SecureAddAppEventResponse, err error) { err = vk.RequestUnmarshal("secure.addAppEvent", &response, params) return @@ -20,7 +20,7 @@ type SecureCheckTokenResponse object.SecureTokenChecked // SecureCheckToken checks the user authentication in IFrame and Flash apps using the access_token parameter. // -// https://vk.com/dev/secure.checkToken +// https://dev.vk.com/method/secure.checkToken func (vk *VK) SecureCheckToken(params Params) (response SecureCheckTokenResponse, err error) { err = vk.RequestUnmarshal("secure.checkToken", &response, params) return @@ -28,7 +28,7 @@ func (vk *VK) SecureCheckToken(params Params) (response SecureCheckTokenResponse // SecureGetAppBalance returns payment balance of the application in hundredth of a vote. // -// https://vk.com/dev/secure.getAppBalance +// https://dev.vk.com/method/secure.getAppBalance func (vk *VK) SecureGetAppBalance(params Params) (response int, err error) { err = vk.RequestUnmarshal("secure.getAppBalance", &response, params) return @@ -40,7 +40,7 @@ type SecureGetSMSHistoryResponse []object.SecureSmsNotification // SecureGetSMSHistory shows a list of SMS notifications sent by the // application using secure.sendSMSNotification method. // -// https://vk.com/dev/secure.getSMSHistory +// https://dev.vk.com/method/secure.getSMSHistory func (vk *VK) SecureGetSMSHistory(params Params) (response SecureGetSMSHistoryResponse, err error) { err = vk.RequestUnmarshal("secure.getSMSHistory", &response, params) return @@ -51,7 +51,7 @@ type SecureGetTransactionsHistoryResponse []object.SecureTransaction // SecureGetTransactionsHistory shows history of votes transaction between users and the application. // -// https://vk.com/dev/secure.getTransactionsHistory +// https://dev.vk.com/method/secure.getTransactionsHistory func (vk *VK) SecureGetTransactionsHistory(params Params) (response SecureGetTransactionsHistoryResponse, err error) { err = vk.RequestUnmarshal("secure.getTransactionsHistory", &response, params) return @@ -62,7 +62,7 @@ type SecureGetUserLevelResponse []object.SecureLevel // SecureGetUserLevel returns one of the previously set game levels of one or more users in the application. // -// https://vk.com/dev/secure.getUserLevel +// https://dev.vk.com/method/secure.getUserLevel func (vk *VK) SecureGetUserLevel(params Params) (response SecureGetUserLevelResponse, err error) { err = vk.RequestUnmarshal("secure.getUserLevel", &response, params) return @@ -76,7 +76,7 @@ type SecureGiveEventStickerResponse []struct { // SecureGiveEventSticker method. // -// https://vk.com/dev/secure.giveEventSticker +// https://dev.vk.com/method/secure.giveEventSticker func (vk *VK) SecureGiveEventSticker(params Params) (response SecureGiveEventStickerResponse, err error) { err = vk.RequestUnmarshal("secure.giveEventSticker", &response, params) return @@ -87,7 +87,7 @@ type SecureSendNotificationResponse []int // User ID // SecureSendNotification sends notification to the user. // -// https://vk.com/dev/secure.sendNotification +// https://dev.vk.com/method/secure.sendNotification func (vk *VK) SecureSendNotification(params Params) (response SecureSendNotificationResponse, err error) { err = vk.RequestUnmarshal("secure.sendNotification", &response, params) return @@ -95,7 +95,7 @@ func (vk *VK) SecureSendNotification(params Params) (response SecureSendNotifica // SecureSendSMSNotification sends SMS notification to a user's mobile device. // -// https://vk.com/dev/secure.sendSMSNotification +// https://dev.vk.com/method/secure.sendSMSNotification func (vk *VK) SecureSendSMSNotification(params Params) (response int, err error) { err = vk.RequestUnmarshal("secure.sendSMSNotification", &response, params) return @@ -103,7 +103,7 @@ func (vk *VK) SecureSendSMSNotification(params Params) (response int, err error) // SecureSetCounter sets a counter which is shown to the user in bold in the left menu. // -// https://vk.com/dev/secure.setCounter +// https://dev.vk.com/method/secure.setCounter func (vk *VK) SecureSetCounter(params Params) (response int, err error) { err = vk.RequestUnmarshal("secure.setCounter", &response, params) return diff --git a/api/stats.go b/api/stats.go index 86572e01..d9cbb960 100644 --- a/api/stats.go +++ b/api/stats.go @@ -9,7 +9,7 @@ type StatsGetResponse []object.StatsPeriod // StatsGet returns statistics of a community or an application. // -// https://vk.com/dev/stats.get +// https://dev.vk.com/method/stats.get func (vk *VK) StatsGet(params Params) (response StatsGetResponse, err error) { err = vk.RequestUnmarshal("stats.get", &response, params) return @@ -20,7 +20,7 @@ type StatsGetPostReachResponse []object.StatsWallpostStat // StatsGetPostReach returns stats for a wall post. // -// https://vk.com/dev/stats.getPostReach +// https://dev.vk.com/method/stats.getPostReach func (vk *VK) StatsGetPostReach(params Params) (response StatsGetPostReachResponse, err error) { err = vk.RequestUnmarshal("stats.getPostReach", &response, params) return @@ -28,7 +28,7 @@ func (vk *VK) StatsGetPostReach(params Params) (response StatsGetPostReachRespon // StatsTrackVisitor adds current session's data in the application statistics. // -// https://vk.com/dev/stats.trackVisitor +// https://dev.vk.com/method/stats.trackVisitor func (vk *VK) StatsTrackVisitor(params Params) (response int, err error) { err = vk.RequestUnmarshal("stats.trackVisitor", &response, params) return diff --git a/api/storage.go b/api/storage.go index ed1d8c64..82cc0c62 100644 --- a/api/storage.go +++ b/api/storage.go @@ -21,7 +21,7 @@ func (s StorageGetResponse) ToMap() map[string]string { // // StorageGet always return array! // -// https://vk.com/dev/storage.get +// https://dev.vk.com/method/storage.get func (vk *VK) StorageGet(params Params) (response StorageGetResponse, err error) { err = vk.RequestUnmarshal("storage.get", &response, params) @@ -33,7 +33,7 @@ type StorageGetKeysResponse []string // StorageGetKeys returns the names of all variables. // -// https://vk.com/dev/storage.getKeys +// https://dev.vk.com/method/storage.getKeys func (vk *VK) StorageGetKeys(params Params) (response StorageGetKeysResponse, err error) { err = vk.RequestUnmarshal("storage.getKeys", &response, params) return @@ -41,7 +41,7 @@ func (vk *VK) StorageGetKeys(params Params) (response StorageGetKeysResponse, er // StorageSet saves a value of variable with the name set by key parameter. // -// https://vk.com/dev/storage.set +// https://dev.vk.com/method/storage.set func (vk *VK) StorageSet(params Params) (response int, err error) { err = vk.RequestUnmarshal("storage.set", &response, params) return diff --git a/api/store.go b/api/store.go index 4a9f5935..294ccfb3 100644 --- a/api/store.go +++ b/api/store.go @@ -6,7 +6,7 @@ import ( // StoreAddStickersToFavorite add stickers to favorite. // -// https://vk.com/dev/store.addStickersToFavorite +// https://dev.vk.com/method/store.addStickersToFavorite func (vk *VK) StoreAddStickersToFavorite(params Params) (response int, err error) { err = vk.RequestUnmarshal("store.addStickersToFavorite", &response, params) return @@ -20,7 +20,7 @@ type StoreGetFavoriteStickersResponse struct { // StoreGetFavoriteStickers return favorite stickers. // -// https://vk.com/dev/store.getFavoriteStickers +// https://dev.vk.com/method/store.getFavoriteStickers func (vk *VK) StoreGetFavoriteStickers(params Params) (response StoreGetFavoriteStickersResponse, err error) { err = vk.RequestUnmarshal("store.getFavoriteStickers", &response, params) return @@ -28,7 +28,7 @@ func (vk *VK) StoreGetFavoriteStickers(params Params) (response StoreGetFavorite // StoreRemoveStickersFromFavorite remove stickers from favorite. // -// https://vk.com/dev/store.removeStickersFromFavorite +// https://dev.vk.com/method/store.removeStickersFromFavorite func (vk *VK) StoreRemoveStickersFromFavorite(params Params) (response int, err error) { err = vk.RequestUnmarshal("store.removeStickersFromFavorite", &response, params) return diff --git a/api/stories.go b/api/stories.go index d3893029..7f82466f 100644 --- a/api/stories.go +++ b/api/stories.go @@ -6,7 +6,7 @@ import ( // StoriesBanOwner allows to hide stories from chosen sources from current user's feed. // -// https://vk.com/dev/stories.banOwner +// https://dev.vk.com/method/stories.banOwner func (vk *VK) StoriesBanOwner(params Params) (response int, err error) { err = vk.RequestUnmarshal("stories.banOwner", &response, params) return @@ -14,7 +14,7 @@ func (vk *VK) StoriesBanOwner(params Params) (response int, err error) { // StoriesDelete allows to delete story. // -// https://vk.com/dev/stories.delete +// https://dev.vk.com/method/stories.delete func (vk *VK) StoriesDelete(params Params) (response int, err error) { err = vk.RequestUnmarshal("stories.delete", &response, params) return @@ -32,7 +32,7 @@ type StoriesGetResponse struct { // // extended=0 // -// https://vk.com/dev/stories.get +// https://dev.vk.com/method/stories.get func (vk *VK) StoriesGet(params Params) (response StoriesGetResponse, err error) { err = vk.RequestUnmarshal("stories.get", &response, params, Params{"extended": false}) @@ -52,7 +52,7 @@ type StoriesGetExtendedResponse struct { // // extended=1 // -// https://vk.com/dev/stories.get +// https://dev.vk.com/method/stories.get func (vk *VK) StoriesGetExtended(params Params) (response StoriesGetExtendedResponse, err error) { err = vk.RequestUnmarshal("stories.get", &response, params, Params{"extended": true}) @@ -69,7 +69,7 @@ type StoriesGetBannedResponse struct { // // extended=0 // -// https://vk.com/dev/stories.getBanned +// https://dev.vk.com/method/stories.getBanned func (vk *VK) StoriesGetBanned(params Params) (response StoriesGetBannedResponse, err error) { err = vk.RequestUnmarshal("stories.getBanned", &response, params, Params{"extended": false}) @@ -87,7 +87,7 @@ type StoriesGetBannedExtendedResponse struct { // // extended=1 // -// https://vk.com/dev/stories.getBanned +// https://dev.vk.com/method/stories.getBanned func (vk *VK) StoriesGetBannedExtended(params Params) (response StoriesGetBannedExtendedResponse, err error) { err = vk.RequestUnmarshal("stories.getBanned", &response, params, Params{"extended": true}) @@ -104,7 +104,7 @@ type StoriesGetByIDResponse struct { // // extended=0 // -// https://vk.com/dev/stories.getById +// https://dev.vk.com/method/stories.getById func (vk *VK) StoriesGetByID(params Params) (response StoriesGetByIDResponse, err error) { err = vk.RequestUnmarshal("stories.getById", &response, params, Params{"extended": false}) @@ -122,7 +122,7 @@ type StoriesGetByIDExtendedResponse struct { // // extended=1 // -// https://vk.com/dev/stories.getById +// https://dev.vk.com/method/stories.getById func (vk *VK) StoriesGetByIDExtended(params Params) (response StoriesGetByIDExtendedResponse, err error) { err = vk.RequestUnmarshal("stories.getById", &response, params, Params{"extended": true}) @@ -138,7 +138,7 @@ type StoriesGetPhotoUploadServerResponse struct { // StoriesGetPhotoUploadServer returns URL for uploading a story with photo. // -// https://vk.com/dev/stories.getPhotoUploadServer +// https://dev.vk.com/method/stories.getPhotoUploadServer func (vk *VK) StoriesGetPhotoUploadServer(params Params) (response StoriesGetPhotoUploadServerResponse, err error) { err = vk.RequestUnmarshal("stories.getPhotoUploadServer", &response, params) return @@ -154,7 +154,7 @@ type StoriesGetRepliesResponse struct { // // extended=0 // -// https://vk.com/dev/stories.getReplies +// https://dev.vk.com/method/stories.getReplies func (vk *VK) StoriesGetReplies(params Params) (response StoriesGetRepliesResponse, err error) { err = vk.RequestUnmarshal("stories.getReplies", &response, params, Params{"extended": false}) @@ -172,7 +172,7 @@ type StoriesGetRepliesExtendedResponse struct { // // extended=1 // -// https://vk.com/dev/stories.getReplies +// https://dev.vk.com/method/stories.getReplies func (vk *VK) StoriesGetRepliesExtended(params Params) (response StoriesGetRepliesExtendedResponse, err error) { err = vk.RequestUnmarshal("stories.getReplies", &response, params, Params{"extended": true}) @@ -184,7 +184,7 @@ type StoriesGetStatsResponse object.StoriesStoryStats // StoriesGetStats return statistics data for the story. // -// https://vk.com/dev/stories.getStats +// https://dev.vk.com/method/stories.getStats func (vk *VK) StoriesGetStats(params Params) (response StoriesGetStatsResponse, err error) { err = vk.RequestUnmarshal("stories.getStats", &response, params) return @@ -199,7 +199,7 @@ type StoriesGetVideoUploadServerResponse struct { // StoriesGetVideoUploadServer allows to receive URL for uploading story with video. // -// https://vk.com/dev/stories.getVideoUploadServer +// https://dev.vk.com/method/stories.getVideoUploadServer func (vk *VK) StoriesGetVideoUploadServer(params Params) (response StoriesGetVideoUploadServerResponse, err error) { err = vk.RequestUnmarshal("stories.getVideoUploadServer", &response, params) return @@ -215,7 +215,7 @@ type StoriesGetViewersResponse struct { // // extended=0 // -// https://vk.com/dev/stories.getViewers +// https://dev.vk.com/method/stories.getViewers func (vk *VK) StoriesGetViewers(params Params) (response StoriesGetViewersResponse, err error) { err = vk.RequestUnmarshal("stories.getViewers", &response, params) @@ -224,7 +224,7 @@ func (vk *VK) StoriesGetViewers(params Params) (response StoriesGetViewersRespon // StoriesHideAllReplies hides all replies in the last 24 hours from the user to current user's stories. // -// https://vk.com/dev/stories.hideAllReplies +// https://dev.vk.com/method/stories.hideAllReplies func (vk *VK) StoriesHideAllReplies(params Params) (response int, err error) { err = vk.RequestUnmarshal("stories.hideAllReplies", &response, params) return @@ -232,7 +232,7 @@ func (vk *VK) StoriesHideAllReplies(params Params) (response int, err error) { // StoriesHideReply hides the reply to the current user's story. // -// https://vk.com/dev/stories.hideReply +// https://dev.vk.com/method/stories.hideReply func (vk *VK) StoriesHideReply(params Params) (response int, err error) { err = vk.RequestUnmarshal("stories.hideReply", &response, params) return @@ -247,7 +247,7 @@ type StoriesSaveResponse struct { // StoriesSave method. // -// https://vk.com/dev/stories.save +// https://dev.vk.com/method/stories.save func (vk *VK) StoriesSave(params Params) (response StoriesSaveResponse, err error) { err = vk.RequestUnmarshal("stories.save", &response, params) return @@ -263,7 +263,7 @@ type StoriesSearchResponse struct { // // extended=0 // -// https://vk.com/dev/stories.search +// https://dev.vk.com/method/stories.search func (vk *VK) StoriesSearch(params Params) (response StoriesSearchResponse, err error) { err = vk.RequestUnmarshal("stories.search", &response, params, Params{"extended": false}) @@ -281,7 +281,7 @@ type StoriesSearchExtendedResponse struct { // // extended=1 // -// https://vk.com/dev/stories.search +// https://dev.vk.com/method/stories.search func (vk *VK) StoriesSearchExtended(params Params) (response StoriesSearchExtendedResponse, err error) { err = vk.RequestUnmarshal("stories.search", &response, params, Params{"extended": true}) @@ -293,7 +293,7 @@ func (vk *VK) StoriesSearchExtended(params Params) (response StoriesSearchExtend // Available for applications with type VK Mini Apps. The default method is // not available to applications. // -// https://vk.com/dev/stories.sendInteraction +// https://dev.vk.com/method/stories.sendInteraction func (vk *VK) StoriesSendInteraction(params Params) (response int, err error) { err = vk.RequestUnmarshal("stories.sendInteraction", &response, params) return @@ -301,7 +301,7 @@ func (vk *VK) StoriesSendInteraction(params Params) (response int, err error) { // StoriesUnbanOwner allows to show stories from hidden sources in current user's feed. // -// https://vk.com/dev/stories.unbanOwner +// https://dev.vk.com/method/stories.unbanOwner func (vk *VK) StoriesUnbanOwner(params Params) (response int, err error) { err = vk.RequestUnmarshal("stories.unbanOwner", &response, params) return diff --git a/api/streaming.go b/api/streaming.go index c3484e69..9fc5f426 100644 --- a/api/streaming.go +++ b/api/streaming.go @@ -8,7 +8,7 @@ type StreamingGetServerURLResponse struct { // StreamingGetServerURL allows to receive data for the connection to Streaming API. // -// https://vk.com/dev/streaming.getServerUrl +// https://dev.vk.com/method/streaming.getServerUrl func (vk *VK) StreamingGetServerURL(params Params) (response StreamingGetServerURLResponse, err error) { err = vk.RequestUnmarshal("streaming.getServerUrl", &response, params) return @@ -21,7 +21,7 @@ type StreamingGetSettingsResponse struct { // StreamingGetSettings allows to receive monthly tier for Streaming API. // -// https://vk.com/dev/streaming.getSettings +// https://dev.vk.com/method/streaming.getSettings func (vk *VK) StreamingGetSettings(params Params) (response StreamingGetSettingsResponse, err error) { err = vk.RequestUnmarshal("streaming.getSettings", &response, params) return @@ -38,7 +38,7 @@ type StreamingGetStatsResponse []struct { // StreamingGetStats allows to receive statistics for prepared and received events in Streaming API. // -// https://vk.com/dev/streaming.getStats +// https://dev.vk.com/method/streaming.getStats func (vk *VK) StreamingGetStats(params Params) (response StreamingGetStatsResponse, err error) { err = vk.RequestUnmarshal("streaming.getStats", &response, params) return @@ -51,7 +51,7 @@ type StreamingGetStemResponse struct { // StreamingGetStem allows to receive the stem of the word. // -// https://vk.com/dev/streaming.getStem +// https://dev.vk.com/method/streaming.getStem func (vk *VK) StreamingGetStem(params Params) (response StreamingGetStemResponse, err error) { err = vk.RequestUnmarshal("streaming.getStem", &response, params) return @@ -59,7 +59,7 @@ func (vk *VK) StreamingGetStem(params Params) (response StreamingGetStemResponse // StreamingSetSettings allows to set monthly tier for Streaming API. // -// https://vk.com/dev/streaming.setSettings +// https://dev.vk.com/method/streaming.setSettings func (vk *VK) StreamingSetSettings(params Params) (response int, err error) { err = vk.RequestUnmarshal("streaming.setSettings", &response, params) diff --git a/api/upload.go b/api/upload.go index b8f08b01..11e68c0d 100644 --- a/api/upload.go +++ b/api/upload.go @@ -712,7 +712,7 @@ type rawUploadStoriesVideo struct { // more than 10 MB. Video format: h264 video, aac audio, // maximum 720х1280, 30fps. // -// https://vk.com/dev/stories.getPhotoUploadServer +// https://dev.vk.com/method/stories.getPhotoUploadServer func (vk *VK) UploadStoriesPhoto(params Params, file io.Reader) (response StoriesSaveResponse, err error) { uploadServer, err := vk.StoriesGetPhotoUploadServer(params) if err != nil { @@ -994,7 +994,7 @@ func (vk *VK) UploadMarusiaPicture(file io.Reader) (response MarusiaSavePictureR // UploadMarusiaAudio uploading audio. // -// https://vk.com/dev/marusia_skill_docs10 +// https://dev.vk.com/ru/marusia/media-api func (vk *VK) UploadMarusiaAudio(file io.Reader) (response MarusiaCreateAudioResponse, err error) { uploadServer, err := vk.MarusiaGetAudioUploadLink(nil) if err != nil { diff --git a/api/users.go b/api/users.go index fdd25ead..f0b341ae 100644 --- a/api/users.go +++ b/api/users.go @@ -9,7 +9,7 @@ type UsersGetResponse []object.UsersUser // UsersGet returns detailed information on users. // -// https://vk.com/dev/users.get +// https://dev.vk.com/method/users.get func (vk *VK) UsersGet(params Params) (response UsersGetResponse, err error) { err = vk.RequestUnmarshal("users.get", &response, params) return @@ -26,7 +26,7 @@ type UsersGetFollowersResponse struct { // // fields=""; // -// https://vk.com/dev/users.getFollowers +// https://dev.vk.com/method/users.getFollowers func (vk *VK) UsersGetFollowers(params Params) (response UsersGetFollowersResponse, err error) { err = vk.RequestUnmarshal("users.getFollowers", &response, params, Params{"fields": ""}) @@ -44,7 +44,7 @@ type UsersGetFollowersFieldsResponse struct { // // fields not empty. // -// https://vk.com/dev/users.getFollowers +// https://dev.vk.com/method/users.getFollowers func (vk *VK) UsersGetFollowersFields(params Params) (response UsersGetFollowersFieldsResponse, err error) { reqParams := make(Params) if v, prs := params["fields"]; v == "" || !prs { @@ -72,7 +72,7 @@ type UsersGetSubscriptionsResponse struct { // // extended=0 // -// https://vk.com/dev/users.getSubscriptions +// https://dev.vk.com/method/users.getSubscriptions // // BUG(SevereCloud): UsersGetSubscriptions bad response with extended=1. func (vk *VK) UsersGetSubscriptions(params Params) (response UsersGetSubscriptionsResponse, err error) { @@ -83,7 +83,7 @@ func (vk *VK) UsersGetSubscriptions(params Params) (response UsersGetSubscriptio // UsersReport reports (submits a complain about) a user. // -// https://vk.com/dev/users.report +// https://dev.vk.com/method/users.report func (vk *VK) UsersReport(params Params) (response int, err error) { err = vk.RequestUnmarshal("users.report", &response, params) return @@ -97,7 +97,7 @@ type UsersSearchResponse struct { // UsersSearch returns a list of users matching the search criteria. // -// https://vk.com/dev/users.search +// https://dev.vk.com/method/users.search func (vk *VK) UsersSearch(params Params) (response UsersSearchResponse, err error) { err = vk.RequestUnmarshal("users.search", &response, params) return diff --git a/api/utils.go b/api/utils.go index 97030e94..2fdebad1 100644 --- a/api/utils.go +++ b/api/utils.go @@ -10,7 +10,7 @@ type UtilsCheckLinkResponse object.UtilsLinkChecked // UtilsCheckLink checks whether a link is blocked in VK. // -// https://vk.com/dev/utils.checkLink +// https://dev.vk.com/method/utils.checkLink func (vk *VK) UtilsCheckLink(params Params) (response UtilsCheckLinkResponse, err error) { err = vk.RequestUnmarshal("utils.checkLink", &response, params) return @@ -18,7 +18,7 @@ func (vk *VK) UtilsCheckLink(params Params) (response UtilsCheckLinkResponse, er // UtilsDeleteFromLastShortened deletes shortened link from user's list. // -// https://vk.com/dev/utils.deleteFromLastShortened +// https://dev.vk.com/method/utils.deleteFromLastShortened func (vk *VK) UtilsDeleteFromLastShortened(params Params) (response int, err error) { err = vk.RequestUnmarshal("utils.deleteFromLastShortened", &response, params) return @@ -32,7 +32,7 @@ type UtilsGetLastShortenedLinksResponse struct { // UtilsGetLastShortenedLinks returns a list of user's shortened links. // -// https://vk.com/dev/utils.getLastShortenedLinks +// https://dev.vk.com/method/utils.getLastShortenedLinks func (vk *VK) UtilsGetLastShortenedLinks(params Params) (response UtilsGetLastShortenedLinksResponse, err error) { err = vk.RequestUnmarshal("utils.getLastShortenedLinks", &response, params) return @@ -45,7 +45,7 @@ type UtilsGetLinkStatsResponse object.UtilsLinkStats // // extended=0 // -// https://vk.com/dev/utils.getLinkStats +// https://dev.vk.com/method/utils.getLinkStats func (vk *VK) UtilsGetLinkStats(params Params) (response UtilsGetLinkStatsResponse, err error) { err = vk.RequestUnmarshal("utils.getLinkStats", &response, params, Params{"extended": false}) @@ -59,7 +59,7 @@ type UtilsGetLinkStatsExtendedResponse object.UtilsLinkStatsExtended // // extended=1 // -// https://vk.com/dev/utils.getLinkStats +// https://dev.vk.com/method/utils.getLinkStats func (vk *VK) UtilsGetLinkStatsExtended(params Params) (response UtilsGetLinkStatsExtendedResponse, err error) { err = vk.RequestUnmarshal("utils.getLinkStats", &response, params, Params{"extended": true}) @@ -68,7 +68,7 @@ func (vk *VK) UtilsGetLinkStatsExtended(params Params) (response UtilsGetLinkSta // UtilsGetServerTime returns the current time of the VK server. // -// https://vk.com/dev/utils.getServerTime +// https://dev.vk.com/method/utils.getServerTime func (vk *VK) UtilsGetServerTime(params Params) (response int, err error) { err = vk.RequestUnmarshal("utils.getServerTime", &response, params) return @@ -79,7 +79,7 @@ type UtilsGetShortLinkResponse object.UtilsShortLink // UtilsGetShortLink allows to receive a link shortened via vk.cc. // -// https://vk.com/dev/utils.getShortLink +// https://dev.vk.com/method/utils.getShortLink func (vk *VK) UtilsGetShortLink(params Params) (response UtilsGetShortLinkResponse, err error) { err = vk.RequestUnmarshal("utils.getShortLink", &response, params) return @@ -114,7 +114,7 @@ func (resp *UtilsResolveScreenNameResponse) DecodeMsgpack(dec *msgpack.Decoder) // UtilsResolveScreenName detects a type of object (e.g., user, community, application) and its ID by screen name. // -// https://vk.com/dev/utils.resolveScreenName +// https://dev.vk.com/method/utils.resolveScreenName func (vk *VK) UtilsResolveScreenName(params Params) (response UtilsResolveScreenNameResponse, err error) { err = vk.RequestUnmarshal("utils.resolveScreenName", &response, params) return diff --git a/api/video.go b/api/video.go index de9eee5a..23735edd 100644 --- a/api/video.go +++ b/api/video.go @@ -6,7 +6,7 @@ import ( // VideoAdd adds a video to a user or community page. // -// https://vk.com/dev/video.add +// https://dev.vk.com/method/video.add func (vk *VK) VideoAdd(params Params) (response int, err error) { err = vk.RequestUnmarshal("video.add", &response, params) return @@ -19,7 +19,7 @@ type VideoAddAlbumResponse struct { // VideoAddAlbum creates an empty album for videos. // -// https://vk.com/dev/video.addAlbum +// https://dev.vk.com/method/video.addAlbum func (vk *VK) VideoAddAlbum(params Params) (response VideoAddAlbumResponse, err error) { err = vk.RequestUnmarshal("video.addAlbum", &response, params) return @@ -27,7 +27,7 @@ func (vk *VK) VideoAddAlbum(params Params) (response VideoAddAlbumResponse, err // VideoAddToAlbum allows you to add a video to the album. // -// https://vk.com/dev/video.addToAlbum +// https://dev.vk.com/method/video.addToAlbum func (vk *VK) VideoAddToAlbum(params Params) (response int, err error) { err = vk.RequestUnmarshal("video.addToAlbum", &response, params) return @@ -35,7 +35,7 @@ func (vk *VK) VideoAddToAlbum(params Params) (response int, err error) { // VideoCreateComment adds a new comment on a video. // -// https://vk.com/dev/video.createComment +// https://dev.vk.com/method/video.createComment func (vk *VK) VideoCreateComment(params Params) (response int, err error) { err = vk.RequestUnmarshal("video.createComment", &response, params) return @@ -43,7 +43,7 @@ func (vk *VK) VideoCreateComment(params Params) (response int, err error) { // VideoDelete deletes a video from a user or community page. // -// https://vk.com/dev/video.delete +// https://dev.vk.com/method/video.delete func (vk *VK) VideoDelete(params Params) (response int, err error) { err = vk.RequestUnmarshal("video.delete", &response, params) return @@ -51,7 +51,7 @@ func (vk *VK) VideoDelete(params Params) (response int, err error) { // VideoDeleteAlbum deletes a video album. // -// https://vk.com/dev/video.deleteAlbum +// https://dev.vk.com/method/video.deleteAlbum func (vk *VK) VideoDeleteAlbum(params Params) (response int, err error) { err = vk.RequestUnmarshal("video.deleteAlbum", &response, params) return @@ -59,7 +59,7 @@ func (vk *VK) VideoDeleteAlbum(params Params) (response int, err error) { // VideoDeleteComment deletes a comment on a video. // -// https://vk.com/dev/video.deleteComment +// https://dev.vk.com/method/video.deleteComment func (vk *VK) VideoDeleteComment(params Params) (response int, err error) { err = vk.RequestUnmarshal("video.deleteComment", &response, params) return @@ -67,7 +67,7 @@ func (vk *VK) VideoDeleteComment(params Params) (response int, err error) { // VideoEdit edits information about a video on a user or community page. // -// https://vk.com/dev/video.edit +// https://dev.vk.com/method/video.edit func (vk *VK) VideoEdit(params Params) (response int, err error) { err = vk.RequestUnmarshal("video.edit", &response, params) return @@ -75,7 +75,7 @@ func (vk *VK) VideoEdit(params Params) (response int, err error) { // VideoEditAlbum edits the title of a video album. // -// https://vk.com/dev/video.editAlbum +// https://dev.vk.com/method/video.editAlbum func (vk *VK) VideoEditAlbum(params Params) (response int, err error) { err = vk.RequestUnmarshal("video.editAlbum", &response, params) return @@ -83,7 +83,7 @@ func (vk *VK) VideoEditAlbum(params Params) (response int, err error) { // VideoEditComment edits the text of a comment on a video. // -// https://vk.com/dev/video.editComment +// https://dev.vk.com/method/video.editComment func (vk *VK) VideoEditComment(params Params) (response int, err error) { err = vk.RequestUnmarshal("video.editComment", &response, params) return @@ -99,7 +99,7 @@ type VideoGetResponse struct { // // extended=0 // -// https://vk.com/dev/video.get +// https://dev.vk.com/method/video.get func (vk *VK) VideoGet(params Params) (response VideoGetResponse, err error) { err = vk.RequestUnmarshal("video.get", &response, params, Params{"extended": false}) @@ -117,7 +117,7 @@ type VideoGetExtendedResponse struct { // // extended=1 // -// https://vk.com/dev/video.get +// https://dev.vk.com/method/video.get func (vk *VK) VideoGetExtended(params Params) (response VideoGetExtendedResponse, err error) { err = vk.RequestUnmarshal("video.get", &response, params, Params{"extended": true}) @@ -129,7 +129,7 @@ type VideoGetAlbumByIDResponse object.VideoVideoAlbumFull // VideoGetAlbumByID returns video album info. // -// https://vk.com/dev/video.getAlbumById +// https://dev.vk.com/method/video.getAlbumById func (vk *VK) VideoGetAlbumByID(params Params) (response VideoGetAlbumByIDResponse, err error) { err = vk.RequestUnmarshal("video.getAlbumById", &response, params) return @@ -145,7 +145,7 @@ type VideoGetAlbumsResponse struct { // // extended=0 // -// https://vk.com/dev/video.getAlbums +// https://dev.vk.com/method/video.getAlbums func (vk *VK) VideoGetAlbums(params Params) (response VideoGetAlbumsResponse, err error) { err = vk.RequestUnmarshal("video.getAlbums", &response, params, Params{"extended": false}) @@ -162,7 +162,7 @@ type VideoGetAlbumsExtendedResponse struct { // // extended=1 // -// https://vk.com/dev/video.getAlbums +// https://dev.vk.com/method/video.getAlbums func (vk *VK) VideoGetAlbumsExtended(params Params) (response VideoGetAlbumsExtendedResponse, err error) { err = vk.RequestUnmarshal("video.getAlbums", &response, params, Params{"extended": true}) @@ -176,7 +176,7 @@ type VideoGetAlbumsByVideoResponse []int // // extended=0 // -// https://vk.com/dev/video.getAlbumsByVideo +// https://dev.vk.com/method/video.getAlbumsByVideo func (vk *VK) VideoGetAlbumsByVideo(params Params) (response VideoGetAlbumsByVideoResponse, err error) { err = vk.RequestUnmarshal("video.getAlbumsByVideo", &response, params, Params{"extended": false}) @@ -193,7 +193,7 @@ type VideoGetAlbumsByVideoExtendedResponse struct { // // extended=1 // -// https://vk.com/dev/video.getAlbumsByVideo +// https://dev.vk.com/method/video.getAlbumsByVideo func (vk *VK) VideoGetAlbumsByVideoExtended(params Params) (response VideoGetAlbumsByVideoExtendedResponse, err error) { err = vk.RequestUnmarshal("video.getAlbumsByVideo", &response, params, Params{"extended": true}) @@ -210,7 +210,7 @@ type VideoGetCommentsResponse struct { // // extended=0 // -// https://vk.com/dev/video.getComments +// https://dev.vk.com/method/video.getComments func (vk *VK) VideoGetComments(params Params) (response VideoGetCommentsResponse, err error) { err = vk.RequestUnmarshal("video.getComments", &response, params, Params{"extended": false}) @@ -228,7 +228,7 @@ type VideoGetCommentsExtendedResponse struct { // // extended=1 // -// https://vk.com/dev/video.getComments +// https://dev.vk.com/method/video.getComments func (vk *VK) VideoGetCommentsExtended(params Params) (response VideoGetCommentsExtendedResponse, err error) { err = vk.RequestUnmarshal("video.getComments", &response, params, Params{"extended": true}) @@ -240,7 +240,7 @@ type VideoLiveGetCategoriesResponse []object.VideoLiveCategory // VideoLiveGetCategories method. // -// https://vk.com/dev/video.liveGetCategories +// https://dev.vk.com/method/video.liveGetCategories func (vk *VK) VideoLiveGetCategories(params Params) (response VideoLiveGetCategoriesResponse, err error) { err = vk.RequestUnmarshal("video.liveGetCategories", &response, params) return @@ -248,7 +248,7 @@ func (vk *VK) VideoLiveGetCategories(params Params) (response VideoLiveGetCatego // VideoRemoveFromAlbum allows you to remove the video from the album. // -// https://vk.com/dev/video.removeFromAlbum +// https://dev.vk.com/method/video.removeFromAlbum func (vk *VK) VideoRemoveFromAlbum(params Params) (response int, err error) { err = vk.RequestUnmarshal("video.removeFromAlbum", &response, params) return @@ -256,7 +256,7 @@ func (vk *VK) VideoRemoveFromAlbum(params Params) (response int, err error) { // VideoReorderAlbums reorders the album in the list of user video albums. // -// https://vk.com/dev/video.reorderAlbums +// https://dev.vk.com/method/video.reorderAlbums func (vk *VK) VideoReorderAlbums(params Params) (response int, err error) { err = vk.RequestUnmarshal("video.reorderAlbums", &response, params) return @@ -264,7 +264,7 @@ func (vk *VK) VideoReorderAlbums(params Params) (response int, err error) { // VideoReorderVideos reorders the video in the video album. // -// https://vk.com/dev/video.reorderVideos +// https://dev.vk.com/method/video.reorderVideos func (vk *VK) VideoReorderVideos(params Params) (response int, err error) { err = vk.RequestUnmarshal("video.reorderVideos", &response, params) return @@ -272,7 +272,7 @@ func (vk *VK) VideoReorderVideos(params Params) (response int, err error) { // VideoReport reports (submits a complaint about) a video. // -// https://vk.com/dev/video.report +// https://dev.vk.com/method/video.report func (vk *VK) VideoReport(params Params) (response int, err error) { err = vk.RequestUnmarshal("video.report", &response, params) return @@ -280,7 +280,7 @@ func (vk *VK) VideoReport(params Params) (response int, err error) { // VideoReportComment reports (submits a complaint about) a comment on a video. // -// https://vk.com/dev/video.reportComment +// https://dev.vk.com/method/video.reportComment func (vk *VK) VideoReportComment(params Params) (response int, err error) { err = vk.RequestUnmarshal("video.reportComment", &response, params) return @@ -288,7 +288,7 @@ func (vk *VK) VideoReportComment(params Params) (response int, err error) { // VideoRestore restores a previously deleted video. // -// https://vk.com/dev/video.restore +// https://dev.vk.com/method/video.restore func (vk *VK) VideoRestore(params Params) (response int, err error) { err = vk.RequestUnmarshal("video.restore", &response, params) return @@ -296,7 +296,7 @@ func (vk *VK) VideoRestore(params Params) (response int, err error) { // VideoRestoreComment restores a previously deleted comment on a video. // -// https://vk.com/dev/video.restoreComment +// https://dev.vk.com/method/video.restoreComment func (vk *VK) VideoRestoreComment(params Params) (response int, err error) { err = vk.RequestUnmarshal("video.restoreComment", &response, params) return @@ -307,7 +307,7 @@ type VideoSaveResponse object.VideoSaveResult // VideoSave returns a server address (required for upload) and video data. // -// https://vk.com/dev/video.save +// https://dev.vk.com/method/video.save func (vk *VK) VideoSave(params Params) (response VideoSaveResponse, err error) { err = vk.RequestUnmarshal("video.save", &response, params) return @@ -323,7 +323,7 @@ type VideoSearchResponse struct { // // extended=0 // -// https://vk.com/dev/video.search +// https://dev.vk.com/method/video.search func (vk *VK) VideoSearch(params Params) (response VideoSearchResponse, err error) { err = vk.RequestUnmarshal("video.search", &response, params, Params{"extended": false}) @@ -341,7 +341,7 @@ type VideoSearchExtendedResponse struct { // // extended=1 // -// https://vk.com/dev/video.search +// https://dev.vk.com/method/video.search func (vk *VK) VideoSearchExtended(params Params) (response VideoSearchExtendedResponse, err error) { err = vk.RequestUnmarshal("video.search", &response, params, Params{"extended": true}) @@ -353,7 +353,7 @@ type VideoStartStreamingResponse object.VideoLive // VideoStartStreaming method. // -// https://vk.com/dev/video.startStreaming +// https://dev.vk.com/method/video.startStreaming func (vk *VK) VideoStartStreaming(params Params) (response VideoStartStreamingResponse, err error) { err = vk.RequestUnmarshal("video.startStreaming", &response, params) return @@ -366,7 +366,7 @@ type VideoStopStreamingResponse struct { // VideoStopStreaming method. // -// https://vk.com/dev/video.stopStreaming +// https://dev.vk.com/method/video.stopStreaming func (vk *VK) VideoStopStreaming(params Params) (response VideoStopStreamingResponse, err error) { err = vk.RequestUnmarshal("video.stopStreaming", &response, params) return diff --git a/api/wall.go b/api/wall.go index 81dab18a..9be52dcd 100644 --- a/api/wall.go +++ b/api/wall.go @@ -6,7 +6,7 @@ import ( // WallCheckCopyrightLink method. // -// https://vk.com/dev/wall.checkCopyrightLink +// https://dev.vk.com/method/wall.checkCopyrightLink func (vk *VK) WallCheckCopyrightLink(params Params) (response int, err error) { err = vk.RequestUnmarshal("wall.checkCopyrightLink", &response, params) return @@ -14,7 +14,7 @@ func (vk *VK) WallCheckCopyrightLink(params Params) (response int, err error) { // WallCloseComments turn off post commenting. // -// https://vk.com/dev/wall.closeComments +// https://dev.vk.com/method/wall.closeComments func (vk *VK) WallCloseComments(params Params) (response int, err error) { err = vk.RequestUnmarshal("wall.closeComments", &response, params) return @@ -28,7 +28,7 @@ type WallCreateCommentResponse struct { // WallCreateComment adds a comment to a post on a user wall or community wall. // -// https://vk.com/dev/wall.createComment +// https://dev.vk.com/method/wall.createComment func (vk *VK) WallCreateComment(params Params) (response WallCreateCommentResponse, err error) { err = vk.RequestUnmarshal("wall.createComment", &response, params) return @@ -36,7 +36,7 @@ func (vk *VK) WallCreateComment(params Params) (response WallCreateCommentRespon // WallDelete deletes a post from a user wall or community wall. // -// https://vk.com/dev/wall.delete +// https://dev.vk.com/method/wall.delete func (vk *VK) WallDelete(params Params) (response int, err error) { err = vk.RequestUnmarshal("wall.delete", &response, params) return @@ -44,7 +44,7 @@ func (vk *VK) WallDelete(params Params) (response int, err error) { // WallDeleteComment deletes a comment on a post on a user wall or community wall. // -// https://vk.com/dev/wall.deleteComment +// https://dev.vk.com/method/wall.deleteComment func (vk *VK) WallDeleteComment(params Params) (response int, err error) { err = vk.RequestUnmarshal("wall.deleteComment", &response, params) return @@ -57,7 +57,7 @@ type WallEditResponse struct { // WallEdit edits a post on a user wall or community wall. // -// https://vk.com/dev/wall.edit +// https://dev.vk.com/method/wall.edit func (vk *VK) WallEdit(params Params) (response WallEditResponse, err error) { err = vk.RequestUnmarshal("wall.edit", &response, params) return @@ -65,7 +65,7 @@ func (vk *VK) WallEdit(params Params) (response WallEditResponse, err error) { // WallEditAdsStealth allows to edit hidden post. // -// https://vk.com/dev/wall.editAdsStealth +// https://dev.vk.com/method/wall.editAdsStealth func (vk *VK) WallEditAdsStealth(params Params) (response int, err error) { err = vk.RequestUnmarshal("wall.editAdsStealth", &response, params) return @@ -73,7 +73,7 @@ func (vk *VK) WallEditAdsStealth(params Params) (response int, err error) { // WallEditComment edits a comment on a user wall or community wall. // -// https://vk.com/dev/wall.editComment +// https://dev.vk.com/method/wall.editComment func (vk *VK) WallEditComment(params Params) (response int, err error) { err = vk.RequestUnmarshal("wall.editComment", &response, params) return @@ -89,7 +89,7 @@ type WallGetResponse struct { // // extended=0 // -// https://vk.com/dev/wall.get +// https://dev.vk.com/method/wall.get func (vk *VK) WallGet(params Params) (response WallGetResponse, err error) { err = vk.RequestUnmarshal("wall.get", &response, params, Params{"extended": false}) @@ -107,7 +107,7 @@ type WallGetExtendedResponse struct { // // extended=1 // -// https://vk.com/dev/wall.get +// https://dev.vk.com/method/wall.get func (vk *VK) WallGetExtended(params Params) (response WallGetExtendedResponse, err error) { err = vk.RequestUnmarshal("wall.get", &response, params, Params{"extended": true}) @@ -121,7 +121,7 @@ type WallGetByIDResponse []object.WallWallpost // // extended=0 // -// https://vk.com/dev/wall.getById +// https://dev.vk.com/method/wall.getById func (vk *VK) WallGetByID(params Params) (response WallGetByIDResponse, err error) { err = vk.RequestUnmarshal("wall.getById", &response, params, Params{"extended": false}) @@ -138,7 +138,7 @@ type WallGetByIDExtendedResponse struct { // // extended=1 // -// https://vk.com/dev/wall.getById +// https://dev.vk.com/method/wall.getById func (vk *VK) WallGetByIDExtended(params Params) (response WallGetByIDExtendedResponse, err error) { err = vk.RequestUnmarshal("wall.getById", &response, params, Params{"extended": true}) @@ -158,7 +158,7 @@ type WallGetCommentResponse struct { // // extended=0 // -// https://vk.com/dev/wall.getComment +// https://dev.vk.com/method/wall.getComment func (vk *VK) WallGetComment(params Params) (response WallGetCommentResponse, err error) { err = vk.RequestUnmarshal("wall.getComment", &response, params, Params{"extended": false}) @@ -181,7 +181,7 @@ type WallGetCommentExtendedResponse struct { // // extended=1 // -// https://vk.com/dev/wall.getComment +// https://dev.vk.com/method/wall.getComment func (vk *VK) WallGetCommentExtended(params Params) (response WallGetCommentExtendedResponse, err error) { err = vk.RequestUnmarshal("wall.getComment", &response, params, Params{"extended": true}) @@ -202,7 +202,7 @@ type WallGetCommentsResponse struct { // // extended=0 // -// https://vk.com/dev/wall.getComments +// https://dev.vk.com/method/wall.getComments func (vk *VK) WallGetComments(params Params) (response WallGetCommentsResponse, err error) { err = vk.RequestUnmarshal("wall.getComments", &response, params, Params{"extended": false}) @@ -224,7 +224,7 @@ type WallGetCommentsExtendedResponse struct { // // extended=1 // -// https://vk.com/dev/wall.getComments +// https://dev.vk.com/method/wall.getComments func (vk *VK) WallGetCommentsExtended(params Params) (response WallGetCommentsExtendedResponse, err error) { err = vk.RequestUnmarshal("wall.getComments", &response, params, Params{"extended": true}) @@ -239,7 +239,7 @@ type WallGetRepostsResponse struct { // WallGetReposts returns information about reposts of a post on user wall or community wall. // -// https://vk.com/dev/wall.getReposts +// https://dev.vk.com/method/wall.getReposts func (vk *VK) WallGetReposts(params Params) (response WallGetRepostsResponse, err error) { err = vk.RequestUnmarshal("wall.getReposts", &response, params) return @@ -247,7 +247,7 @@ func (vk *VK) WallGetReposts(params Params) (response WallGetRepostsResponse, er // WallOpenComments includes posting comments. // -// https://vk.com/dev/wall.openComments +// https://dev.vk.com/method/wall.openComments func (vk *VK) WallOpenComments(params Params) (response int, err error) { err = vk.RequestUnmarshal("wall.openComments", &response, params) return @@ -255,7 +255,7 @@ func (vk *VK) WallOpenComments(params Params) (response int, err error) { // WallPin pins the post on wall. // -// https://vk.com/dev/wall.pin +// https://dev.vk.com/method/wall.pin func (vk *VK) WallPin(params Params) (response int, err error) { err = vk.RequestUnmarshal("wall.pin", &response, params) return @@ -268,7 +268,7 @@ type WallPostResponse struct { // WallPost adds a new post on a user wall or community wall.Can also be used to publish suggested or scheduled posts. // -// https://vk.com/dev/wall.post +// https://dev.vk.com/method/wall.post func (vk *VK) WallPost(params Params) (response WallPostResponse, err error) { err = vk.RequestUnmarshal("wall.post", &response, params) return @@ -283,7 +283,7 @@ type WallPostAdsStealthResponse struct { // not be shown on the community's wall and can be used for creating // an ad with type "Community post". // -// https://vk.com/dev/wall.postAdsStealth +// https://dev.vk.com/method/wall.postAdsStealth func (vk *VK) WallPostAdsStealth(params Params) (response WallPostAdsStealthResponse, err error) { err = vk.RequestUnmarshal("wall.postAdsStealth", &response, params) return @@ -291,7 +291,7 @@ func (vk *VK) WallPostAdsStealth(params Params) (response WallPostAdsStealthResp // WallReportComment reports (submits a complaint about) a comment on a post on a user wall or community wall. // -// https://vk.com/dev/wall.reportComment +// https://dev.vk.com/method/wall.reportComment func (vk *VK) WallReportComment(params Params) (response int, err error) { err = vk.RequestUnmarshal("wall.reportComment", &response, params) return @@ -299,7 +299,7 @@ func (vk *VK) WallReportComment(params Params) (response int, err error) { // WallReportPost reports (submits a complaint about) a post on a user wall or community wall. // -// https://vk.com/dev/wall.reportPost +// https://dev.vk.com/method/wall.reportPost func (vk *VK) WallReportPost(params Params) (response int, err error) { err = vk.RequestUnmarshal("wall.reportPost", &response, params) return @@ -317,7 +317,7 @@ type WallRepostResponse struct { // WallRepost reposts ( copies) an object to a user wall or community wall. // -// https://vk.com/dev/wall.repost +// https://dev.vk.com/method/wall.repost func (vk *VK) WallRepost(params Params) (response WallRepostResponse, err error) { err = vk.RequestUnmarshal("wall.repost", &response, params) return @@ -325,7 +325,7 @@ func (vk *VK) WallRepost(params Params) (response WallRepostResponse, err error) // WallRestore restores a post deleted from a user wall or community wall. // -// https://vk.com/dev/wall.restore +// https://dev.vk.com/method/wall.restore func (vk *VK) WallRestore(params Params) (response int, err error) { err = vk.RequestUnmarshal("wall.restore", &response, params) return @@ -333,7 +333,7 @@ func (vk *VK) WallRestore(params Params) (response int, err error) { // WallRestoreComment restores a comment deleted from a user wall or community wall. // -// https://vk.com/dev/wall.restoreComment +// https://dev.vk.com/method/wall.restoreComment func (vk *VK) WallRestoreComment(params Params) (response int, err error) { err = vk.RequestUnmarshal("wall.restoreComment", &response, params) return @@ -349,7 +349,7 @@ type WallSearchResponse struct { // // extended=0 // -// https://vk.com/dev/wall.search +// https://dev.vk.com/method/wall.search func (vk *VK) WallSearch(params Params) (response WallSearchResponse, err error) { err = vk.RequestUnmarshal("wall.search", &response, params, Params{"extended": false}) @@ -367,7 +367,7 @@ type WallSearchExtendedResponse struct { // // extended=1 // -// https://vk.com/dev/wall.search +// https://dev.vk.com/method/wall.search func (vk *VK) WallSearchExtended(params Params) (response WallSearchExtendedResponse, err error) { err = vk.RequestUnmarshal("wall.search", &response, params, Params{"extended": true}) @@ -376,7 +376,7 @@ func (vk *VK) WallSearchExtended(params Params) (response WallSearchExtendedResp // WallUnpin unpins the post on wall. // -// https://vk.com/dev/wall.unpin +// https://dev.vk.com/method/wall.unpin func (vk *VK) WallUnpin(params Params) (response int, err error) { err = vk.RequestUnmarshal("wall.unpin", &response, params) return diff --git a/api/widgets.go b/api/widgets.go index a5f83f0c..9dc276ff 100644 --- a/api/widgets.go +++ b/api/widgets.go @@ -12,7 +12,7 @@ type WidgetsGetCommentsResponse struct { // WidgetsGetComments gets a list of comments for the page added through the Comments widget. // -// https://vk.com/dev/widgets.getComments +// https://dev.vk.com/method/widgets.getComments func (vk *VK) WidgetsGetComments(params Params) (response WidgetsGetCommentsResponse, err error) { err = vk.RequestUnmarshal("widgets.getComments", &response, params) return @@ -26,7 +26,7 @@ type WidgetsGetPagesResponse struct { // WidgetsGetPages gets a list of application/site pages where the Comments widget or Like widget is installed. // -// https://vk.com/dev/widgets.getPages +// https://dev.vk.com/method/widgets.getPages func (vk *VK) WidgetsGetPages(params Params) (response WidgetsGetPagesResponse, err error) { err = vk.RequestUnmarshal("widgets.getPages", &response, params) return diff --git a/callback/README.md b/callback/README.md index 2146c374..f287755e 100644 --- a/callback/README.md +++ b/callback/README.md @@ -1,7 +1,7 @@ # Callback API [![PkgGoDev](https://pkg.go.dev/badge/github.com/SevereCloud/vksdk/v2/callback)](https://pkg.go.dev/github.com/SevereCloud/vksdk/v2/callback) -[![VK](https://img.shields.io/badge/developers-%234a76a8.svg?logo=VK&logoColor=white)](https://vk.com/dev/callback_api) +[![VK](https://img.shields.io/badge/developers-%234a76a8.svg?logo=VK&logoColor=white)](https://dev.vk.com/ru/api/callback/getting-started) ## Подключение Callback API @@ -41,7 +41,7 @@ cb.MessageNew(func(ctx context.Context, obj events.MessageNewObject) { }) ``` -Полный список событий Вы найдёте [в документации](https://vk.com/dev/groups_events) +Полный список событий Вы найдёте [в документации](https://dev.vk.com/ru/api/community-events/json-schema) ### Контекст diff --git a/callback/callback.go b/callback/callback.go index 84130899..3b1c71e6 100644 --- a/callback/callback.go +++ b/callback/callback.go @@ -1,7 +1,7 @@ /* Package callback implements Callback API. -See more https://vk.com/dev/callback_api +See more https://dev.vk.com/ru/api/callback/getting-started */ package callback // import "github.com/SevereCloud/vksdk/v2/callback" diff --git a/events/events.go b/events/events.go index babc23f6..7acd27a2 100644 --- a/events/events.go +++ b/events/events.go @@ -1,7 +1,7 @@ /* Package events for community events handling. -See more https://vk.com/dev/groups_events +See more https://dev.vk.com/ru/api/community-events/json-schema */ package events // import "github.com/SevereCloud/vksdk/v2/events" diff --git a/games/doc.go b/games/doc.go index 3b4fc5d4..4421ba14 100644 --- a/games/doc.go +++ b/games/doc.go @@ -1,6 +1,6 @@ /* Package games for VK. -See more https://vk.com/dev/games +See more https://dev.vk.com/ru/games/overview */ package games diff --git a/longpoll-bot/README.md b/longpoll-bot/README.md index 8d8be2a0..21c47d90 100644 --- a/longpoll-bot/README.md +++ b/longpoll-bot/README.md @@ -1,7 +1,7 @@ # Bots Long Poll API [![PkgGoDev](https://pkg.go.dev/badge/github.com/SevereCloud/vksdk/v2/longpoll-bot)](https://pkg.go.dev/github.com/SevereCloud/vksdk/v2/longpoll-bot) -[![VK](https://img.shields.io/badge/developers-%234a76a8.svg?logo=VK&logoColor=white)](https://vk.com/dev/bots_longpoll) +[![VK](https://img.shields.io/badge/developers-%234a76a8.svg?logo=VK&logoColor=white)](https://dev.vk.com/ru/api/bots-long-poll/getting-started) ## Подключение Bots Long Poll API @@ -71,7 +71,7 @@ lp.FullResponse(func(resp object.LongPollBotResponse) { }) ``` -Полный список событий Вы найдёте [в документации](https://vk.com/dev/groups_events) +Полный список событий Вы найдёте [в документации](https://dev.vk.com/ru/api/community-events/json-schema) ### Контекст diff --git a/longpoll-bot/longpoll.go b/longpoll-bot/longpoll.go index 6cde105a..6ca2923d 100644 --- a/longpoll-bot/longpoll.go +++ b/longpoll-bot/longpoll.go @@ -1,7 +1,7 @@ /* Package longpoll implements Bots Long Poll API. -See more https://vk.com/dev/bots_longpoll +See more https://dev.vk.com/ru/api/bots-long-poll/getting-started */ package longpoll // import "github.com/SevereCloud/vksdk/v2/longpoll-bot" diff --git a/longpoll-user/README.md b/longpoll-user/README.md index 53933f20..970992cc 100644 --- a/longpoll-user/README.md +++ b/longpoll-user/README.md @@ -1,7 +1,7 @@ # User Long Poll API [![PkgGoDev](https://pkg.go.dev/badge/github.com/SevereCloud/vksdk/v2/longpoll-user)](https://pkg.go.dev/github.com/SevereCloud/vksdk/v2/longpoll-user) -[![VK](https://img.shields.io/badge/developers-%234a76a8.svg?logo=VK&logoColor=white)](https://vk.com/dev/using_longpoll) +[![VK](https://img.shields.io/badge/developers-%234a76a8.svg?logo=VK&logoColor=white)](https://dev.vk.com/ru/api/user-long-poll/getting-started) ## Подключение User Long Poll API @@ -74,7 +74,7 @@ lp.FullResponse(func(resp object.LongPollResponse) { }) ``` -Полный список событий и их структуру Вы найдёте [в документации](https://vk.com/dev/using_longpoll?f=3.%2B%D0%A1%D1%82%D1%80%D1%83%D0%BA%D1%82%D1%83%D1%80%D0%B0%2B%D1%81%D0%BE%D0%B1%D1%8B%D1%82%D0%B8%D0%B9) +Полный список событий и их структуру Вы найдёте [в документации](https://dev.vk.com/ru/api/user-long-poll/getting-started?f=3.%2B%D0%A1%D1%82%D1%80%D1%83%D0%BA%D1%82%D1%83%D1%80%D0%B0%2B%D1%81%D0%BE%D0%B1%D1%8B%D1%82%D0%B8%D0%B9) ### Запуск и остановка diff --git a/longpoll-user/longpoll.go b/longpoll-user/longpoll.go index a116398b..3594a75b 100644 --- a/longpoll-user/longpoll.go +++ b/longpoll-user/longpoll.go @@ -48,7 +48,7 @@ Wrapper for v3 https://pkg.go.dev/github.com/SevereCloud/vksdk/v2/longpoll-user/ TODO: write about lp.Run() and lp.Shutdown() -VK documentation https://vk.com/dev/using_longpoll +VK documentation https://dev.vk.com/ru/api/user-long-poll/getting-started */ package longpoll // import "github.com/SevereCloud/vksdk/v2/longpoll-user" diff --git a/longpoll-user/v3/README.md b/longpoll-user/v3/README.md index df59051d..03e6ca5d 100644 --- a/longpoll-user/v3/README.md +++ b/longpoll-user/v3/README.md @@ -1,7 +1,7 @@ # Обработчик User Long Poll API v3 [![PkgGoDev](https://pkg.go.dev/badge/github.com/SevereCloud/vksdk/v2/longpoll-user/v3)](https://pkg.go.dev/github.com/SevereCloud/vksdk/v2/longpoll-user/v3) -[![VK](https://img.shields.io/badge/developers-%234a76a8.svg?logo=VK&logoColor=white)](https://vk.com/dev/using_longpoll) +[![VK](https://img.shields.io/badge/developers-%234a76a8.svg?logo=VK&logoColor=white)](https://dev.vk.com/ru/api/user-long-poll/getting-started) Данный модуль поддерживает версию **3**. diff --git a/longpoll-user/v3/doc.go b/longpoll-user/v3/doc.go index 33bbbb7e..122f686c 100644 --- a/longpoll-user/v3/doc.go +++ b/longpoll-user/v3/doc.go @@ -7,6 +7,6 @@ Package wrapper implement User Long Poll API wrapper v3. fmt.Printf("4 wrapper.NewMessage: %v\n", m) }) -VK documentation https://vk.com/dev/using_longpoll +VK documentation https://dev.vk.com/ru/api/user-long-poll/getting-started */ package wrapper // import "github.com/SevereCloud/vksdk/v2/longpoll-user/v3" diff --git a/longpoll-user/v3/extra.go b/longpoll-user/v3/extra.go index e59b742a..d7d90962 100644 --- a/longpoll-user/v3/extra.go +++ b/longpoll-user/v3/extra.go @@ -121,7 +121,7 @@ type LongPollAttachments map[string]interface{} // ExtraFields for a message object. // -// https://vk.com/dev/using_longpoll_3, point 3.1 +// https://dev.vk.com/ru/api/user-long-poll/getting-started_3, point 3.1 type ExtraFields struct { PeerID int // destination ID Timestamp time.Time // message sent time diff --git a/marusia/deeplink.go b/marusia/deeplink.go index 2e88e237..b07af6c6 100644 --- a/marusia/deeplink.go +++ b/marusia/deeplink.go @@ -9,7 +9,7 @@ import ( // CreateDeepLink returns a link to go to the skill, as well as transfer data to your skill. // -// See https://vk.com/dev/marusia_skill_docs15 +// See https://dev.vk.com/ru/marusia/deep-link func CreateDeepLink(marusiaID string, params map[string]string) string { query := url.Values{} query.Add("event_name", "external."+marusiaID+".start") diff --git a/marusia/skill.go b/marusia/skill.go index 310518ee..661940b3 100644 --- a/marusia/skill.go +++ b/marusia/skill.go @@ -6,7 +6,7 @@ Package marusia для создания скилла Маруси. а разработчики и владельцы бизнеса смогут сделать голосовой интерфейс для своих продуктов. -Документация: https://vk.com/dev/marusia_skill_docs +Документация: https://dev.vk.com/ru/marusia/getting-started # Регистрация приложения ВКонтакте @@ -418,7 +418,7 @@ type Push struct { // Важно: в плейлисте могут содержаться объекты только с одинаковым // source_type, т.е не может быть плейлиста, состоящего из аудио из вк и получаемых по url. // -// https://vk.com/dev/marusia_skill_docs11 +// https://dev.vk.com/ru/marusia/player type AudioPlayer struct { // Номер начального аудио (нумерация с 0). SeekTrack int `json:"seek_track,omitempty"` @@ -593,7 +593,7 @@ func SpeakerAudioVKID(id string) string { // SpeakerAudio произносимый Марусей текст можно разнообразить звуковыми // эффектами, которые входят в её библиотеку звуков. // -// Список звуков можно найти на странице https://vk.com/dev/marusia_skill_docs4 +// Список звуков можно найти на странице https://dev.vk.com/ru/marusia/sound func SpeakerAudio(name string) string { return fmt.Sprintf(``, strconv.Quote(name)) } diff --git a/object/messages.go b/object/messages.go index 6feed30a..997482ad 100644 --- a/object/messages.go +++ b/object/messages.go @@ -357,7 +357,7 @@ func (eventData MessagesEventData) ToJSON() string { // MessagesTemplate struct. // -// https://vk.com/dev/bot_docs_templates +// https://dev.vk.com/ru/api/bots/development/messages type MessagesTemplate struct { Type string `json:"type"` Elements []MessagesTemplateElement `json:"elements"` @@ -404,7 +404,7 @@ type MessageContentSourceURL struct { // MessageContentSource struct. // -// https://vk.com/dev/bots_docs_2 +// https://dev.vk.com/ru/api/bots/development/messages type MessageContentSource struct { Type string `json:"type"` MessageContentSourceMessage // type message diff --git a/object/object.go b/object/object.go index 78f92480..6b580b43 100644 --- a/object/object.go +++ b/object/object.go @@ -1,7 +1,7 @@ /* Package object contains objects for VK. -See more https://vk.com/dev/objects +See more https://dev.vk.com/ru/reference/objects */ package object // import "github.com/SevereCloud/vksdk/v2/object" diff --git a/object/pages.go b/object/pages.go index 616830cc..326550b3 100644 --- a/object/pages.go +++ b/object/pages.go @@ -75,7 +75,7 @@ type PagesWikipageFull struct { // PagesWikipageHistory struct. // -// BUG(VK): https://vk.com/dev/pages.getHistory edited and date. +// BUG(VK): https://dev.vk.com/method/pages.getHistory edited and date. type PagesWikipageHistory struct { Date int `json:"date"` // Date when the page has been edited in Unixtime EditorID int `json:"editor_id"` // Last editor ID diff --git a/object/stories.go b/object/stories.go index 5de9494c..9df6760c 100644 --- a/object/stories.go +++ b/object/stories.go @@ -186,7 +186,7 @@ type StoriesFeedItem struct { // The sticker object is pasted by the developer on the client himself, only // coordinates are transmitted to the server. // -// https://vk.com/dev/objects/clickable_stickers +// https://dev.vk.com/ru/reference/objects/clickable-sticker type StoriesClickableStickers struct { OriginalWidth int `json:"original_width"` OriginalHeight int `json:"original_height"` diff --git a/payments/payments.go b/payments/payments.go index 5475ba12..a708258f 100644 --- a/payments/payments.go +++ b/payments/payments.go @@ -1,14 +1,14 @@ /* Package payments implements Payments API. -Documentation: https://vk.com/dev/payments +Documentation: https://dev.vk.com/ru/api/payments/getting-started With Payments API applications can sell virtual products to users or provide them with services using VK internal currency — votes. # Processing payment notifications -Documentation: https://vk.com/dev/payments_callbacks +Documentation: https://dev.vk.com/ru/api/payments/notifications/overview Notifications are sent by the payment system server to the callback URL indicated in app settings, according to HTTP or HTTPS protocol, depending on @@ -57,7 +57,7 @@ time. # Test Mode -Documentation: https://vk.com/dev/payments_testmode +Documentation: https://dev.vk.com/ru/api/payments/getting-started Test mode allows for testing an app's functionality for buying goods and transferring votes without a real transfer of votes. @@ -171,22 +171,22 @@ type NotificationType string const ( // For acquiring product information. // - // https://vk.com/dev/payments_getitem + // https://dev.vk.com/ru/api/payments/notifications/get-item GetItem NotificationType = "get_item" // For changing the order’s status. // - // https://vk.com/dev/payments_status + // https://dev.vk.com/ru/payments/notifications/order-status-change OrderStatusChange NotificationType = "order_status_change" // For receiving subscription information. // - // https://vk.com/dev/payments_getsubscription + // https://dev.vk.com/ru/api/payments/notifications/get-subscription GetSubscription NotificationType = "get_subscription" // For changing a subscription’s status. // - // https://vk.com/dev/payments_subscriptionstatus + // https://dev.vk.com/ru/api/payments/notifications/subscription-status-change SubscriptionStatusChange NotificationType = "subscription_status_change" ) @@ -194,7 +194,7 @@ const ( // // In test mode, the suffix '_test' is added to the notification_type parameter. // -// See https://vk.com/dev/payments_testmode +// See https://dev.vk.com/ru/api/payments/getting-started func (t NotificationType) Test() NotificationType { return t + "_test" } @@ -222,7 +222,7 @@ type Notification struct { // Errors 100-999 are specified by the app. Such errors always include an // error description. // -// See https://vk.com/dev/payments_errors +// See https://dev.vk.com/ru/api/payments/notifications/overview const ( // Common error. // @@ -269,7 +269,7 @@ const ( // If the error is temporary, a notification will be resent after some time // and the user will wait for the process is completed. // -// See https://vk.com/dev/payments_errors +// See https://dev.vk.com/ru/api/payments/notifications/overview type Error struct { // Numerical code error Code int `json:"error_code"` @@ -396,7 +396,7 @@ type GetItemResponse struct { // expiration period, following requests for such product will not be run // within the given time. // -// See https://vk.com/dev/payments_getitem +// See https://dev.vk.com/ru/api/payments/notifications/get-item func (cb *Callback) OnGetItem(f func(e GetItemRequest) (*GetItemResponse, *Error)) { cb.getItem = f } @@ -451,7 +451,7 @@ type OrderStatusChangeRequest struct { // Cost in application currency. // - // See https://vk.com/dev/payments_offers + // See https://dev.vk.com/ru/api/payments/getting-started ItemCurrencyAmount string `schema:"item_currency_amount"` // Product discount. @@ -486,7 +486,7 @@ type OrderStatusChangeResponse struct { // new order, you just send the same reply as before (by keeping order_id and // checking whether such notification was received). // -// See https://vk.com/dev/payments_status +// See https://dev.vk.com/ru/payments/notifications/order-status-change func (cb *Callback) OnOrderStatusChange(f func(e OrderStatusChangeRequest) (*OrderStatusChangeResponse, *Error)) { cb.orderStatusChange = f } @@ -565,7 +565,7 @@ type GetSubscriptionResponse struct { // OnGetSubscription is sent when a subscription dialog window is opened via // application. // -// See https://vk.com/dev/payments_getsubscription +// See https://dev.vk.com/ru/api/payments/notifications/get-subscription func (cb *Callback) OnGetSubscription(f func(e GetSubscriptionRequest) (*GetSubscriptionResponse, *Error)) { cb.getSubscription = f } @@ -644,7 +644,7 @@ type SubscriptionStatusChangeResponse struct { // existing subscription is the one renewed, and there is no need to create a // new one. // -// See https://vk.com/dev/payments_subscriptionstatus +// See https://dev.vk.com/ru/api/payments/notifications/subscription-status-change func (cb *Callback) OnSubscriptionStatusChange(f func(e SubscriptionStatusChangeRequest) ( *SubscriptionStatusChangeResponse, *Error, diff --git a/streaming/errors.go b/streaming/errors.go index a450ccce..2e402e2e 100644 --- a/streaming/errors.go +++ b/streaming/errors.go @@ -13,7 +13,7 @@ func (e ErrorType) Error() string { return fmt.Sprintf("streaming: error with code %d", e) } -// Error codes. See https://vk.com/dev/streaming_api_docs_2 +// Error codes. See https://dev.vk.com/ru/api/streaming/getting-started_2 const ( ErrNoType ErrorType = 0 // NoType error // Settings for updating the connection to WebSocket are incorrectly diff --git a/streaming/streaming.go b/streaming/streaming.go index 3ae877d2..106a800d 100644 --- a/streaming/streaming.go +++ b/streaming/streaming.go @@ -12,7 +12,7 @@ matching the rules set. To get access to the extended Streaming API version that includes 100% data please write to support https://vk.com/support?act=new_api -VK documentation https://vk.com/dev/streaming_api_docs +VK documentation https://dev.vk.com/ru/api/streaming/getting-started # Initialization diff --git a/vkapps/README.md b/vkapps/README.md index 86377db4..00ea1e6c 100644 --- a/vkapps/README.md +++ b/vkapps/README.md @@ -1,9 +1,9 @@ # VK Mini Apps [![PkgGoDev](https://pkg.go.dev/badge/github.com/SevereCloud/vksdk/v2/vkapps)](https://pkg.go.dev/github.com/SevereCloud/vksdk/v2/vkapps) -[![VK](https://img.shields.io/badge/developers-%234a76a8.svg?logo=VK&logoColor=white)](https://vk.com/dev/vk_apps_docs) +[![VK](https://img.shields.io/badge/developers-%234a76a8.svg?logo=VK&logoColor=white)](https://dev.vk.com/ru/mini-apps/getting-started) -[VK Mini Apps](https://vk.com/dev/vk_apps_docs) — это платформа встраиваемых +[VK Mini Apps](https://dev.vk.com/ru/mini-apps/getting-started) — это платформа встраиваемых кроссплатформенных приложений ВКонтакте. В данном модуле собраны инструменты для Backend части приложения. diff --git a/vkapps/doc.go b/vkapps/doc.go index 45737357..2e6ad571 100644 --- a/vkapps/doc.go +++ b/vkapps/doc.go @@ -1,6 +1,6 @@ /* Package vkapps for VK Mini Apps. -See more https://vk.com/dev/vk_apps_docs +See more https://dev.vk.com/ru/mini-apps/getting-started */ package vkapps