Versions in this module Expand all Collapse all v2 v2.17.0 Jul 2, 2024 v2.16.1 Oct 3, 2023 v2.16.0 Mar 2, 2023 v2.15.0 Jul 17, 2022 v2.14.1 Jun 13, 2022 v2.14.0 Apr 8, 2022 v2.13.1 Feb 2, 2022 v2.13.0 Jan 24, 2022 v2.12.0 Jan 12, 2022 Changes in this version + const ScopeGroupAppWidget + const ScopeGroupDocs + const ScopeGroupManage + const ScopeGroupMessages + const ScopeGroupPhotos + const ScopeGroupStories + const ScopeUserAds + const ScopeUserAdsweb + const ScopeUserAudio + const ScopeUserDocs + const ScopeUserEmail + const ScopeUserExchange + const ScopeUserFriends + const ScopeUserGroupMessages + const ScopeUserGroups + const ScopeUserLeads + const ScopeUserMarket + const ScopeUserMenu + const ScopeUserMessages + const ScopeUserNotes + const ScopeUserNotifications + const ScopeUserNotify + const ScopeUserOffline + const ScopeUserPages + const ScopeUserPhone + const ScopeUserPhotos + const ScopeUserStats + const ScopeUserStatus + const ScopeUserStories + const ScopeUserVideo + const ScopeUserWall + const ScopeUserWallmenu + var DefaultRedirectURI = "https://oauth.vk.com/blank.html" + var OAuthHost = "oauth.vk.com" + func CheckScope(scope int, permissions ...int) bool + func ImplicitFlowGroup(p GroupParams) *url.URL + func ImplicitFlowUser(p UserParams) *url.URL + type AuthCodeFlowGroup struct + Client *http.Client + UserAgent string + func NewAuthCodeFlowGroup(p GroupParams, clientSecret string) *AuthCodeFlowGroup + func (a AuthCodeFlowGroup) Token(u *url.URL) (*GroupTokens, error) + func (a AuthCodeFlowGroup) URL() *url.URL + type AuthCodeFlowUser struct + Client *http.Client + UserAgent string + func NewAuthCodeFlowUser(p UserParams, clientSecret string) *AuthCodeFlowUser + func (a AuthCodeFlowUser) Token(u *url.URL) (*UserToken, error) + func (a AuthCodeFlowUser) URL() *url.URL + type DirectAuthParams struct + CaptchaKey string + CaptchaSID string + Client *http.Client + ClientID int + ClientSecret string + Code string + ForceSMS bool + Password string + Scope int + TestRedirectURI bool + TwoFactorSupported bool + UserAgent string + Username string + V string + type Display string + const Mobile + const Page + const Popup + type Error struct + CaptchaImg string + CaptchaSID string + Description string + PhoneMask string + Reason ErrorReason + RedirectURI string + Type ErrorType + ValidationType ValidationType + func (e Error) Error() string + func (e Error) Is(target error) bool + type ErrorReason string + const ErrUserDenied + func (e ErrorReason) Error() string + type ErrorType string + const ErrAccessDenied + const ErrInvalidGrant + const ErrInvalidRequest + const ErrInvalidScope + const ErrNeedCaptcha + const ErrNeedValidation + const ErrServerError + const ErrTemporarilyUnavailable + const ErrUnauthorizedClient + const ErrUnsupportedResponseType + func (e ErrorType) Error() string + type GroupParams struct + ClientID int + Display Display + GroupIDs []int + RedirectURI string + Scope int + State string + V string + func (p GroupParams) Values() *url.Values + type GroupToken struct + AccessToken string + GroupID int + type GroupTokens struct + ExpiresIn int + Groups []GroupToken + func NewGroupTokensFromJSON(data []byte) (*GroupTokens, error) + func NewGroupTokensFromURL(u *url.URL) (*GroupTokens, error) + type UserParams struct + ClientID int + Display Display + RedirectURI string + Scope int + State string + V string + func (p UserParams) Values() *url.Values + type UserToken struct + AccessToken string + Email string + ExpiresIn int + State string + UserID int + func DirectAuth(p DirectAuthParams) (*UserToken, error) + func NewUserTokenFromJSON(data []byte) (*UserToken, error) + func NewUserTokenFromURL(u *url.URL) (*UserToken, error) + type ValidationType string + const ValidationApp + const ValidationSMS Other modules containing this package github.com/SevereCloud/vksdk/v3