Golang module for working with VK API

Overview

VK SDK for Golang

Build Status PkgGoDev VK Developers codecov VK chat release license

VK SDK for Golang ready implementation of the main VK API functions for Go.

Russian documentation

Features

Version API 5.131.

  • API
    • 400+ methods
    • Ability to change the request handler
    • Ability to modify HTTP client
    • Request Limiter
    • Token pool
  • Callback API
    • Tracking tool for users activity in your VK communities
    • Supports all events
    • Auto setting callback
  • Bots Long Poll API
    • Allows you to work with community events in real time
    • Supports all events
    • Ability to modify HTTP client
  • User Long Poll API
    • Allows you to work with user events in real time
    • Ability to modify HTTP client
  • Streaming API
    • Receiving public data from VK by specified keywords
    • Ability to modify HTTP client
  • FOAF
    • Machine-readable ontology describing persons
    • Works with users and groups
    • The only place to get page creation date
  • Games
    • Checking launch parameters
    • Intermediate http handler
  • VK Mini Apps
    • Checking launch parameters
    • Intermediate http handler
  • Payments API
    • Processes payment notifications
  • Marusia Skills
    • For creating Marusia Skills
    • Support SSML

Install

# go mod init mymodulename
go get github.com/SevereCloud/vksdk/v2@latest

Use by

Example

package main

import (
	"context"
	"log"

	"github.com/SevereCloud/vksdk/v2/api"
	"github.com/SevereCloud/vksdk/v2/api/params"
	"github.com/SevereCloud/vksdk/v2/events"
	"github.com/SevereCloud/vksdk/v2/longpoll-bot"
)

func main() {
	token := "<TOKEN>" // use os.Getenv("TOKEN")
	vk := api.NewVK(token)

	// get information about the group
	group, err := vk.GroupsGetByID(nil)
	if err != nil {
		log.Fatal(err)
	}

	// Initializing Long Poll
	lp, err := longpoll.NewLongPoll(vk, group[0].ID)
	if err != nil {
		log.Fatal(err)
	}

	// New message event
	lp.MessageNew(func(_ context.Context, obj events.MessageNewObject) {
		log.Printf("%d: %s", obj.Message.PeerID, obj.Message.Text)

		if obj.Message.Text == "ping" {
			b := params.NewMessagesSendBuilder()
			b.Message("pong")
			b.RandomID(0)
			b.PeerID(obj.Message.PeerID)

			_, err := vk.MessagesSend(b.Params)
			if err != nil {
				log.Fatal(err)
			}
		}
	})

	// Run Bots Long Poll
	log.Println("Start Long Poll")
	if err := lp.Run(); err != nil {
		log.Fatal(err)
	}
}

LICENSE

FOSSA Status

Comments
Releases(v2.15.0)
  • v2.15.0(Jul 17, 2022)

    Changelog

    31138d4 feat(api): add messages.startCall and messages.forceCallFinish 364b484 feat(api): add TestingGroup methods 4e5e665 feat(api): use Authorization Bearer 0cfb7ea feat(api): add ErrAuthAccessTokenHasExpired b9dba27 feat(api): add ErrAuthAnonymousTokenIPMismatch eee5f4c feat(vkapps): add Showcase Referral 2b5f8f2 fix(foaf): add ErrorStatusCode

    Source code(tar.gz)
    Source code(zip)
  • v2.14.1(Jun 13, 2022)

  • v2.14.0(Apr 8, 2022)

    Версия API в Callback и Bots Long Poll API

    Теперь можно получить версию API в Callback и Bots Long Poll API с помощью функции events.VersionFromContext(ctx)

    877a027 feat(event): add VersionFromContext

    Пост ВКонтакте API

    Прямые трансляции

    Добавлены методы получения RTMP-адреса для трансляции видео и завершения трансляции

    69e9790 feat: add video start & stop streaming 2ba1dab feat: add VideoLiveGetCategories

    Блог VK о API прямых трансляций

    Source code(tar.gz)
    Source code(zip)
  • v2.13.1(Feb 2, 2022)

  • v2.13.0(Jan 24, 2022)

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

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

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

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

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

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

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

    vk := api.NewVK(os.Getenv("USER_TOKEN"))
    
    method := "store.getStickersKeywords"
    params := api.Params{
    	"aliases":       true,
    	"all_products":  true,
    	"need_stickers": true,
    }
    
    r, err := vk.Request(method, params) // Content-Length: 44758 byte
    if err != nil {
    	log.Fatal(err)
    }
    log.Println("json:", len(r)) // json: 814231 byte
    
    vk.EnableMessagePack() // enable MessagePack
    vk.EnableZstd() // enable zstd
    
    r, err = vk.Request(method, params) // Content-Length: 35755 byte
    if err != nil {
    	log.Fatal(err)
    }
    log.Println("msgpack:", len(r)) // msgpack: 650775 byte
    

    0ed3f0c feat: api support MessagePack 15a6084 feat: api support zstd

    Авторизация используя VK ID

    VK ID — это единая платформа для авторизации и регистрации пользователей в разных сервисах экосистемы VK.

    Для получения данных о пользователя, с фронтенда передайте payload

    // В onAuthData callback-функции в аргументе data будет содержаться
    // информация об авторизации
    const onAuthData = (data:VKUserVisibleAuthResult) => {
      if (data.provider === "vk") {
        fetch('/accessToken', {
          method: 'POST',
          headers: {
            'Accept': 'application/json',
            'Content-Type': 'application/json'
          },
          body: JSON.stringify(data.payload)
        });
      }
    
      console.log(data);
    }
    

    На бэкенде используйте json декодер.

    func accessToken(w http.ResponseWriter, req *http.Request) {
    	var payload vkid.SilentAuthPayload
    	err := json.NewDecoder(req.Body).Decode(&payload)
    	...
    }
    

    Чтобы получить данные пользователя с помощью Silent token вызовите метод AuthGetProfileInfoBySilentToken

    p := params.NewAuthGetProfileInfoBySilentTokenBuilder()
    p.Add(payload.Token, payload.UUID, "click")
    
    r, err := vk.AuthGetProfileInfoBySilentToken(p.Params)
    

    Для получения Access token вызовите метод vk.AuthExchangeSilentAuthToken

    p := params.NewAuthExchangeSilentAuthTokenBuilder()
    p.Token(payload.Token)
    p.UUID(payload.UUID)
    
    r, err := vk.AuthExchangeSilentAuthToken(p.Params)
    

    aaa7499 feat: add SilentAuthPayload db2c8e7 feat: add AuthGetProfileInfoBySilentToken method b286e3d feat: add AuthExchangeSilentAuthToken method

    Разное

    c58c2c9 feat: MessagesTemplateElementCarousel add PhotoID (#171) 04b056b Fix parsing {failed: 1} response (by @Delorus)

    Source code(tar.gz)
    Source code(zip)
  • v2.12.0(Jan 12, 2022)

    Changelog

    869811a Add oauth module

    u := oauth.ImplicitFlowUser(oauth.UserParams{
    	ClientID: 6888183,
    	Scope:    oauth.ScopeUserPhotos + oauth.ScopeUserDocs,
    })
    

    image

    50871ad Add marusia push

    push := marusia.Push{
    	PushText: "Hello, i am push",
    	Payload:   payload,
    }
    

    image

    bd2de0d Now go 1.16+

    Fix

    2e44a0d fix: PhotosSaveOwnerPhotoResponse.photo_src=false image

    47c4582 fix: BUG(VK): GroupsCountersGroup return [] image See https://vk.com/bug341591

    4917458 Fix passing callback requests without secret key (by @gaiaz-iusipov)

    80326f2 refactor: change arg type in EventData(MessagesSendMessageEventAnswerBuilder) to interface{} (by @ZakharYA)

    New errors

    d7d8d41 add ErrMessagesPinExpiringMessage 5ac318f add ErrMessagesCantForwarded

    New methods

    0593eb5 VK.DefaultHandler make public 4297e6c GroupsLongPollServer add GetURL method

    New constants

    3a657ed vkapps add MobileIPad Platform 8f29374 vkapps add Widget Referral 990a87f vkapps add NotificationsAuto Referral

    New fields

    7ea3923 GroupsCountersGroup add Clips fields 5559c84 AccountAccountCounters add fields db14df1 WallWallpost add fields a814259 WidgetsWidgetComment add fields 4e2886e add WallWallpostHeader d62e868 WallWallpost add Hash 45be342 VideoVideo add fields 16556dc Privacy update struct ac6addf AccountInfo add VkPayEndpointV2 a887b39 MarketAddAlbumResponse add AlbumsCount f4c4f07 AdsAccount add AdNetworkAllowedPotentially e6c1227 add AdsMusician 18ec7d7 AppsApp add HasVkConnect 9745603 GroupsMarketInfo add MinOrderPrice 8825eeb WallWallpostToID add fields f4f1a41 VideoVideo add fields 9cc563b StoriesStory add fields 6bde289 PhotosPhotoFull add OrigPhoto c57525c MessagesChatPermissions add ChangeStyle 350db94 GroupsGroupSettings add fields a4673aa GroupsGroup add Like f4c5853 GroupsMarketInfo add IsHsEnabled 09630a7 MessagesMessage add MessageTag bfb64f6 MessagesConversation add more fields

    Source code(tar.gz)
    Source code(zip)
  • v2.11.0(Dec 11, 2021)

    Changelog

    dbfcef5 feat: add MarketSearchItems method c9a8bfb Fixed an issue with raising wrong error in execute method 244ebff Update messages.go 9721ca5 Update messages.go

    Marusia

    8954f6f feat: marusia uploading picture 82516ba feat: marusia uploading audio 8bef614 feat: marusia add AudioPlayer a6eb7c1 feat: marusia Deeplink 4fe4181 feat: marusia add EnableDebuging 1565b5a feat: marusia add Meta.Test field

    New fields

    6c1bbc4 feat: MarketMarketAlbum add IsMain and IsHidden 436f258 feat: VideoVideoFull add Trailer 2c04182 feat: MessagesChat add IsGroupChannel 8e427b1 feat: StoriesClickableSticker add CategoryID

    New parameters

    1a11fda feat: AccountGetCountersBuilder add UserID 47a512b feat: GroupsCreateBuilder add PublicSubcategory 319de49 feat: MarketAddAlbumBuilder add IsHidden 1799c9c feat: MarketAddToAlbumBuilder add ItemIDs b589240 feat: MarketEditAlbumBuilder add IsHidden 9e9f0cc feat: MarketEditOrderBuilder add more parameters 8ebfa0e feat: MarketGetBuilder add NeedVariants ebefe96 feat: MarketGetBuilder add WithDisabled fc45e25 feat: MarketGetAlbumByIDBuilder add NeedAllItemIDs ee0a5d1 feat: MarketSearchBuilder add NeedVariants 38ce45c feat: WallPostBuilder add more parameters a0fcb35 Update params

    New errors

    ba9c254 feat: add photos.saveOwnerPhoto errors 4eabf41 feat: add ErrClientVersionDeprecated 32485c1 feat: add ErrIPNotAllowed c1ebc35 feat: add ErrAnonymousTokenExpired e3b8c03 feat: add ErrAnonymousTokenInvalid b548b35 feat: add ErrMainAlbumCantHidden 4b21818 feat: add ErrMessagesAccessDonutChat 3314a5f feat: add ErrMessagesAccessWorkChat

    Source code(tar.gz)
    Source code(zip)
  • v2.10.0(Jun 1, 2021)

    Changelog

    85e0b43 feat: api version 5.131

    New packages

    460888a feat: new games module c8ccd8c feat: new package marusia/ssml

    Marusia

    4ef0763 feat(marusia): Add new field 3947d5d feat(marusia): Add SpeakerAudio & SpeakerAudioVKID 306d0ad feat(marusia): Add NewMiniApp a41fd2d feat(marusia): Add NewLink 1aa6124 feat: marusia add SSML field b7ab2c5 feat: marusia state

    New methods

    8ae40be feat: add StoreAddStickersToFavorite method b270b5c feat: add StoreRemoveStickersFromFavorite method f533e49 feat: add StoreGetFavoriteStickers method

    New fields

    c1bdeb1 feat: MarketMarketItem add SKU field 5084a57 feat: UsersUser add CanCallFromGroup field 1dd3bd5 feat: MessagesMessage add IsSilent field 1c42bc8 feat: VideoRestriction add DisclaimerType field 24dd9b3 feat: PollsPoll add EmbedHash field 1f484bf feat: StoriesFeedItem add more fields b28bbde feat: MarketSearchResponse add ViewType field b29cbc3 feat: GroupsAddress add PlaceID field 020aa95 feat: MarketCurrency add Title field 4cbb490 feat: VideoVideoFiles add 2k and 4k fields e972187 feat: StoriesSaveResponse add ExtendedResponse fields 6a2190c feat: MessagesChatPreview add IsMember field 03f9442 feat: MessagesConversationChatSettings add FriendsCount e2effb7 feat: AccountPushConversationsItem add DisabledMentions

    New errors

    a827d6d feat: add ErrMarketGroupingItemsWithDifferentProperties daf3bdc feat: add ErrMarketGroupingAlreadyHasSuchVariant a959f7d feat: add ErrStickersNotPurchased c37ec20 feat: add ErrStickersTooManyFavorites 57ec6cf feat: add ErrStickersNotFavorite d673a48 feat: add ErrAdditionalSignupRequired d99323b feat: add ErrMarketNotEnabled

    Other

    fd53737 feat: add callback remove function

    Source code(tar.gz)
    Source code(zip)
  • v2.9.2(May 29, 2021)

    Changelog

    0308a7e fix: VideoVideo.ContentRestricted is int f7ba006 fix: PhotosPhotoAlbum.ID change type 2d88873 fix: UsersPersonal crutch

    Source code(tar.gz)
    Source code(zip)
  • v2.9.1(May 3, 2021)

  • v2.9.0(Dec 6, 2020)

  • v2.8.0(Nov 17, 2020)

  • v2.7.0(Nov 13, 2020)

    Changelog

    cd071d0 feat: api version 5.126


    4abdfb1 feat: add MessagesForward object

    api.Params{
        ...
        "forward": object.MessagesForward{
            OwnerID:                1,
            PeerID:                 2,
            ConversationMessageIDs: []int{3},
            IsReply:                true,
            MessageIDs:             []int{4},
        },
    }
    

    fb4a22c feat: donut events

    • donut_subscription_create
    • donut_subscription_prolonged
    • donut_subscription_expired
    • donut_subscription_cancelled
    • donut_subscription_price_changed
    • donut_money_withdraw
    • donut_money_withdraw_error

    266dc8f feat(callback): Add X-Retry-Counter

    retryCounter := callback.RetryCounterFromContext(ctx)
    

    New method

    be96ba5 feat: donut methods

    d8ee337 feat: add AdsCheckLink method 6bad370 feat: add AdsAddOfficeUsers method 0266cc0 feat: add AdsCreateAds method 04ad2ec feat: add AdsCreateCampaigns method fa6a3af feat: add AdsCreateClients method be44779 feat: add AdsCreateTargetGroup method ed87d35 feat: add AdsCreateTargetPixel method 0e06e02 feat: add AdsDeleteAds method 9334987 feat: add AdsDeleteCampaigns method 66c483a feat: add AdsDeleteClients method 67e49a4 feat: add AdsCreateLookalikeRequest method b8f0786 feat: add AdsGetTargetGroups method 72f49be feat: add AdsGetAds method d037a71 feat: add AdsGetAdsLayout method

    New fields

    2ef7b8f feat: GiftsLayout add IsStickersStyle 6d77592 feat: WallPostBuilder add DonutPaidDuration 8ed3d8b feat: MessagesGetHistoryResponse add Conversations a751679 feat: MessagesMessage add WasListened 87aae23 feat: MessagesMessage add PinnedAt d1f0bee feat: WallWallpost add ShortTextRate fe1d2be feat: WallWallpost add CarouselOffset 8ef0715 feat: WallWallpostToID add Donut cd10b07 feat: MarketPrice add OldAmountText a4cf85f feat: WallWallComment add Donut 59b9184 feat: add WallWallpostDonut

    New errors

    e05f7d9 feat: add ErrAdsLookalikeAudienceSaveAlreadyInProgress 1688277 feat: add ErrAdsLookalikeSavesLimit 8783cd6 feat: add ErrAdsRetargetingGroupsLimit f21b77b feat: add ErrExecutionTimeout 8635d17 feat: add ErrAdsDomain... 4917e21 feat: add ErrAdsApplication... 1b97b3b feat: add ErrAdsLookalike... 7b179f0 feat: add AdsError c952c8d feat: add ErrLikesReactionCanNotBeApplied 46e144d feat: add ErrUserBanned

    Source code(tar.gz)
    Source code(zip)
  • v2.6.1(Oct 31, 2020)

    Changelog

    7342fdd fix: MessageEventObject.Payload type c616373 fix: error pointer eab8573 fix(longpoll-user): MessageFlag type da5e36c fix: market false

    Source code(tar.gz)
    Source code(zip)
  • v2.6.0(Oct 26, 2020)

    Changelog

    d1c469e feat: MessagesSendPeerIDs 4ac2442 feat: add ErrReactionCantApplied 706dfe6 feat: add podcast attachment a3d480c fix(foaf): Person.Gender type 9b11b87 fix(longpoll-user): set User-Agent 09b08ed fix(longpoll-user): act=a_check

    Source code(tar.gz)
    Source code(zip)
  • v2.5.0(Oct 13, 2020)

    Changelog

    cfbf863 feat: Params add WithContext 568de48 feat: add AcceptedMessageRequest status 0297643 feat: VideoSaveBuilder add IsUnitedVideoUpload 34e15ce feat(vkapps): add more Referral e4a92d5 animation_url in sticker object

    Source code(tar.gz)
    Source code(zip)
  • v2.4.0(Sep 28, 2020)

    Changelog

    32d8c5b feat: MessagesSend add ConversationMessageID 986e264 feat: AudioAudio add StoriesCoverAllowed a115e95 feat: StoriesFeedItem add ID af33b75 feat: GroupsMarketInfo add CityIDs c43846d feat: GroupsLongPollEvents add MessageEvent 98db669 feat: AdsAccount add CanViewBudget

    Source code(tar.gz)
    Source code(zip)
  • v2.3.0(Sep 28, 2020)

    Changelog

    38231a4 feat(vkapps): launch params struct b5ff6e7 feat(events): invoke event functions in a goroutine 4268421 feat(callback): add ErrorLog e665463 feat(longpoll-user): FuncList deprecated c13e62b feat(longpoll-user): invoke func in a goroutine

    Source code(tar.gz)
    Source code(zip)
  • v2.2.0(Sep 21, 2020)

    Changelog

    New fields

    3d30377 feat: WallRepostResponse add new counters 14877e4 feat: AccountAccountCounters add MenuClipsBadge 55487ae feat: StoriesStory add CanUseInNarrative e8d13a8 feat: PhotosPhotoTag add Description 850c2d7 feat: BaseRepostsInfo add WallCount MailCount 7e860c4 feat: VideoVideo add Upcoming

    New params

    191223d feat: MessagesPinBuilder add ConversationMessageID 7013887 feat: MessagesSendBuilder add ContentSource

    New structurs

    89fcef9 feat: add MessageContentSource 1660c08 feat: add MessagesEventData

    Errors

    2309f22 feat: add ErrorSubtype

    8bec68b feat: add ErrWallCheckLinkCantDetermineSource e3b0038 feat: add ErrMarketPhotosCropSizeTooLow 81761a0 feat: add ErrMarketPhotosCropOverflow a7f89cc feat: add ErrMarketPhotosCropInvalidFormat 0686425 feat: add ErrMarketShopAlreadyDisabled 1363aac feat: add ErrMarketShopAlreadyEnabled e9b86fd feat: add ErrMarketCantChangeVkpayStatus a302c99 feat: add ErrMarketInvalidDimensions 8931f11 feat: add ErrMarketOrdersNoCartItems 03b9206 feat: add ErrMarketGroupingItemsMustHaveDistinctProperties 4e57405 feat: add ErrMarketGroupingMustContainMoreThanOneItem d54a3c3 feat: add ErrMarketPropertyNotFound fc12a12 feat: add ErrMarketVariantNotFound e626d46 feat: add ErrMessagesCantPinOneTimeStory

    Other

    256cd19 feat(payments): Add refunded status f354ce4 feat: add WallCheckCopyrightLink method e3a58b1 feat: add UtilsDomainResolvedTypeVkApp baace50 feat: add StoriesStoryType

    Fix

    722bb90 fix: VideoVideo.Live is BaseBoolInt

    Source code(tar.gz)
    Source code(zip)
  • v2.1.0(Sep 14, 2020)

    Changelog

    388f388 feat: api v5.124 75c976d feat: marusia NewItemsList 6ffcc9f feat: add GroupsMarketType

    53e2e56 fix: data race when copying autoSetting method receiver

    Source code(tar.gz)
    Source code(zip)
  • v2.0.1(Sep 8, 2020)

  • v2.0.0(Sep 5, 2020)

    Changelog

    c77fcb5 BREAKING CHANGE: comment out bugs field 17b78f9 BREAKING CHANGE: VideoSearchBuilder.HD rename ce9b346 BREAKING CHANGE: APIMethodURL rename c8aea67 BREAKING CHANGE: rename FOAFURL c968e1c BREAKING CHANGE: use MarketOrderStatus type a8b98d1 BREAKING CHANGE: remove deprecated func 3f7d336 BREAKING CHANGE: rename IDS -> IDs f323c22 BREAKING CHANGE: v5.113 use StoriesFeedItem 91d7d77 BREAKING CHANGE: v5.115 use StoriesViewer 2a415b8 BREAKING CHANGE: v5.118 use StoriesSave 743c373 BREAKING CHANGE: v5.120 aafe27d BREAKING CHANGE: AppsApp use AuthorOwnerID 5157cc0 BREAKING CHANGE: NewKeyboard return pointers faad82c BREAKING CHANGE: keyboard payload become interface 01f5df5 BREAKING CHANGE: remove AudioAudioFull b3006a0 BREAKING CHANGE: add MessagesChatPreview 02a8888 BREAKING CHANGE: v5.122 update MarketMarketItem 6ac648a BREAKING CHANGE: new errors 616f0a2 BREAKING CHANGE: update streaming errors b88e020 BREAKING CHANGE: support ...Params 5598ce3 BREAKING CHANGE: token pool in NewVK 3932d85 BREAKING CHANGE: events remove type func 4d7b2be BREAKING CHANGE: rename Longpoll -> LongPoll

    a39f7c0 feat: add MessagesSendMessageEventAnswer method ee4f4b5 feat: add MessageEvent event 08ae03e feat: add transcript for audio messages 6577428 feat: add button colors df2c5d3 feat: AppsApp v5.105 11ba307 feat: v5.110 b7909d7 feat: GroupsMarketInfo add CanMessage be85404 feat: MessagesMessage add ExpireTTL 1329824 feat: add StoriesSave method 607c908 feat: MarketMarketItem add Dimensions and Weight 111b7c2 feat: update MessagesConversation 30c71dc feat: AccountInfo more fields 774fc10 feat: add callback button 9b43449 Added the "expire_ttl" and "is_expired" fields for a long-poll user. 3dfad7d Несколько констант и описание кнопок 52475b1 feat: add intents 637c0d2 feat: add PhotosConfirmTags method 3c44044 feat: add PhotosDeclineTags method c4b57a4 Константы-аттачменты d5039a8 feat: add PhotosSkipTags method c7ea8ef feat: AudioAudioFull add ShortVideosAllowed 89163e8 feat: AudioAudioFull add IsFocusTrack 00bb1bb feat: VideoVideo add ContentRestrictedMessage c31ae7d feat: StoriesStory add CanLike 9bb408e feat: MessagesChatSettingsPhoto add IsDefaultPhoto dd077f6 feat: AppsApp add AuthorURL 498edc7 feat: GroupsActionButtonTarget add IsInternal 61d7496 feat: AudioAudio add AudioAds f64e7fb feat: add MessagesChatPermission b010f85 feat: add NewsfeedCategoryAction 0a17a16 feat: WallWallpostToID add ParentsStack bf7d9a9 feat: WallWallpostToID add MarkedAsAds d65200c feat: WallWallpost add PostID dbc0746 feat: WallWallpost add ParentsStack 8ac5f6a feat: AudioAudio add IsLicensed a16026a feat: add ErrMessagesReplyTimedOut ba0a300 feat: add CharsetUnknownError 78acdd2 fix: return more json.UnmarshalTypeError 37a5e47 feat: add ErrMarketSpecifyDimensions 369ac4d feat: add ErrVKPayStatus 2bc8a46 feat: add InvalidContentType error a69352a fix: api.Error.As interface{} f9984f3 feat: longpoll update errors fcd201f feat: add UploadError b4cd8f5 fix: upload errors 92a724c fix: remove As method 0434026 fix: ExecuteWithArgs return ExecuteErrors pointer e27132c feat: add ErrMarketAlreadyEnabled 26ea570 feat: ErrMarketAlreadyDisabled 068bfd3 feat: add GroupsToggleMarket method 5441cd5 feat: events add context a4d689c Add field "app_id" in FriendBecameOnline for user longpoll 8a57ec8 feat: VideoSearch add Legal params b72e552 fix: remove WallWallpostAttached 173cd2a build(deps): bump github.com/gorilla/schema from 1.1.0 to 1.2.0 cc94f70 feat: likes.add add ReactionID parameter bf5632d fix: add MarkeOrder... events methods 0760aac feat: add ListEvents for FuncList method 7b27f24 feat: callback AutoSetting 8907c58 fix: remove photo.*Tags methods 7c30ff7 feat: autoSetting for Longpoll bots

    Source code(tar.gz)
    Source code(zip)
  • v1.10.0(Jun 29, 2020)

    Changelog

    ee82c98 feat: BaseSticker size functions 1aac114 feat: add AdsGetAdsTargetingBuilder.OnlyDeleted b9ae23c feat: add ExecuteWithArgs method 280eeb2 feat: add UserDeactivated error 9158b69 feat: add ServiceDeactivated error 3bdc101 feat: add MessagesEditPinned error 6fba15e feat: add AliExpressTag error

    Source code(tar.gz)
    Source code(zip)
  • v1.9.0(Jun 15, 2020)

    Changelog

    New module:

    afec668 feat: marusia module

    New events:

    fd4538d feat: add MarketOrderNew event a4ce22b feat: add MarketOrderEdit event

    New methods:

    1e601b9 feat: add AdsGetAccounts method 6311f27 feat: add AdsDeleteTargetGroup method f20d173 feat: add AdsDeleteTargetPixel method 03ac011 feat: add AdsRemoveTargetContacts method 57a8181 feat: add AdsUpdateTargetGroup method d0ecdde feat: add AdsUpdateTargetPixel method b67e9a1 feat: add AdsGetMusicians method a9c8477 feat: add DownloadedGamesGetPaidStatus method

    More fields:

    1af16b8 feat: MessagesSendBuilder add PeerIDs e7f722c feat: MessagesMessageAttachment add Story 7be9657 feat: MessagesGetHistoryResponse add extended

    More params:

    688a254 feat: NotificationsSendMessage add RandomID param 0b6b611 feat: NewsfeedUnignoreItem add TrackCode param

    More errors:

    6a43c7b feat: add Compile error 8fa3ae7 feat: add Runtime error 14379e5 feat: add NotEnoughMoney error 3f894ea feat: add GroupAppIsNotInstalledInCommunity error 19b0bcc feat: add MessagesMemberAccessToGroupDenied error

    Fix:

    0810158 fix: defaultHandler defer close in loop 514ca19 fix: MessagesSend method remove peer_ids 396fd63 fix: streaming check wsResp != nil

    Other:

    1483ec4 feat: add MarketOrderStatus

    Source code(tar.gz)
    Source code(zip)
  • v1.8.0(Jun 1, 2020)

    Changelog

    New events:

    bf4279e feat: add LikeAdd event 5d89e0e feat: add LikeRemove event

    New methods:

    e3476ed feat: add GroupsSetUserNote method f997903 feat: add GroupsTagAdd method 15e7a09 feat: add GroupsTagBind method cf72d55 feat: add GroupsTagDelete method ee2b5a7 feat: add GroupsTagUpdate method 1486d9b feat: add GroupsGetTagList method 81245fe feat: add StoriesSendInteraction method

    New structures:

    dbac97b feat: add WallPostCopyright c35b43a feat: add NewsfeedItemMarket 1a65f22 feat: add Privacy

    More params:

    fdd2873 feat: MessagesSendBuilder add SubscribeID f05a77e feat: add like_add and like_remove params

    More fields:

    a1729db feat: PollsPoll add DisableUnvote a5aa82b feat: VideoVideo add UserID 4908f08 feat: PhotosGetMessagesUploadServer... add GroupID 09f9daf feat: GroupsGroup add TrackCode 8fb158c feat: MessagesChat add IsDefaultPhoto 6543b0c feat: PhotosPhoto add HasTags 2e1fb3b feat: WallPostSource add Link b3ae21e feat: Article add NoFooter 1590e2c feat: UsersUser add TrackCode 69a164a feat: GroupsCountersGroup add Articles 2931ae6 feat: GroupsGroupPublicCategoryList.Subcategories a533821 feat: MessagesHistoryAttachment add FromID 36165d8 feat: MessagesGetLongPollHistoryResponse.FromPTS 07ad754 feat: NewsfeedNewsfeedItem add fields 4cc5bfb feat: NewsfeedItemWallpost add FromID 0f33b46 feat: PagesWikipageFull add PageID 4bfee48 feat: UsersUser add RelationPartner f4d70af feat: BaseLink add target cc80b1a feat: GroupsGroup add PublicDateLabel f42df75 feat: GroupsGroup add more fields a43ff8c feat: PhotosPhoto add Color 81fc1d6 feat: DocsDoc add DocsDocPreviewGraffiti e4a631d feat: add PostID for like events 8b35b86 feat: AppsApp add more fields d7f6539 feat: AccountAccountCounters add Faves 328d60b feat: AccountUserSettings add ID 9309434 feat: UsersUser add Type 6651e88 feat: DatabaseMetroStation add CityID 7e2fd8f feat: GroupsMarketInfo add Wiki bf1a918 feat: MessagesConversationChatSettings add CanCall 2f32053 feat: MessagesChat add ChatSettings 6b725b9 feat: GroupsGroupSettings add Phone 48967c9 feat: AppsCatalogBanner add Description 1481c14 feat: PagesWikipageFull add VersionCreated 2a06fa6 feat: PhotosPhotoFull add HasTags dfc8cc2 feat: VideoVideo add CanAttachLink dd34ae3 feat: NewsfeedItemWallpost add more fields 210c89a feat: UsersSchool add Speciality 1b96d51 feat: UsersUser add Skype 76c1dfd feat: update PhotosPhoto objects f8f3bcc feat: GroupsCountersGroup add Narratives 9803f99 feat: WallGraffiti add more fields b31ff0b feat: MessagesGetHistoryAttachments add fields fde5dd4 feat: PhotosPhotoFull add CanRepost 8ffa2b7 feat: BaseLink add more fields 4ce91ee feat: add invalid longpoll events

    JSON tag misspelling:

    09b97e3 fix: PollsBackground.Name json tag misspelling 56a38c6 fix: DocsSaveResponse.Type json tag misspelling d203044 fix: GroupsGroup.IsAdult json tag misspelling 02b9501 fix: GroupsGroup.TrackCode json tag misspelling 93aedea fix: AppsGetFriendsList.Items json tag misspelling b342147 fix: callback LikerID json tag misspelling

    Other:

    a05ff99 fix: PhotosPhotoFull.Reposts type d1231de feat: add DonutDisabled error 8997470 feat: update version 1.8.0

    Source code(tar.gz)
    Source code(zip)
  • v1.7.0(May 18, 2020)

    Changelog

    db438be feat: add MarketGetGroupOrders bd31c48 feat: add MarketGetOrderByID 4584709 feat: add MarketGetOrderItems cd21444 feat: add MarketEditOrder 584b193 feat: add GroupInvalidInviteLink error e1809a3 feat: StoriesClickableSticker add type app 066caa0 feat: add AdsGetAdsTargetingBuilder.OnlyDeleted 2a4c287 feat: MaxSize and MinSize for DocsDocPreviewPhotoSizes (#109 @geosonic) 3612a55 fix: UsersOnlineInfo status 8290e80 fix: BaseImage support src field ad2cafe fix: UploadAppImage parameter misspelling (#106) ef946e8 fix: UploadGroupImage parameter misspelling (#107)

    Source code(tar.gz)
    Source code(zip)
  • v1.6.0(Apr 20, 2020)

    Changelog

    0070838 feat: add Payments API f3b67e4 feat: add NewLongpollCommunity dbe7e53 feat: add MessagesBasePayload edcdd3a feat: add VideoRestriction 8fc536a feat: add more UsersUser fields edca76c feat: add more Messages ErrorType 1bba39e feat: add RedirectURI for Error d1dc264 feat: add TokenExtension error 3b08e52 feat: common params dd10d3b feat: Params add Confirm 36720a9 fix: vkapps.Verify not escapes query params 5e55b7f fix: callback method receiver use pointer 9b791b2 fix: api check invalid content-type eee8302 fix: vksdk.Version check

    Source code(tar.gz)
    Source code(zip)
  • v1.5.0(Apr 8, 2020)

    Changelog

    d7d56a5 feat: new constructors function 6f756bf feat: add token pool a372bbe feat: client with token pool dc626a7 feat: handler for special events a3e3e25 feat: StorageGetResponse func ToMap 3915d61 fix: retry request if too many requests per second ffd1f6f fix: NewCallback make map bfd348e fix: websocket send User-Agent 1266ee9 fix: FriendsRequests add UsersUser fields 7fa4232 fix: assignments should only be cuddled with other assignments

    Source code(tar.gz)
    Source code(zip)
  • v1.4.0(Mar 23, 2020)

    Changelog

    2f8ef9e feat: all send User-Agent 6ae4ee3 feat: BaseLink add Video e644bbb feat: foaf add ProfileStateDeactivated 3656bcb feat: chat settings add AdminIDs f6ada62 feat: add music clickable sticker d6833cb feat: add stories promo data 898c9d5 feat: add stories narrative info d4dd86c feat: func MessagesKeyboard return pointer f640422 feat: add clickable stickers func 8120e09 feat: more constants 138c4f4 feat: XMLSanitizerReader for foaf f2ac2a2 feat: PollsBackground add Name field e3897c0 feat: add event constants f182bde fix: color should't be in open link buttons 7c702dd fix: remove golang.org/x/net b593e52 fix: foaf decoder.Strict set false ca83dad fix: vkapps support go1.11

    Source code(tar.gz)
    Source code(zip)
  • v1.3.0(Mar 1, 2020)

    Changelog

    80a78dd feat: add VideoActionButton 3db8c69e feat: add Streaming API 78e43043 feat: add longpoll events wrapper (#79) 287e55cb feat: add consts to describe user longpoll modes aefe0b1d feat: add custom vk.Handler 20fc5ed4 feat: add likes to Stories 93367a88 feat: add poll clickable sticker efafda2 fix: now Request does not rewrite access_token and v parameters (#85 by @tdakkota) 50e5921 fix: mistyping, cyrillic 'C' in MembersCount (#85 by @tdakkota) f5a35afb fix: FullResponse handler call missed (#80 by @tdakkota) 36be1cde fix: add GroupsSectionsList 063bb551 fix: add GroupsActionButton 6c75b1b fix: GroupsGetMembersFilterManagersResponse

    Source code(tar.gz)
    Source code(zip)
Owner
Daniil Suvorov
Daniil Suvorov
A GO API library for working with Marathon

Go-Marathon Go-marathon is a API library for working with Marathon. It currently supports Application and group deployment Helper filters for pulling

Rohith Jayawardene 197 Dec 28, 2022
A Go client for working with the Cryptohopper API

GoGoCryptohopper A Go client for working with the Cryptohopper API Structure of the client Request/Response The definitions for request and response f

Cryptwire 0 Dec 23, 2021
Go module for communicating with the Veryfi OCR API

veryfi-go is a Go module for communicating with the Veryfi OCR API Installing This package can be installed by cloning this directory: git clone https

Veryfi 21 Jan 5, 2023
Go SDK for working with the Nightfall Developer Platform

Nightfall Go SDK nightfall-go-sdk is a Go client library for accessing the Nightfall API. It allows you to add functionality to your applications to s

Nightfall AI 10 Jun 20, 2022
Repo for working on Cloud-based projects in Go

GoCloud Repo for working on Cloud-based projects in Go AWS checkout SDK: https://github.com/awsdocs/aws-doc-sdk-examples/tree/main/gov2/s3 cd into /ho

Noah Gift 1 Jan 10, 2022
Gophercises-quiz-one - Working solution of Gophercises Quiz 1 Course

Gophercises Quiz 1 Working Solution Description Create a program that will read

Husni Zuhdi 0 Feb 2, 2022
Go package providing opinionated tools and methods for working with the `aws-sdk-go/service/cloudfront` package.

go-aws-cloudfront Go package providing opinionated tools and methods for working with the aws-sdk-go/service/cloudfront package. Documentation Tools $

aaronland 0 Feb 2, 2022
Golang ergonomic declarative generics module inspired by Rust, including Result, Option, and more.

gust Golang ergonomic declarative generics module inspired by Rust. Go Version go≥1.18 Features Result Avoid if err != nil, handle result with chain m

henrylee2cn 80 Jan 7, 2023
Simple-Weather-API - Simple weather api app created using golang and Open Weather API key

Simple Weather API Simple weather api app created using golang and Open Weather

Siva Prakash 3 Feb 6, 2022
Go module to work with Postman Collections

go-postman-collection Go module to work with Postman Collections. This module aims to provide a simple way to work with Postman collections. Using thi

Romain Bretécher 62 Dec 29, 2022
This program performs stress testing for the Cosmos module

Cosmos Modules Testing Program ?? Overview This program performs stress testing for the Cosmos module. Support: Liquidity , IBC transfer Note: Require

B-Harvest 2 May 25, 2022
A Lambda function built with SAM (Serverless Application Module)

AWS SAM Lambda Function © Israel Pereira Tavares da Silva The AWS Serverless Application Model (SAM) is an open-source framework for building serverle

Israel P. T. da Silva 0 Dec 19, 2021
An API client for the Notion API implemented in Golang

An API client for the Notion API implemented in Golang

Anatoly Nosov 354 Dec 30, 2022
A API scanner written in GOLANG to scan files recursively and look for API keys and IDs.

GO FIND APIS _____ ____ ______ _____ _ _ _____ _____ _____ _____ / ____|/ __ \ | ____|_ _| \ | | __ \ /\ | __ \_

Sreekanth Sasi 3 Oct 25, 2021
Arweave-api - Arweave API implementation in golang

Arweave API Go implementation of the Arweave API Todo A list of endpoints that a

Joshua Lawson 1 Jan 16, 2022
Reservationbox-api - Reservationbox Api with golang

reservationbox-api How to set up application Cloning git on this link : https://

null 0 Jan 30, 2022
Go api infra - Infrastructure for making api on golang so easy

Go Infra Api Infrastructre methods and types for make api simple Response abstra

Anosov Konstantin 1 Jun 18, 2022
A GoLang wrapper for Politics & War's API. Forego the hassle of accessing the API directly!

A GoLang wrapper for Politics & War's API. Forego the hassle of accessing the API directly!

null 1 Mar 5, 2022
Golang API for Whatsapp API MultiDevice version

Go Whatsapp API Multi Device Version Required Mac OS: brew install vips export C

Aldino Kemal 62 Jan 3, 2023