object

package
v0.0.0-...-941c8e3 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrorUnknown                           = 1    // Unknown error occurred
	ErrorDisabled                          = 2    // Application is disabled. Enable your application or use test mode
	ErrorMethod                            = 3    // Unknown method passed
	ErrorSignature                         = 4    // Incorrect signature
	ErrorAuth                              = 5    // User authorization failed
	ErrorTooMany                           = 6    // Too many requests per second
	ErrorPermission                        = 7    // Permission to perform this action is denied
	ErrorRequest                           = 8    // Invalid request
	ErrorFlood                             = 9    // Flood control
	ErrorServer                            = 10   // Internal server error
	ErrorEnabledInTest                     = 11   // In test mode application should be disabled or user should be authorized
	ErrorCaptcha                           = 14   // Captcha needed
	ErrorAccess                            = 15   // Access denied
	ErrorAuthHTTPS                         = 16   // HTTP authorization failed
	ErrorAuthValidation                    = 17   // Validation required
	ErrorUserDeleted                       = 18   // User was deleted or banned
	ErrorBlocked                           = 19   // Content blocked
	ErrorMethodPermission                  = 20   // Permission to perform this action is denied for non-standalone applications
	ErrorMethodAds                         = 21   // Permission to perform this action is allowed only for standalone and OpenAPI applications
	ErrorUpload                            = 22   // Upload error
	ErrorMethodDisabled                    = 23   // This method was disabled
	ErrorNeedConfirmation                  = 24   // Confirmation required
	ErrorNeedTokenConfirmation             = 25   // Token confirmation required
	ErrorGroupAuth                         = 27   // Group authorization failed
	ErrorAppAuth                           = 28   // Application authorization failed
	ErrorRateLimit                         = 29   // Rate limit reached
	ErrorPrivateProfile                    = 30   // This profile is private
	ErrorParam                             = 100  // One of the parameters specified was missing or invalid
	ErrorParamAPIID                        = 101  // Invalid application API ID
	ErrorLimits                            = 103  // Out of limits
	ErrorNotFound                          = 104  // Not found
	ErrorSaveFile                          = 105  // Couldn't save file
	ErrorActionFailed                      = 106  // Unable to process action
	ErrorParamUserID                       = 113  // Invalid user id
	ErrorParamAlbumID                      = 114  // Invalid album id
	ErrorParamServer                       = 118  // Invalid server
	ErrorParamTitle                        = 119  // Invalid title
	ErrorParamPhotos                       = 122  // Invalid photos
	ErrorParamHash                         = 121  // Invalid hash
	ErrorParamPhoto                        = 129  // Invalid photo
	ErrorParamGroupID                      = 125  // Invalid group id
	ErrorParamPageID                       = 140  // Page not found
	ErrorAccessPage                        = 141  // Access to page denied
	ErrorMobileNotActivated                = 146  // The mobile number of the user is unknown
	ErrorInsufficientFunds                 = 147  // Application has insufficient funds
	ErrorAccessMenu                        = 148  // Access to the menu of the user denied
	ErrorParamTimestamp                    = 150  // Invalid timestamp
	ErrorFriendsListID                     = 171  // Invalid list id
	ErrorFriendsListLimit                  = 173  // Reached the maximum number of lists
	ErrorFriendsAddYourself                = 174  // Cannot add user himself as friend
	ErrorFriendsAddInEnemy                 = 175  // Cannot add this user to friends as they have put you on their blacklist
	ErrorFriendsAddEnemy                   = 176  // Cannot add this user to friends as you put him on blacklist
	ErrorFriendsAddNotFound                = 177  // Cannot add this user to friends as user not found
	ErrorParamNoteID                       = 180  // Note not found
	ErrorAccessNote                        = 181  // Access to note denied
	ErrorAccessNoteComment                 = 182  // You can't comment this note
	ErrorAccessComment                     = 183  // Access to comment denied
	ErrorAccessAlbum                       = 200  // Access denied
	ErrorAccessAudio                       = 201  // Access denied
	ErrorAccessGroup                       = 203  // Access to group denied
	ErrorAccessVideo                       = 204  // Access denied
	ErrorAccessMarket                      = 205  // Access denied
	ErrorWallAccessPost                    = 210  // Access to wall's post denied
	ErrorWallAccessComment                 = 211  // Access to wall's comment denied
	ErrorWallAccessReplies                 = 212  // Access to post comments denied
	ErrorWallAccessAddReply                = 213  // Access to status replies denied
	ErrorWallAddPost                       = 214  // Access to adding post denied
	ErrorWallAdsPublished                  = 219  // Advertisement post was recently added
	ErrorWallTooManyRecipients             = 220  // Too many recipients
	ErrorStatusNoAudio                     = 221  // User disabled track name broadcast
	ErrorWallLinksForbidden                = 222  // Hyperlinks are forbidden
	ErrorWallReplyOwnerFlood               = 223  // Too many replies
	ErrorWallAdsPostLimitReached           = 224  // Too many ads posts
	ErrorPollsAccess                       = 250  // Access to poll denied
	ErrorPollsAnswerID                     = 252  // Invalid answer id
	ErrorPollsPollID                       = 251  // Invalid poll id
	ErrorPollsAccessWithoutVote            = 253  // Access denied, please vote first
	ErrorAccessGroups                      = 260  // Access to the groups list is denied due to the user's privacy settings
	ErrorAlbumFull                         = 300  // This album is full
	ErrorAlbumsLimit                       = 302  // Albums number limit is reached
	ErrorVotesPermission                   = 500  // Permission denied. You must enable votes processing in application settings
	ErrorVotes                             = 503  // Not enough votes
	ErrorAdsPermission                     = 600  // Permission denied. You have no access to operations specified with given object(s)
	ErrorWeightedFlood                     = 601  // Permission denied. You have requested too many actions this day. Try later
	ErrorAdsPartialSuccess                 = 602  // Some part of the request has not been completed
	ErrorAdsSpecific                       = 603  // Some ads error occurred
	ErrorAdsObjectDeleted                  = 629  // Object deleted
	ErrorGroupChangeCreator                = 700  // Cannot edit creator role
	ErrorGroupNotInClub                    = 701  // User should be in club
	ErrorGroupTooManyOfficers              = 702  // Too many officers in club
	ErrorGroupNeed2fa                      = 703  // You need to enable 2FA for this action
	ErrorGroupHostNeed2fa                  = 704  // User needs to enable 2FA for this action
	ErrorGroupTooManyAddresses             = 706  // Too many addresses in club
	ErrorVideoAlreadyAdded                 = 800  // This video is already added
	ErrorVideoCommentsClosed               = 801  // Comments for this video are closed
	ErrorMessagesUserBlocked               = 900  // Can't send messages for users from blacklist
	ErrorMessagesDenySend                  = 901  // Can't send messages for users without permission
	ErrorMessagesPrivacy                   = 902  // Can't send messages to this user due to their privacy settings
	ErrorMessagesTooOldPts                 = 907  // Value of ts or pts is too old
	ErrorMessagesTooNewPts                 = 908  // Value of ts or pts is too new
	ErrorMessagesEditExpired               = 909  // Can't edit this message, because it's too old
	ErrorMessagesTooBig                    = 910  // Can't sent this message, because it's too big
	ErrorMessagesKeyboardInvalid           = 911  // Keyboard format is invalid
	ErrorMessagesChatBotFeature            = 912  // This is a chat bot feature, change this status in settings
	ErrorMessagesTooLongForwards           = 913  // Too many forwarded messages
	ErrorMessagesTooLongMessage            = 914  // Message is too long
	ErrorMessagesChatUserNoAccess          = 917  // You don't have access to this chat
	ErrorMessagesCantSeeInviteLink         = 919  // You can't see invite link for this chat
	ErrorMessagesEditKindDisallowed        = 920  // Can't edit this kind of message
	ErrorMessagesCantFwd                   = 921  // Can't forward these messages
	ErrorMessagesCantDeleteForAll          = 924  // Can't delete this message for everybody
	ErrorMessagesChatNotAdmin              = 925  // You are not admin of this chat
	ErrorMessagesChatNotExist              = 927  // Chat does not exist
	ErrorMessagesCantChangeInviteLink      = 931  // You can't change invite link for this chat
	ErrorMessagesGroupPeerAccess           = 932  // Your community can't interact with this peer
	ErrorMessagesChatUserNotInChat         = 935  // User not found in chat
	ErrorMessagesContactNotFound           = 936  // Contact not found
	ErrorMessagesMessageRequestAlreadySend = 939  // Message request already send
	ErrorParamPhone                        = 1000 // Invalid phone number
	ErrorPhoneAlreadyUsed                  = 1004 // This phone number is used by another user
	ErrorAuthFloodError                    = 1105 // Too many auth attempts, try again later
	ErrorAuthDelay                         = 1112 // Processing.. Try later
	ErrorParamDocID                        = 1150 // Invalid document id
	ErrorParamDocDeleteAccess              = 1151 // Access to document deleting is denied
	ErrorParamDocTitle                     = 1152 // Invalid document title
	ErrorParamDocAccess                    = 1153 // Access to document is denied
	ErrorPhotoChanged                      = 1160 // Original photo was changed
	ErrorTooManyLists                      = 1170 // Too many feed lists
	ErrorAppsAlreadyUnlocked               = 1251 // This achievement is already unlocked
	ErrorAppsSubscriptionNotFound          = 1256 // Subscription not found
	ErrorAppsSubscriptionInvalidStatus     = 1257 // Subscription is in invalid status
	ErrorInvalidAddress                    = 1260 // Invalid screen name
	ErrorCommunitiesCatalogDisabled        = 1310 // Catalog is not available for this user
	ErrorCommunitiesCategoriesDisabled     = 1311 // Catalog categories are not available for this user
	ErrorMarketRestoreTooLate              = 1400 // Too late for restore
	ErrorMarketCommentsClosed              = 1401 // Comments for this market are closed
	ErrorMarketAlbumNotFound               = 1402 // Album not found
	ErrorMarketItemNotFound                = 1403 // Item not found
	ErrorMarketItemAlreadyAdded            = 1404 // Item already added to album
	ErrorMarketTooManyItems                = 1405 // Too many items
	ErrorMarketTooManyItemsInAlbum         = 1406 // Too many items in album
	ErrorMarketTooManyAlbums               = 1407 // Too many albums
	ErrorMarketItemHasBadLinks             = 1408 // Item has bad links in description
	ErrorStoryExpired                      = 1600 // Story has already expired
	ErrorStoryIncorrectReplyPrivacy        = 1602 // Incorrect reply privacy
	ErrorPrettyCardsCardNotFound           = 1900 // Card not found
	ErrorPrettyCardsTooManyCards           = 1901 // Too many cards
	ErrorPrettyCardsCardIsConnectedToPost  = 1902 // Card is connected to post
	ErrorCallbackServersLimit              = 2000 // Servers number limit is reached
)

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

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountAccountCounters

type AccountAccountCounters struct {
	AppRequests            int `json:"app_requests"`            // New app requests number
	Events                 int `json:"events"`                  // New events number
	Friends                int `json:"friends"`                 // New friends requests number
	FriendsRecommendations int `json:"friends_recommendations"` // New friends recommendations number
	FriendsSuggestions     int `json:"friends_suggestions"`     // New friends suggestions number
	Gifts                  int `json:"gifts"`                   // New gifts number
	Groups                 int `json:"groups"`                  // New groups number
	Messages               int `json:"messages"`                // New messages number
	Notifications          int `json:"notifications"`           // New notifications number
	Photos                 int `json:"photos"`                  // New photo tags number
	SDK                    int `json:"sdk"`                     // New SDK number
	MenuDiscoverBadge      int `json:"menu_discover_badge"`     // New menu discover badge number
	Videos                 int `json:"videos"`                  // New video tags number
}

AccountAccountCounters struct

type AccountInfo

type AccountInfo struct {
	Country           string `json:"country"`           // Country code
	HTTPSRequired     int    `json:"https_required"`    // Information whether HTTPS-only is enabled
	Intro             int    `json:"intro"`             // Information whether user has been processed intro
	Lang              int    `json:"lang"`              // Language ID
	NoWallReplies     int    `json:"no_wall_replies"`   // Information whether wall comments should be hidden
	OwnPostsDefault   int    `json:"own_posts_default"` // Information whether only owners posts should be shown
	TwoFactorRequired int    `json:"2fa_required"`      // Two factor authentication is enabled
}

AccountInfo struct

type AccountNameRequest

type AccountNameRequest struct {
	FirstName string `json:"first_name"` // First name in request
	ID        int    `json:"id"`         // Request ID needed to cancel the request
	LastName  string `json:"last_name"`  // Last name in request
	Status    string `json:"status"`
}

AccountNameRequest struct

type AccountOffer

type AccountOffer struct {
	Description      string `json:"description"`       // Offer description
	ID               int    `json:"id"`                // Offer ID
	Img              string `json:"img"`               // URL of the preview image
	Instruction      string `json:"instruction"`       // Instruction how to process the offer
	InstructionHTML  string `json:"instruction_html"`  // Instruction how to process the offer (HTML format)
	Price            int    `json:"price"`             // Offer price
	ShortDescription string `json:"short_description"` // Offer short description
	Tag              string `json:"tag"`               // Offer tag
	Title            string `json:"title"`             // Offer title
}

AccountOffer struct

type AccountPushConversations

type AccountPushConversations struct {
	Count int                             `json:"count"` // Items count
	Items []*accountPushConversationsItem `json:"items"`
}

AccountPushConversations struct

type AccountPushParams

type AccountPushParams struct {
	AppRequest     []string `json:"app_request"`
	Birthday       []string `json:"birthday"`
	Chat           []string `json:"chat"`
	Comment        []string `json:"comment"`
	EventSoon      []string `json:"event_soon"`
	Friend         []string `json:"friend"`
	FriendAccepted []string `json:"friend_accepted"`
	FriendFound    []string `json:"friend_found"`
	GroupAccepted  []string `json:"group_accepted"`
	GroupInvite    []string `json:"group_invite"`
	Like           []string `json:"like"`
	Mention        []string `json:"mention"`
	Msg            []string `json:"msg"`
	NewPost        []string `json:"new_post"`
	PhotosTag      []string `json:"photos_tag"`
	Reply          []string `json:"reply"`
	Repost         []string `json:"repost"`
	SdkOpen        []string `json:"sdk_open"`
	WallPost       []string `json:"wall_post"`
	WallPublish    []string `json:"wall_publish"`
}

AccountPushParams struct

type AccountPushSettings

type AccountPushSettings struct {
	Conversations AccountPushConversations `json:"conversations"`
	Disabled      int                      `json:"disabled"`       // Information whether notifications are disabled
	DisabledUntil int                      `json:"disabled_until"` // Time until that notifications are disabled in Unixtime
	Settings      AccountPushParams        `json:"settings"`
}

AccountPushSettings struct

type AccountUserSettings

type AccountUserSettings struct {
	Bdate            string             `json:"bdate"`            // User's date of birth
	BdateVisibility  int                `json:"bdate_visibility"` // Information whether user's birthdate are hidden
	City             BaseObject         `json:"city"`
	Country          BaseCountry        `json:"country"`
	FirstName        string             `json:"first_name"`  // User first name
	HomeTown         string             `json:"home_town"`   // User's hometown
	LastName         string             `json:"last_name"`   // User last name
	MaidenName       string             `json:"maiden_name"` // User maiden name
	NameRequest      AccountNameRequest `json:"name_request"`
	Phone            string             `json:"phone"`    // User phone number with some hidden digits
	Relation         int                `json:"relation"` // User relationship status
	RelationPartner  UsersUserMin       `json:"relation_partner"`
	RelationPending  int                `json:"relation_pending"` // Information whether relation status is pending
	RelationRequests []UsersUserMin     `json:"relation_requests"`
	ScreenName       string             `json:"screen_name"` // Domain name of the user's page
	Sex              int                `json:"sex"`         // User sex
	Status           string             `json:"status"`      // User status
}

AccountUserSettings struct

type AdsAccount

type AdsAccount struct {
	AccessRole    string `json:"access_role"`
	AccountID     int    `json:"account_id"`     // Account ID
	AccountStatus int    `json:"account_status"` // Information whether account is active
	AccountType   string `json:"account_type"`
}

AdsAccount struct

type AdsAd

type AdsAd struct {
	AdFormat              int         `json:"ad_format"`   // Ad format
	AdPlatform            interface{} `json:"ad_platform"` // Ad platform
	AllLimit              int         `json:"all_limit"`   // Total limit
	Approved              int         `json:"approved"`
	CampaignID            int         `json:"campaign_id"`  // Campaign ID
	Category1ID           int         `json:"category1_id"` // Category ID
	Category2ID           int         `json:"category2_id"` // Additional category ID
	CostType              int         `json:"cost_type"`
	Cpc                   int         `json:"cpc"`                    // Cost of a click, kopecks
	Cpm                   int         `json:"cpm"`                    // Cost of 1000 impressions, kopecks
	DisclaimerMedical     int         `json:"disclaimer_medical"`     // Information whether disclaimer is enabled
	DisclaimerSpecialist  int         `json:"disclaimer_specialist"`  // Information whether disclaimer is enabled
	DisclaimerSupplements int         `json:"disclaimer_supplements"` // Information whether disclaimer is enabled
	ID                    int         `json:"id"`                     // Ad ID
	ImpressionsLimit      int         `json:"impressions_limit"`      // Impressions limit
	ImpressionsLimited    int         `json:"impressions_limited"`    // Information whether impressions are limited
	Name                  string      `json:"name"`                   // Ad title
	Status                int         `json:"status"`
	Video                 int         `json:"video"` // Information whether the ad is a video
}

AdsAd struct

type AdsAdLayout

type AdsAdLayout struct {
	AdFormat    int    `json:"ad_format"`   // Ad format
	CampaignID  int    `json:"campaign_id"` // Campaign ID
	CostType    int    `json:"cost_type"`
	Description string `json:"description"`  // Ad description
	ID          int    `json:"id"`           // Ad ID
	ImageSrc    string `json:"image_src"`    // Image URL
	ImageSrc2x  string `json:"image_src_2x"` // URL of the preview image in double size
	LinkDomain  string `json:"link_domain"`  // Domain of advertised object
	LinkURL     string `json:"link_url"`     // URL of advertised object
	PreviewLink string `json:"preview_link"` // TODO: check it link to preview an ad as it is shown on the website
	Title       string `json:"title"`        // Ad title
	Video       int    `json:"video"`        // Information whether the ad is a video
}

AdsAdLayout struct

type AdsCampaign

type AdsCampaign struct {
	AllLimit  string `json:"all_limit"`  // Campaign's total limit, rubles
	DayLimit  string `json:"day_limit"`  // Campaign's day limit, rubles
	ID        int    `json:"id"`         // Campaign ID
	Name      string `json:"name"`       // Campaign title
	StartTime int    `json:"start_time"` // Campaign start time, as Unixtime
	Status    int    `json:"status"`
	StopTime  int    `json:"stop_time"` // Campaign stop time, as Unixtime
	Type      string `json:"type"`
}

AdsCampaign struct

type AdsCategory

type AdsCategory struct {
	ID            int                  `json:"id"`   // Category ID
	Name          string               `json:"name"` // Category name
	Subcategories []baseObjectWithName `json:"subcategories"`
}

AdsCategory struct

type AdsClient

type AdsClient struct {
	AllLimit string `json:"all_limit"` // Client's total limit, rubles
	DayLimit string `json:"day_limit"` // Client's day limit, rubles
	ID       int    `json:"id"`        // Client ID
	Name     string `json:"name"`      // Client name
}

AdsClient struct

type AdsCriteria

type AdsCriteria struct {
	AgeFrom              int    `json:"age_from"`               // Age from
	AgeTo                int    `json:"age_to"`                 // Age to
	Apps                 string `json:"apps"`                   // Apps IDs
	AppsNot              string `json:"apps_not"`               // Apps IDs to except
	Birthday             int    `json:"birthday"`               // Days to birthday
	Cities               string `json:"cities"`                 // Cities IDs
	CitiesNot            string `json:"cities_not"`             // Cities IDs to except
	Country              int    `json:"country"`                // Country ID
	Districts            string `json:"districts"`              // Districts IDs
	Groups               string `json:"groups"`                 // Communities IDs
	InterestCategories   string `json:"interest_categories"`    // Interests categories IDs
	Interests            string `json:"interests"`              // Interests
	Paying               int    `json:"paying"`                 // Information whether the user has proceeded VK payments before
	Positions            string `json:"positions"`              // Positions IDs
	Religions            string `json:"religions"`              // Religions IDs
	RetargetingGroups    string `json:"retargeting_groups"`     // Retargeting groups IDs
	RetargetingGroupsNot string `json:"retargeting_groups_not"` // Retargeting groups IDs to except
	SchoolFrom           int    `json:"school_from"`            // School graduation year from
	SchoolTo             int    `json:"school_to"`              // School graduation year to
	Schools              string `json:"schools"`                // Schools IDs
	Sex                  int    `json:"sex"`
	Stations             string `json:"stations"`      // Stations IDs
	Statuses             string `json:"statuses"`      // Relationship statuses
	Streets              string `json:"streets"`       // Streets IDs
	Travellers           int    `json:"travellers"`    // Travellers only
	UniFrom              int    `json:"uni_from"`      // University graduation year from
	UniTo                int    `json:"uni_to"`        // University graduation year to
	UserBrowsers         string `json:"user_browsers"` // Browsers
	UserDevices          string `json:"user_devices"`  // Devices
	UserOs               string `json:"user_os"`       // Operating systems
}

AdsCriteria struct

type AdsDemoStats

type AdsDemoStats struct {
	ID    int                `json:"id"` // Object ID
	Stats adsDemostatsFormat `json:"stats"`
	Type  string             `json:"type"`
}

AdsDemoStats struct

type AdsFloodStats

type AdsFloodStats struct {
	Left    int `json:"left"`    // Requests left
	Refresh int `json:"refresh"` // Time to refresh in seconds
}

AdsFloodStats struct

type AdsLinkStatus

type AdsLinkStatus struct {
	Description string `json:"description"`  // Reject reason
	RedirectURL string `json:"redirect_url"` // URL
	Status      string `json:"status"`       // Link status
}

AdsLinkStatus struct

type AdsPromotedPostReach

type AdsPromotedPostReach struct {
	Hide             int `json:"hide"`              // Hides amount
	ID               int `json:"id"`                // Object ID from 'ids' parameter
	JoinGroup        int `json:"join_group"`        // Community joins
	Links            int `json:"links"`             // Link clicks
	ReachSubscribers int `json:"reach_subscribers"` // Subscribers reach
	ReachTotal       int `json:"reach_total"`       // Total reach
	Report           int `json:"report"`            // Reports amount
	ToGroup          int `json:"to_group"`          // Community clicks
	Unsubscribe      int `json:"unsubscribe"`       // 'Unsubscribe' events amount
	VideoViews100p   int `json:"video_views_100p"`  // Video views for 100 percent
	VideoViews25p    int `json:"video_views_25p"`   // Video views for 25 percent
	VideoViews3s     int `json:"video_views_3s"`    // Video views for 3 seconds
	VideoViews50p    int `json:"video_views_50p"`   // Video views for 50 percent
	VideoViews75p    int `json:"video_views_75p"`   // Video views for 75 percent
	VideoViewsStart  int `json:"video_views_start"` // Video starts
}

AdsPromotedPostReach struct

type AdsRejectReason

type AdsRejectReason struct {
	Comment string     `json:"comment"` // Comment text
	Rules   []adsRules `json:"rules"`
}

AdsRejectReason struct

type AdsStats

type AdsStats struct {
	ID    int            `json:"id"` // Object ID
	Stats adsStatsFormat `json:"stats"`
	Type  string         `json:"type"`
}

AdsStats struct

type AdsTargSettings

type AdsTargSettings struct {
}

AdsTargSettings struct

type AdsTargStats

type AdsTargStats struct {
	AudienceCount  int     `json:"audience_count"`  // Audience
	RecommendedCpc float64 `json:"recommended_cpc"` // Recommended CPC value
	RecommendedCpm float64 `json:"recommended_cpm"` // Recommended CPM value
}

AdsTargStats struct

type AdsTargSuggestions

type AdsTargSuggestions struct {
	ID   int    `json:"id"`   // Object ID
	Name string `json:"name"` // Object name
}

AdsTargSuggestions struct

type AdsTargSuggestionsCities

type AdsTargSuggestionsCities struct {
	ID     int    `json:"id"`     // Object ID
	Name   string `json:"name"`   // Object name
	Parent string `json:"parent"` // Parent object
}

AdsTargSuggestionsCities struct

type AdsTargSuggestionsRegions

type AdsTargSuggestionsRegions struct {
	ID   int    `json:"id"`   // Object ID
	Name string `json:"name"` // Object name
	Type string `json:"type"` // Object type
}

AdsTargSuggestionsRegions struct

type AdsTargSuggestionsSchools

type AdsTargSuggestionsSchools struct {
	Desc   string `json:"desc"`   // Full school title
	ID     int    `json:"id"`     // School ID
	Name   string `json:"name"`   // School title
	Parent string `json:"parent"` // City name
	Type   string `json:"type"`
}

AdsTargSuggestionsSchools struct

type AdsTargetGroup

type AdsTargetGroup struct {
	AudienceCount int    `json:"audience_count"` // Audience
	Domain        string `json:"domain"`         // Site domain
	ID            int    `json:"id"`             // Group ID
	Lifetime      int    `json:"lifetime"`       // Number of days for user to be in group
	Name          string `json:"name"`           // Group name
	Pixel         string `json:"pixel"`          // Pixel code
}

AdsTargetGroup struct

type AdsUsers

type AdsUsers struct {
	Accesses []adsAccesses `json:"accesses"`
	UserID   int           `json:"user_id"` // User ID
}

AdsUsers struct

type AppsApp

type AppsApp struct {
	AuthorGroup     int           `json:"author_group"`     // Official community's ID
	AuthorID        int           `json:"author_id"`        // Application author's ID
	AuthorURL       string        `json:"author_url"`       // Application author's URL
	Banner1120      string        `json:"banner_1120"`      // URL of the app banner with 1120 px in width
	Banner560       string        `json:"banner_560"`       // URL of the app banner with 560 px in width
	CatalogPosition int           `json:"catalog_position"` // Catalog position
	Description     string        `json:"description"`      // Application description
	Friends         []int         `json:"friends"`
	Genre           string        `json:"genre"`         // Genre name
	GenreID         int           `json:"genre_id"`      // Genre ID
	Icon139         string        `json:"icon_139"`      // URL of the app icon with 139 px in width
	Icon150         string        `json:"icon_150"`      // URL of the app icon with 150 px in width
	Icon278         string        `json:"icon_278"`      // URL of the app icon with 279 px in width
	Icon75          string        `json:"icon_75"`       // URL of the app icon with 75 px in width
	ID              int           `json:"id"`            // Application ID
	International   int           `json:"international"` // Information whether the application is multilanguage
	IsInCatalog     int           `json:"is_in_catalog"` // Information whether application is in mobile catalog
	LeaderboardType int           `json:"leaderboard_type"`
	MembersCount    int           `json:"members_count"`  // Members number
	PlatformID      int           `json:"platform_id"`    // Application ID in store
	PublishedDate   int           `json:"published_date"` // Date when the application has been published in Unixtime
	ScreenName      string        `json:"screen_name"`    // Screen name
	Screenshots     []PhotosPhoto `json:"screenshots"`
	Section         string        `json:"section"` // Application section name
	Title           string        `json:"title"`   // Application title
	Type            string        `json:"type"`
	Icon16          string        `json:"icon_16"`
	PushEnabled     int           `json:"push_enabled"`
}

AppsApp struct

type AppsLeaderboard

type AppsLeaderboard struct {
	Level  int `json:"level"`   // Level
	Points int `json:"points"`  // Points number
	Score  int `json:"score"`   // Score number
	UserID int `json:"user_id"` // User ID
}

AppsLeaderboard struct

type AppsScope

type AppsScope struct {
	Name  string `json:"name"`  // Scope name
	Title string `json:"title"` // Scope title
}

AppsScope Scope description

type Article

type Article struct {
	ID            int         `json:"id"`
	OwnerID       int         `json:"owner_id"`
	OwnerName     string      `json:"owner_name"`
	OwnerPhoto    string      `json:"owner_photo"`
	State         string      `json:"state"`
	CanReport     bool        `json:"can_report"`
	IsFavorite    bool        `json:"is_favorite"`
	Title         string      `json:"title"`
	Subtitle      string      `json:"subtitle"`
	Views         int         `json:"views"`
	Shares        int         `json:"shares"`
	URL           string      `json:"url"`
	ViewURL       string      `json:"view_url"`
	AccessKey     string      `json:"access_key"`
	PublishedDate int         `json:"published_date"`
	Photo         PhotosPhoto `json:"photo"`
}

Article struct

type AudioAudio

type AudioAudio struct {
	AccessKey    string `json:"access_key"` // Access key for the audio
	Artist       string `json:"artist"`     // Artist name
	ID           int    `json:"id"`         // Audio ID
	IsExplicit   bool   `json:"is_explicit"`
	IsFocusTrack bool   `json:"is_focus_track"`
	IsLicensed   bool   `json:"is_licensed"`
	OwnerID      int    `json:"owner_id"` // Audio owner's ID
	Title        string `json:"title"`    // Title
	URL          string `json:"url"`      // URL of mp3 file
}

AudioAudio struct

func (AudioAudio) ToAttachment

func (audio AudioAudio) ToAttachment() string

ToAttachment return attachment format

type AudioAudioFull

type AudioAudioFull struct {
	ID          int                `json:"id"`
	OwnerID     int                `json:"owner_id"`
	Artist      string             `json:"artist"`
	Title       string             `json:"title"`
	Duration    int                `json:"duration"`
	Date        int                `json:"date"`
	URL         string             `json:"url"`
	IsHq        bool               `json:"is_hq"`
	IsExplicit  bool               `json:"is_explicit"`
	LyricsID    int                `json:"lyrics_id"`
	AlbumID     int                `json:"album_id"`
	GenreID     int                `json:"genre_id"`
	TrackCode   string             `json:"track_code"`
	NoSearch    int                `json:"no_search"`
	MainArtists []audioAudioArtist `json:"main_artists"`
}

AudioAudioFull struct

func (AudioAudioFull) ToAttachment

func (audio AudioAudioFull) ToAttachment() string

ToAttachment return attachment format

type AudioAudioUploadResponse

type AudioAudioUploadResponse struct {
	Audio    string `json:"audio"`
	Hash     string `json:"hash"`
	Redirect string `json:"redirect"`
	Server   int    `json:"server"`
}

AudioAudioUploadResponse struct

type AudioLyrics

type AudioLyrics struct {
	LyricsID int    `json:"lyrics_id"`
	Text     string `json:"text"`
}

AudioLyrics struct

type AudioNewFunc

type AudioNewFunc func(AudioNewObject, int)

AudioNewFunc func

type AudioNewObject

type AudioNewObject AudioAudioFull

AudioNewObject struct

type BaseCountry

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

BaseCountry struct

type BaseObject

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

BaseObject struct

type BaseObjectCount

type BaseObjectCount struct {
	Count int `json:"count"`
}

BaseObjectCount struct

type BaseRequestParam

type BaseRequestParam struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

BaseRequestParam struct

type BoardPostDeleteFunc

type BoardPostDeleteFunc func(BoardPostDeleteObject, int)

BoardPostDeleteFunc func

type BoardPostDeleteObject

type BoardPostDeleteObject struct {
	TopicOwnerID int `json:"topic_owner_id"`
	TopicID      int `json:"topic_id"`
	ID           int `json:"id"`
}

BoardPostDeleteObject struct

type BoardPostEditFunc

type BoardPostEditFunc func(BoardPostEditObject, int)

BoardPostEditFunc func

type BoardPostEditObject

type BoardPostEditObject BoardTopicComment

BoardPostEditObject struct

type BoardPostNewFunc

type BoardPostNewFunc func(BoardPostNewObject, int)

BoardPostNewFunc func

type BoardPostNewObject

type BoardPostNewObject BoardTopicComment

BoardPostNewObject struct

type BoardPostRestoreFunc

type BoardPostRestoreFunc func(BoardPostRestoreObject, int)

BoardPostRestoreFunc func

type BoardPostRestoreObject

type BoardPostRestoreObject BoardTopicComment

BoardPostRestoreObject struct

type BoardTopic

type BoardTopic struct {
	Comments  int    `json:"comments"`   // Comments number
	Created   int    `json:"created"`    // Date when the topic has been created in Unixtime
	CreatedBy int    `json:"created_by"` // Creator ID
	ID        int    `json:"id"`         // Topic ID
	IsClosed  int    `json:"is_closed"`  // Information whether the topic is closed
	IsFixed   int    `json:"is_fixed"`   // Information whether the topic is fixed
	Title     string `json:"title"`      // Topic title
	Updated   int    `json:"updated"`    // Date when the topic has been updated in Unixtime
	UpdatedBy int    `json:"updated_by"` // ID of user who updated the topic
}

BoardTopic struct

type BoardTopicComment

type BoardTopicComment struct {
	Attachments  []wallCommentAttachment `json:"attachments"`
	Date         int                     `json:"date"`        // Date when the comment has been added in Unixtime
	FromID       int                     `json:"from_id"`     // Author ID
	ID           int                     `json:"id"`          // Comment ID
	RealOffset   int                     `json:"real_offset"` // Real position of the comment
	Text         string                  `json:"text"`        // Comment text
	TopicID      int                     `json:"topic_id"`
	TopicOwnerID int                     `json:"topic_owner_id"`
	Likes        baseLikesInfo           `json:"likes"`
}

BoardTopicComment struct

type BoardTopicPoll

type BoardTopicPoll struct {
	AnswerID int           `json:"answer_id"` // Current user's answer ID
	Answers  []pollsAnswer `json:"answers"`
	Created  int           `json:"created"`   // Date when poll has been created in Unixtime
	IsClosed int           `json:"is_closed"` // Information whether the poll is closed
	OwnerID  int           `json:"owner_id"`  // Poll owner's ID
	PollID   int           `json:"poll_id"`   // Poll ID
	Question string        `json:"question"`  // Poll question
	Votes    string        `json:"votes"`     // Votes number
}

BoardTopicPoll struct

type DatabaseCity

type DatabaseCity struct {
	ID        int    `json:"id"`    // City ID
	Title     string `json:"title"` // City title
	Area      string `json:"area"`
	Region    string `json:"region"`
	Important int    `json:"important"`
}

DatabaseCity struct

type DatabaseFaculty

type DatabaseFaculty struct {
	ID    int    `json:"id"`    // Faculty ID
	Title string `json:"title"` // Faculty title
}

DatabaseFaculty struct

type DatabaseMetroStation

type DatabaseMetroStation struct {
	ID    int    `json:"id"`    // Metro station ID
	Name  string `json:"name"`  // Metro station name
	Color string `json:"color"` // Metro station color
}

DatabaseMetroStation struct

type DatabaseRegion

type DatabaseRegion struct {
	ID    int    `json:"id"`    // Region ID
	Title string `json:"title"` // Region title
}

DatabaseRegion struct

type DatabaseSchool

type DatabaseSchool struct {
	ID    int    `json:"id"`    // School ID
	Title string `json:"title"` // School title
}

DatabaseSchool struct

type DatabaseStation

type DatabaseStation struct {
	CityID int    `json:"city_id"` // City ID
	Color  string `json:"color"`   // Hex color code without #
	ID     int    `json:"id"`      // Station ID
	Name   string `json:"name"`    // Station name
}

DatabaseStation struct

type DatabaseUniversity

type DatabaseUniversity struct {
	ID    int    `json:"id"`    // University ID
	Title string `json:"title"` // University title
}

DatabaseUniversity struct

type DocsDoc

type DocsDoc struct {
	AccessKey  string         `json:"access_key"` // Access key for the document
	Date       int            `json:"date"`       // Date when file has been uploaded in Unixtime
	Ext        string         `json:"ext"`        // File extension
	ID         int            `json:"id"`         // Document ID
	IsLicensed int            `json:"is_licensed"`
	OwnerID    int            `json:"owner_id"` // Document owner ID
	Preview    docsDocPreview `json:"preview"`
	Size       int            `json:"size"`  // File size in bites
	Title      string         `json:"title"` // Document title
	Type       int            `json:"type"`  // Document type
	URL        string         `json:"url"`   // File URL
}

DocsDoc struct

func (DocsDoc) ToAttachment

func (doc DocsDoc) ToAttachment() string

ToAttachment return attachment format

type DocsDocTypes

type DocsDocTypes struct {
	Count int    `json:"count"` // Number of docs
	ID    int    `json:"id"`    // Doc type ID
	Title string `json:"title"` // Doc type title
}

DocsDocTypes struct

type DocsDocUploadResponse

type DocsDocUploadResponse struct {
	File string `json:"file"` // Uploaded file data
}

DocsDocUploadResponse struct

type FaveFavesLink struct {
	URL         string      `json:"url"`
	Title       string      `json:"title"`
	Caption     string      `json:"caption"`
	Description string      `json:"description"`
	Photo       PhotosPhoto `json:"photo"`
	IsFavorite  bool        `json:"is_favorite"`
	ID          string      `json:"id"`
}

FaveFavesLink struct

type FaveItem

type FaveItem struct {
	Type      string           `json:"type"`
	Seen      bool             `json:"seen"`
	AddedDate int              `json:"added_date"`
	Tags      []FaveTag        `json:"tags"`
	Link      FaveFavesLink    `json:"link,omitempty"`
	Post      WallWallpost     `json:"post,omitempty"`
	Video     VideoVideoFull   `json:"video,omitempty"`
	Product   MarketMarketItem `json:"product,omitempty"`
	Article   Article          `json:"article,omitempty"`
}

FaveItem struct

type FavePage

type FavePage struct {
	Type        string      `json:"type"`
	Description string      `json:"description"`
	Tags        []FaveTag   `json:"tags"`
	UpdatedDate int         `json:"updated_date"`
	User        UsersUser   `json:"user"`
	Group       GroupsGroup `json:"group"`
}

FavePage struct

type FaveTag

type FaveTag struct {
	ID   int    `json:"id"`
	Name string `json:"name"`
}

FaveTag struct

type FriendsFriendStatus

type FriendsFriendStatus struct {
	FriendStatus   int    `json:"friend_status"`
	ReadState      int    `json:"read_state"`      // Information whether request is unviewed
	RequestMessage string `json:"request_message"` // Message sent with request
	Sign           string `json:"sign"`            // MD5 hash for the result validation
	UserID         int    `json:"user_id"`         // User ID
}

FriendsFriendStatus struct

type FriendsFriendsList

type FriendsFriendsList struct {
	ID   int    `json:"id"`   // List ID
	Name string `json:"name"` // List title
}

FriendsFriendsList struct

type FriendsRequests

type FriendsRequests struct {
	From   string                `json:"from"` // ID of the user by whom friend has been suggested
	Mutual friendsRequestsMutual `json:"mutual"`
	UserID int                   `json:"user_id"` // User ID
}

FriendsRequests struct

type GiftsGift

type GiftsGift struct {
	Date     int         `json:"date"`    // Date when gist has been sent in Unixtime
	FromID   int         `json:"from_id"` // Gift sender ID
	Gift     GiftsLayout `json:"gift"`
	GiftHash string      `json:"gift_hash"` // Hash
	ID       int         `json:"id"`        // Gift ID
	Message  string      `json:"message"`   // Comment text
	Privacy  int         `json:"privacy"`

	Description string `json:"description"`
	PaymentType string `json:"payment_type"`
	Price       int    `json:"price"`
	PriceStr    string `json:"price_str"`
}

GiftsGift struct

type GiftsLayout

type GiftsLayout struct {
	ID                int    `json:"id"`
	Thumb256          string `json:"thumb_256"` // URL of the preview image with 256 px in width
	Thumb48           string `json:"thumb_48"`  // URL of the preview image with 48 px in width
	Thumb96           string `json:"thumb_96"`  // URL of the preview image with 96 px in width
	StickersProductID int    `json:"stickers_product_id"`
}

GiftsLayout struct

type GroupChangePhotoFunc

type GroupChangePhotoFunc func(GroupChangePhotoObject, int)

GroupChangePhotoFunc func

type GroupChangePhotoObject

type GroupChangePhotoObject struct {
	UserID int         `json:"user_id"`
	Photo  PhotosPhoto `json:"photo"`
}

GroupChangePhotoObject struct

type GroupChangeSettingsFunc

type GroupChangeSettingsFunc func(GroupChangeSettingsObject, int)

GroupChangeSettingsFunc func

type GroupChangeSettingsObject

type GroupChangeSettingsObject struct {
	UserID  int `json:"user_id"`
	Changes struct {
		Title                 changes    `json:"title"`
		Description           changes    `json:"description"`
		Access                changesInt `json:"access"`
		ScreenName            changes    `json:"screen_name"`
		PublicCategory        changesInt `json:"public_category"`
		PublicSubcategory     changesInt `json:"public_subcategory"`
		AgeLimits             changesInt `json:"age_limits"`
		Website               changes    `json:"website"`
		StatusDefault         changes    `json:"status_default"`
		Wall                  changesInt `json:"wall"`                    // на основе ответа
		Replies               changesInt `json:"replies"`                 // на основе ответа
		Topics                changesInt `json:"topics"`                  // на основе ответа
		Audio                 changesInt `json:"audio"`                   // на основе ответа
		Photos                changesInt `json:"photos"`                  // на основе ответа
		Video                 changesInt `json:"video"`                   // на основе ответа
		Market                changesInt `json:"market"`                  // на основе ответа
		Docs                  changesInt `json:"docs"`                    // на основе ответа
		Messages              changesInt `json:"messages"`                // на основе ответа
		EventGroupID          changesInt `json:"event_group_id"`          // на основе ответа
		Links                 changes    `json:"links"`                   // на основе ответа
		Email                 changes    `json:"email"`                   // на основе ответа
		EventStartDate        changesInt `json:"event_start_date::"`      // на основе ответа
		EventFinishDate       changesInt `json:"event_finish_date:"`      // на основе ответа
		Subject               changes    `json:"subject"`                 // на основе ответа
		MarketWiki            changes    `json:"market_wiki"`             // на основе ответа
		DisableMarketComments changesInt `json:"disable_market_comments"` // на основе ответа
		Phone                 changesInt `json:"phone"`                   // на основе ответа
		CountryID             changesInt `json:"country_id"`              // на основе ответа
		CityID                changesInt `json:"city_id"`                 // на основе ответа
	} `json:"changes"`
}

GroupChangeSettingsObject struct спасибо vk.com/eee BUG(VK): Phone https://vk.com/bugtracker?act=show&id=64240 BUG(VK): Email https://vk.com/bugtracker?act=show&id=86650

type GroupEvent

type GroupEvent struct {
	Type    string          `json:"type"`
	Object  json.RawMessage `json:"object"`
	GroupID int             `json:"group_id"`
	Secret  string          `json:"secret"`
}

GroupEvent struct

type GroupJoinFunc

type GroupJoinFunc func(GroupJoinObject, int)

GroupJoinFunc func

type GroupJoinObject

type GroupJoinObject struct {
	UserID   int    `json:"user_id"`
	JoinType string `json:"join_type"`
}

GroupJoinObject struct

type GroupLeaveFunc

type GroupLeaveFunc func(GroupLeaveObject, int)

GroupLeaveFunc func

type GroupLeaveObject

type GroupLeaveObject struct {
	UserID int `json:"user_id"`
	Self   int `json:"self"`
}

GroupLeaveObject struct

type GroupOfficersEditFunc

type GroupOfficersEditFunc func(GroupOfficersEditObject, int)

GroupOfficersEditFunc func

type GroupOfficersEditObject

type GroupOfficersEditObject struct {
	AdminID  int `json:"admin_id"`
	UserID   int `json:"user_id"`
	LevelOld int `json:"level_old"`
	LevelNew int `json:"level_new"`
}

GroupOfficersEditObject struct

type GroupsAddress

type GroupsAddress struct {
	AdditionalAddress string                 `json:"additional_address"` // Additional address to the place (6 floor, left door)
	Address           string                 `json:"address"`            // String address to the place (Nevsky, 28)
	CityID            int                    `json:"city_id"`            // City id of address
	CountryID         int                    `json:"country_id"`         // Country id of address
	Distance          int                    `json:"distance"`           // Distance from the point
	ID                int                    `json:"id"`                 // Address id
	Latitude          float64                `json:"latitude"`           // Address latitude
	Longitude         float64                `json:"longitude"`          // Address longitude
	MetroStationID    int                    `json:"metro_station_id"`   // Metro id of address
	Phone             string                 `json:"phone"`              // Address phone
	TimeOffset        int                    `json:"time_offset"`        // Time offset int minutes from utc time
	Timetable         groupsAddressTimetable `json:"timetable"`          // Week timetable for the address
	Title             string                 `json:"title"`              // Title of the place (Zinger, etc)
	WorkInfoStatus    string                 `json:"work_info_status"`   // Status of information about timetable
}

GroupsAddress struct

type GroupsAddressesInfo

type GroupsAddressesInfo struct {
	IsEnabled     bool `json:"is_enabled"`      // Information whether addresses is enabled
	MainAddressID int  `json:"main_address_id"` // Main address id for group
}

GroupsAddressesInfo struct

type GroupsCallbackServer

type GroupsCallbackServer struct {
	CreatorID int    `json:"creator_id"`
	ID        int    `json:"id"`
	SecretKey string `json:"secret_key"`
	Status    string `json:"status"`
	Title     string `json:"title"`
	URL       string `json:"url"`
}

GroupsCallbackServer struct

type GroupsCallbackSettings

type GroupsCallbackSettings struct {
	APIVersion string               `json:"api_version"` // API version used for the events
	Events     GroupsLongPollEvents `json:"events"`
}

GroupsCallbackSettings struct

type GroupsGroup

type GroupsGroup struct {
	AdminLevel   int    `json:"admin_level"`
	Deactivated  string `json:"deactivated"`   // Information whether community is banned
	FinishDate   int    `json:"finish_date"`   // Finish date in Unixtime format
	ID           int    `json:"id"`            // Community ID
	IsAdmin      int    `json:"is_admin"`      // Information whether current user is administrator
	IsAdvertiser int    `json:"is_advertiser"` // Information whether current user is advertiser
	IsClosed     int    `json:"is_closed"`
	IsMember     int    `json:"is_member"`   // Information whether current user is member
	Name         string `json:"name"`        // Community name
	Photo100     string `json:"photo_100"`   // URL of square photo of the community with 100 pixels in width
	Photo200     string `json:"photo_200"`   // URL of square photo of the community with 200 pixels in width
	Photo50      string `json:"photo_50"`    // URL of square photo of the community with 50 pixels in width
	ScreenName   string `json:"screen_name"` // Domain of the community page
	StartDate    int    `json:"start_date"`  // Start date in Unixtime format
	Type         string `json:"type"`

	Market               GroupsMarketInfo     `json:"market"`
	MemberStatus         int                  `json:"member_status"` // Current user's member status
	IsFavorite           int                  `json:"is_favorite"`   // Information whether community is in faves
	IsSubscribed         int                  `json:"is_subscribed"` // Information whether current user is subscribed
	City                 BaseObject           `json:"city"`
	Country              BaseCountry          `json:"country"`
	Verified             int                  `json:"verified"`      // Information whether community is verified
	Description          string               `json:"description"`   // Community description
	WikiPage             string               `json:"wiki_page"`     // Community's main wiki page title
	MembersCount         int                  `json:"members_count"` // Community members number
	Counters             groupsCountersGroup  `json:"counters"`
	Cover                groupsCover          `json:"cover"`
	CanPost              int                  `json:"can_post"`          // Information whether current user can post on community's wall
	CanSeeAllPosts       int                  `json:"can_see_all_posts"` // Information whether current user can see all posts on community's wall
	Activity             string               `json:"activity"`          // Type of group, start date of event or category of public page
	FixedPost            int                  `json:"fixed_post"`        // Fixed post ID
	CanCreateTopic       int                  `json:"can_create_topic"`  // Information whether current user can create topic
	CanUploadVideo       int                  `json:"can_upload_video"`  // Information whether current user can upload video
	HasPhoto             int                  `json:"has_photo"`         // Information whether community has photo
	Status               string               `json:"status"`            // Community status
	MainAlbumID          int                  `json:"main_album_id"`     // Community's main photo album ID
	Links                []GroupsLinksItem    `json:"links"`
	Contacts             []groupsContactsItem `json:"contacts"`
	Site                 string               `json:"site"` // Community's website
	MainSection          int                  `json:"main_section"`
	Trending             int                  `json:"trending"`               // Information whether the community has a fire pictogram.
	CanMessage           int                  `json:"can_message"`            // Information whether current user can send a message to community
	IsMessagesBlocked    int                  `json:"is_messages_blocked"`    // Information whether community can send a message to current user
	CanSendNotify        int                  `json:"can_send_notify"`        // Information whether community can send notifications by phone number to current user
	OnlineStatus         GroupsOnlineStatus   `json:"online_status"`          // Status of replies in community messages
	AgeLimits            int                  `json:"age_limits"`             // Information whether age limit
	BanInfo              groupsGroupBanInfo   `json:"ban_info"`               // User ban info
	Addresses            GroupsAddressesInfo  `json:"addresses"`              // Info about addresses in groups
	IsSubscribedPodcasts bool                 `json:"is_subscribed_podcasts"` // Information whether current user is subscribed to podcasts
	CanSubscribePodcasts bool                 `json:"can_subscribe_podcasts"` // Owner in whitelist or not
	CanSubscribePosts    bool                 `json:"can_subscribe_posts"`    // Can subscribe to wall
}

GroupsGroup struct

func (GroupsGroup) ToMention

func (group GroupsGroup) ToMention() string

ToMention return mention

type GroupsGroupCategory

type GroupsGroupCategory struct {
	ID            int                  `json:"id"`   // Category ID
	Name          string               `json:"name"` // Category name
	Subcategories []baseObjectWithName `json:"subcategories"`
}

GroupsGroupCategory struct

type GroupsGroupCategoryFull

type GroupsGroupCategoryFull struct {
	ID            int                   `json:"id"`         // Category ID
	Name          string                `json:"name"`       // Category name
	PageCount     int                   `json:"page_count"` // Pages number
	PagePreviews  []GroupsGroup         `json:"page_previews"`
	Subcategories []GroupsGroupCategory `json:"subcategories"`
}

GroupsGroupCategoryFull struct

type GroupsGroupLink struct {
	Desc            string `json:"desc"`       // Link description
	EditTitle       int    `json:"edit_title"` // Information whether the title can be edited
	Name            string `json:"name"`
	ID              int    `json:"id"`               // Link ID
	ImageProcessing int    `json:"image_processing"` // Information whether the image on processing
	URL             string `json:"url"`              // Link URL
}

GroupsGroupLink struct

type GroupsGroupSettings

type GroupsGroupSettings struct {
	Access             int                             `json:"access"`            // Community access settings
	Address            string                          `json:"address"`           // Community's page domain
	Audio              int                             `json:"audio"`             // Audio settings
	Description        string                          `json:"description"`       // Community description
	Docs               int                             `json:"docs"`              // Docs settings
	ObsceneFilter      int                             `json:"obscene_filter"`    // Information whether the obscene filter is enabled
	ObsceneStopwords   int                             `json:"obscene_stopwords"` // Information whether the stopwords filter is enabled
	ObsceneWords       string                          `json:"obscene_words"`     // The list of stop words
	Photos             int                             `json:"photos"`            // Photos settings
	PublicCategory     int                             `json:"public_category"`   // Information about the group category
	PublicCategoryList []groupsGroupPublicCategoryList `json:"public_category_list"`
	PublicSubcategory  int                             `json:"public_subcategory"` // Information about the group subcategory
	Rss                string                          `json:"rss"`                // URL of the RSS feed
	Subject            int                             `json:"subject"`            // Community subject ID
	SubjectList        []groupsSubjectItem             `json:"subject_list"`
	Title              string                          `json:"title"`   // Community title
	Topics             int                             `json:"topics"`  // Topics settings
	Video              int                             `json:"video"`   // Video settings
	Wall               int                             `json:"wall"`    // Wall settings
	Website            string                          `json:"website"` // Community website
	Wiki               int                             `json:"wiki"`    // Wiki settings
	CountryID          int                             `json:"country_id"`
	CityID             int                             `json:"city_id"`
	Messages           int                             `json:"messages"`
	Articles           int                             `json:"articles"`
	Events             int                             `json:"events"`
	AgeLimits          int                             `json:"age_limits"`
	Market             struct {
		Enabled         int   `json:"enabled"`
		CommentsEnabled int   `json:"comments_enabled"`
		CountryIDs      []int `json:"country_ids"`
		ContactID       int   `json:"contact_id"`
		Currency        struct {
			ID   int    `json:"id"`
			Name string `json:"name"`
		} `json:"currency"`
	} `json:"market"`
	SectionsList     [][]interface{} `json:"sections_list"`
	MainSection      int             `json:"main_section"`
	SecondarySection int             `json:"secondary_section"`
	ActionButton     struct {
		ActionType string        `json:"action_type"`
		Target     []interface{} `json:"target"`
		Title      string        `json:"title"`
	} `json:"action_button"`
	LiveCovers struct {
		IsEnabled bool `json:"is_enabled"`
	} `json:"live_covers"`
}

GroupsGroupSettings struct

type GroupsGroupXtrInvitedBy

type GroupsGroupXtrInvitedBy struct {
	AdminLevel   int    `json:"admin_level"`
	ID           int    `json:"id"`          // Community ID
	InvitedBy    int    `json:"invited_by"`  // Inviter ID
	IsAdmin      int    `json:"is_admin"`    // Information whether current user is manager
	IsClosed     int    `json:"is_closed"`   // Information whether community is closed
	IsMember     int    `json:"is_member"`   // Information whether current user is member
	Name         string `json:"name"`        // Community name
	Photo100     string `json:"photo_100"`   // URL of square photo of the community with 100 pixels in width
	Photo200     string `json:"photo_200"`   // URL of square photo of the community with 200 pixels in width
	Photo50      string `json:"photo_50"`    // URL of square photo of the community with 50 pixels in width
	ScreenName   string `json:"screen_name"` // Domain of the community page
	Type         string `json:"type"`
	IsAdvertiser int    `json:"is_advertiser"` // Information whether current user is advertiser
}

GroupsGroupXtrInvitedBy struct

func (GroupsGroupXtrInvitedBy) ToMention

func (group GroupsGroupXtrInvitedBy) ToMention() string

ToMention return mention

type GroupsLinksItem

type GroupsLinksItem struct {
	Desc      string `json:"desc"`       // Link description
	EditTitle int    `json:"edit_title"` // Information whether the link title can be edited
	ID        int    `json:"id"`         // Link ID
	Name      string `json:"name"`       // Link title
	Photo100  string `json:"photo_100"`  // URL of square image of the link with 100 pixels in width
	Photo50   string `json:"photo_50"`   // URL of square image of the link with 50 pixels in width
	URL       string `json:"url"`        // Link URL
}

GroupsLinksItem struct

type GroupsLongPollEvents

type GroupsLongPollEvents struct {
	MessageNew           int `json:"message_new"`
	MessageReply         int `json:"message_reply"`
	PhotoNew             int `json:"photo_new"`
	AudioNew             int `json:"audio_new"`
	VideoNew             int `json:"video_new"`
	WallReplyNew         int `json:"wall_reply_new"`
	WallReplyEdit        int `json:"wall_reply_edit"`
	WallReplyDelete      int `json:"wall_reply_delete"`
	WallReplyRestore     int `json:"wall_reply_restore"`
	WallPostNew          int `json:"wall_post_new"`
	BoardPostNew         int `json:"board_post_new"`
	BoardPostEdit        int `json:"board_post_edit"`
	BoardPostRestore     int `json:"board_post_restore"`
	BoardPostDelete      int `json:"board_post_delete"`
	PhotoCommentNew      int `json:"photo_comment_new"`
	PhotoCommentEdit     int `json:"photo_comment_edit"`
	PhotoCommentDelete   int `json:"photo_comment_delete"`
	PhotoCommentRestore  int `json:"photo_comment_restore"`
	VideoCommentNew      int `json:"video_comment_new"`
	VideoCommentEdit     int `json:"video_comment_edit"`
	VideoCommentDelete   int `json:"video_comment_delete"`
	VideoCommentRestore  int `json:"video_comment_restore"`
	MarketCommentNew     int `json:"market_comment_new"`
	MarketCommentEdit    int `json:"market_comment_edit"`
	MarketCommentDelete  int `json:"market_comment_delete"`
	MarketCommentRestore int `json:"market_comment_restore"`
	PollVoteNew          int `json:"poll_vote_new"`
	GroupJoin            int `json:"group_join"`
	GroupLeave           int `json:"group_leave"`
	GroupChangeSettings  int `json:"group_change_settings"`
	GroupChangePhoto     int `json:"group_change_photo"`
	GroupOfficersEdit    int `json:"group_officers_edit"`
	MessageAllow         int `json:"message_allow"`
	MessageDeny          int `json:"message_deny"`
	WallRepost           int `json:"wall_repost"`
	UserBlock            int `json:"user_block"`
	UserUnblock          int `json:"user_unblock"`
	MessageEdit          int `json:"message_edit"`
	MessagesEdit         int `json:"messages_edit"` // BUG(VK): https://vk.com/bugtracker?act=show&id=86762
	MessageTypingState   int `json:"message_typing_state"`
	LeadFormsNew         int `json:"lead_forms_new"`
	LikeAdd              int `json:"like_add"`
	LikeRemove           int `json:"like_remove"`
	VkpayTransaction     int `json:"vkpay_transaction"`
	AppPayload           int `json:"app_payload"`
	MessageRead          int `json:"message_read"`
}

GroupsLongPollEvents struct

type GroupsLongPollServer

type GroupsLongPollServer struct {
	Key    string `json:"key"`    // Long Poll key
	Server string `json:"server"` // Long Poll server address
	Ts     string `json:"ts"`     // Number of the last event
}

GroupsLongPollServer struct

type GroupsLongPollSettings

type GroupsLongPollSettings struct {
	APIVersion string               `json:"api_version"` // API version used for the events
	Events     GroupsLongPollEvents `json:"events"`
	IsEnabled  bool                 `json:"is_enabled"` // Shows whether Long Poll is enabled
}

GroupsLongPollSettings struct

type GroupsMarketInfo

type GroupsMarketInfo struct {
	ContactID    int            `json:"contact_id"` // Contact person ID
	Currency     marketCurrency `json:"currency"`
	CurrencyText string         `json:"currency_text"` // Currency name
	Enabled      int            `json:"enabled"`       // Information whether the market is enabled
	MainAlbumID  int            `json:"main_album_id"` // Main market album ID
	PriceMax     int            `json:"price_max"`     // Maximum price
	PriceMin     int            `json:"price_min"`     // Minimum price
}

GroupsMarketInfo struct

type GroupsMemberRole

type GroupsMemberRole struct {
	ID   int    `json:"id"` // User ID
	Role string `json:"role"`
}

GroupsMemberRole struct

type GroupsMemberStatus

type GroupsMemberStatus struct {
	Member      int      `json:"member"`  // Information whether user is a member of the group
	UserID      int      `json:"user_id"` // User ID
	Permissions []string `json:"permissions"`
}

GroupsMemberStatus struct

type GroupsMemberStatusFull

type GroupsMemberStatusFull struct {
	Invitation int `json:"invitation"` // Information whether user has been invited to the group
	Member     int `json:"member"`     // Information whether user is a member of the group
	Request    int `json:"request"`    // Information whether user has send request to the group
	CanInvite  int `json:"can_invite"` // Information whether user can be invite
	CanRecall  int `json:"can_recall"` // Information whether user's invite to the group can be recalled
	UserID     int `json:"user_id"`    // User ID
}

GroupsMemberStatusFull struct

type GroupsOnlineStatus

type GroupsOnlineStatus struct {
	Minutes int    `json:"minutes"` // Estimated time of answer (for status = answer_mark)
	Status  string `json:"status"`
}

GroupsOnlineStatus struct

type GroupsOwnerXtrBanInfo

type GroupsOwnerXtrBanInfo struct {
	BanInfo groupsBanInfo `json:"ban_info"`
	Group   GroupsGroup   `json:"group"`
	Profile UsersUser     `json:"profile"`
	Type    string        `json:"type"`
}

GroupsOwnerXtrBanInfo struct

type GroupsTokenPermissions

type GroupsTokenPermissions struct {
	Mask        int                            `json:"mask"`
	Permissions []groupsTokenPermissionSetting `json:"permissions"`
}

GroupsTokenPermissions struct

type LeadFormsForm

type LeadFormsForm struct {
	FormID        int         `json:"form_id"`
	GroupID       int         `json:"group_id"`
	Photo         interface{} `json:"photo"`
	Name          string      `json:"name"`
	Title         string      `json:"title"`
	Description   string      `json:"description"`
	Confirmation  string      `json:"confirmation"`
	SiteLinkURL   string      `json:"site_link_url"`
	PolicyLinkURL string      `json:"policy_link_url"`
	Questions     []struct {
		Type    string `json:"type"`
		Key     string `json:"key"`
		Label   string `json:"label,omitempty"`
		Options []struct {
			Label string `json:"label"`
			Key   string `json:"key"`
		} `json:"options,omitempty"`
	} `json:"questions"`
	Active       int    `json:"active"`
	LeadsCount   int    `json:"leads_count"`
	PixelCode    string `json:"pixel_code"`
	OncePerUser  int    `json:"once_per_user"`
	NotifyAdmins string `json:"notify_admins"`
	NotifyEmails string `json:"notify_emails"`
	URL          string `json:"url"`
}

LeadFormsForm struct

type LeadFormsLead

type LeadFormsLead struct {
	LeadID  string `json:"lead_id"`
	UserID  string `json:"user_id"`
	Date    string `json:"date"`
	Answers []struct {
		Key    string `json:"key"`
		Answer struct {
			Value string `json:"value"`
		} `json:"answer"`
	} `json:"answers"`
	AdID string `json:"ad_id"`
}

LeadFormsLead struct

type LeadFormsNewFunc

type LeadFormsNewFunc func(LeadFormsNewObject, int)

LeadFormsNewFunc func

type LeadFormsNewObject

type LeadFormsNewObject struct {
	LeadID   int    `json:"lead_id"`
	GroupID  int    `json:"group_id"`
	UserID   int    `json:"user_id"`
	FormID   int    `json:"form_id"`
	FormName string `json:"form_name"`
	AdID     int    `json:"ad_id"`
	Answers  []struct {
		Key      string `json:"key"`
		Question string `json:"question"`
		Answer   string `json:"answer"`
	} `json:"answers"`
}

LeadFormsNewObject struct

type LeadsChecked

type LeadsChecked struct {
	Reason    string `json:"reason"` // Reason why user can't start the lead
	Result    string `json:"result"`
	Sid       string `json:"sid"`        // Session ID
	StartLink string `json:"start_link"` // URL user should open to start the lead
}

LeadsChecked struct

type LeadsComplete

type LeadsComplete struct {
	Cost     int `json:"cost"`  // Offer cost
	Limit    int `json:"limit"` // Offer limit
	Spent    int `json:"spent"` // Amount of spent votes
	Success  int `json:"success"`
	TestMode int `json:"test_mode"` // Information whether test mode is enabled
}

LeadsComplete struct

type LeadsEntry

type LeadsEntry struct {
	Aid       int    `json:"aid"`        // Application ID
	Comment   string `json:"comment"`    // Comment text
	Date      int    `json:"date"`       // Date when the action has been started in Unixtime
	Sid       string `json:"sid"`        // Session string ID
	StartDate int    `json:"start_date"` // Start date in Unixtime (for status=2)
	Status    int    `json:"status"`     // Action type
	TestMode  int    `json:"test_mode"`  // Information whether test mode is enabled
	UID       int    `json:"uid"`        // User ID
}

LeadsEntry struct

type LeadsLead

type LeadsLead struct {
	Completed   int           `json:"completed"` // Completed offers number
	Cost        int           `json:"cost"`      // Offer cost
	Days        leadsLeadDays `json:"days"`
	Impressions int           `json:"impressions"` // Impressions number
	Limit       int           `json:"limit"`       // Lead limit
	Spent       int           `json:"spent"`       // Amount of spent votes
	Started     int           `json:"started"`     // Started offers number
}

LeadsLead struct

type LeadsStart

type LeadsStart struct {
	TestMode int    `json:"test_mode"` // Information whether test mode is enabled
	VkSid    string `json:"vk_sid"`    // Session data
}

LeadsStart struct

type LongpollBotResponse

type LongpollBotResponse struct {
	Ts      string       `json:"ts"`
	Updates []GroupEvent `json:"updates"`
	Failed  int          `json:"failed"`
}

LongpollBotResponse struct

type LongpollResponse

type LongpollResponse struct {
	Ts      int             `json:"ts"`
	Updates [][]interface{} `json:"updates"`
	Failed  int             `json:"failed"`
}

LongpollResponse struct

type MarketCommentDeleteFunc

type MarketCommentDeleteFunc func(MarketCommentDeleteObject, int)

MarketCommentDeleteFunc func

type MarketCommentDeleteObject

type MarketCommentDeleteObject struct {
	OwnerID   int `json:"owner_id"`
	ID        int `json:"id"`
	UserID    int `json:"user_id"`
	DeleterID int `json:"deleter_id"`
	ItemID    int `json:"item_id"`
}

MarketCommentDeleteObject struct

type MarketCommentEditFunc

type MarketCommentEditFunc func(MarketCommentEditObject, int)

MarketCommentEditFunc func

type MarketCommentEditObject

type MarketCommentEditObject WallWallComment

MarketCommentEditObject struct

type MarketCommentNewFunc

type MarketCommentNewFunc func(MarketCommentNewObject, int)

MarketCommentNewFunc func

type MarketCommentNewObject

type MarketCommentNewObject WallWallComment

MarketCommentNewObject struct

type MarketCommentRestoreFunc

type MarketCommentRestoreFunc func(MarketCommentRestoreObject, int)

MarketCommentRestoreFunc func

type MarketCommentRestoreObject

type MarketCommentRestoreObject WallWallComment

MarketCommentRestoreObject struct

type MarketMarketAlbum

type MarketMarketAlbum struct {
	Count       int         `json:"count"`    // Items number
	ID          int         `json:"id"`       // Market album ID
	OwnerID     int         `json:"owner_id"` // Market album owner's ID
	Photo       PhotosPhoto `json:"photo"`
	Title       string      `json:"title"`        // Market album title
	UpdatedTime int         `json:"updated_time"` // Date when album has been updated last time in Unixtime
}

MarketMarketAlbum struct

func (MarketMarketAlbum) ToAttachment

func (marketAlbum MarketMarketAlbum) ToAttachment() string

ToAttachment return attachment format

type MarketMarketCategory

type MarketMarketCategory struct {
	ID      int           `json:"id"`   // Category ID
	Name    string        `json:"name"` // Category name
	Section marketSection `json:"section"`
}

MarketMarketCategory struct

type MarketMarketItem

type MarketMarketItem struct {
	AccessKey    string               `json:"access_key"` // Access key for the market item
	Availability int                  `json:"availability"`
	Category     MarketMarketCategory `json:"category"`
	Date         int                  `json:"date"`        // Date when the item has been created in Unixtime
	Description  string               `json:"description"` // Item description
	ID           int                  `json:"id"`          // Item ID
	OwnerID      int                  `json:"owner_id"`    // Item owner's ID
	Price        marketPrice          `json:"price"`
	ThumbPhoto   string               `json:"thumb_photo"` // URL of the preview image
	Title        string               `json:"title"`       // Item title
	IsFavorite   bool                 `json:"is_favorite"`
	AlbumsIds    []int                `json:"albums_ids"`
	Photos       []PhotosPhoto        `json:"photos"`
	CanComment   int                  `json:"can_comment"`
	CanRepost    int                  `json:"can_repost"`
	Likes        baseLikesInfo        `json:"likes"`
	ViewsCount   int                  `json:"views_count"`
	URL          string               `json:"url"` // URL to item
	ButtonTitle  string               `json:"button_title"`
}

MarketMarketItem struct

func (MarketMarketItem) ToAttachment

func (market MarketMarketItem) ToAttachment() string

ToAttachment return attachment format

type MessageAllowFunc

type MessageAllowFunc func(MessageAllowObject, int)

MessageAllowFunc func

type MessageAllowObject

type MessageAllowObject struct {
	UserID int    `json:"user_id"`
	Key    string `json:"key"`
}

MessageAllowObject struct

type MessageDenyFunc

type MessageDenyFunc func(MessageDenyObject, int)

MessageDenyFunc func

type MessageDenyObject

type MessageDenyObject struct {
	UserID int `json:"user_id"`
}

MessageDenyObject struct

type MessageEditFunc

type MessageEditFunc func(MessageEditObject, int)

MessageEditFunc func

type MessageEditObject

type MessageEditObject MessagesMessage

MessageEditObject struct

type MessageNewFunc

type MessageNewFunc func(MessageNewObject, int)

MessageNewFunc func

type MessageNewObject

type MessageNewObject MessagesMessage

MessageNewObject struct

type MessageReplyFunc

type MessageReplyFunc func(MessageReplyObject, int)

MessageReplyFunc func

type MessageReplyObject

type MessageReplyObject MessagesMessage

MessageReplyObject struct

type MessageTypingStateFunc

type MessageTypingStateFunc func(MessageTypingStateObject, int)

MessageTypingStateFunc func

type MessageTypingStateObject

type MessageTypingStateObject struct {
	State  string `json:"state"`
	FromID int    `json:"from_id"`
	ToID   int    `json:"to_id"`
}

MessageTypingStateObject struct

type MessagesAudioMessage

type MessagesAudioMessage struct {
	AccessKey string `json:"access_key"` // Access key for the document
	ID        int    `json:"id"`         // Document ID
	OwnerID   int    `json:"owner_id"`   // Document owner ID
	Duration  int    `json:"duration"`   // Audio message duration in seconds
	LinkMp3   string `json:"link_mp3"`   // MP3 file URL
	LinkOgg   string `json:"link_ogg"`   // OGG file URL
	Waveform  []int  `json:"waveform"`   // Sound visualisation
}

MessagesAudioMessage struct

func (MessagesAudioMessage) ToAttachment

func (doc MessagesAudioMessage) ToAttachment() string

ToAttachment return attachment format

type MessagesChat

type MessagesChat struct {
	AdminID      int                       `json:"admin_id"`  // Chat creator ID
	ID           int                       `json:"id"`        // Chat ID
	Kicked       int                       `json:"kicked"`    // Shows that user has been kicked from the chat
	Left         int                       `json:"left"`      // Shows that user has been left the chat
	Photo100     string                    `json:"photo_100"` // URL of the preview image with 100 px in width
	Photo200     string                    `json:"photo_200"` // URL of the preview image with 200 px in width
	Photo50      string                    `json:"photo_50"`  // URL of the preview image with 50 px in width
	PushSettings messagesChatPushSettings  `json:"push_settings"`
	Title        string                    `json:"title"` // Chat title
	Type         string                    `json:"type"`  // Chat type
	Users        []int                     `json:"users"`
	MembersCount int                       `json:"members_count"`
	Members      []int                     `json:"members"`
	Photo        messagesChatSettingsPhoto `json:"photo"`
	Joined       bool                      `json:"joined"`
}

MessagesChat struct

type MessagesChatFull

type MessagesChatFull struct {
	AdminID      int                        `json:"admin_id"`  // Chat creator ID
	ID           int                        `json:"id"`        // Chat ID
	Kicked       int                        `json:"kicked"`    // Shows that user has been kicked from the chat
	Left         int                        `json:"left"`      // Shows that user has been left the chat
	Photo100     string                     `json:"photo_100"` // URL of the preview image with 100 px in width
	Photo200     string                     `json:"photo_200"` // URL of the preview image with 200 px in width
	Photo50      string                     `json:"photo_50"`  // URL of the preview image with 50 px in width
	PushSettings messagesChatPushSettings   `json:"push_settings"`
	Title        string                     `json:"title"` // Chat title
	Type         string                     `json:"type"`  // Chat type
	Users        []messagesUserXtrInvitedBy `json:"users"`
}

MessagesChatFull struct

type MessagesConversation

type MessagesConversation struct {
	CanWrite        messagesConversationCanWrite     `json:"can_write"`
	ChatSettings    messagesConversationChatSettings `json:"chat_settings"`
	InRead          int                              `json:"in_read"`         // Last message user have read
	LastMessageID   int                              `json:"last_message_id"` // ID of the last message in conversation
	Mentions        []int                            `json:"mentions"`        // IDs of messages with mentions
	MessageRequest  string                           `json:"message_request"`
	OutRead         int                              `json:"out_read"` // Last outcoming message have been read by the opponent
	Peer            messagesConversationPeer         `json:"peer"`
	PushSettings    messagesConversationPushSettings `json:"push_settings"`
	Important       bool                             `json:"important"`
	Unanswered      bool                             `json:"unanswered"`
	UnreadCount     int                              `json:"unread_count"` // Unread messages number
	CurrentKeyboard MessagesKeyboard                 `json:"current_keyboard"`
}

MessagesConversation struct

type MessagesConversationWithMessage

type MessagesConversationWithMessage struct {
	Conversation MessagesConversation `json:"conversation"`
	LastMessage  MessagesMessage      `json:"last_message"`
}

MessagesConversationWithMessage struct

type MessagesDialog

type MessagesDialog struct {
	Important  int             `json:"important"`
	InRead     int             `json:"in_read"`
	Message    MessagesMessage `json:"message"`
	OutRead    int             `json:"out_read"`
	Unanswered int             `json:"unanswered"`
	Unread     int             `json:"unread"`
}

MessagesDialog struct

type MessagesGraffiti

type MessagesGraffiti struct {
	AccessKey string `json:"access_key"` // Access key for the document
	ID        int    `json:"id"`         // Document ID
	OwnerID   int    `json:"owner_id"`   // Document owner ID
	URL       string `json:"url"`        // Graffiti URL
	Width     int    `json:"width"`      // Graffiti width
	Height    int    `json:"height"`     // Graffiti height
}

MessagesGraffiti struct

func (MessagesGraffiti) ToAttachment

func (doc MessagesGraffiti) ToAttachment() string

ToAttachment return attachment format

type MessagesHistoryAttachment

type MessagesHistoryAttachment struct {
	Attachment messagesHistoryMessageAttachment `json:"attachment"`
	MessageID  int                              `json:"message_id"` // Message ID
}

MessagesHistoryAttachment struct

type MessagesKeyboard

type MessagesKeyboard struct {
	AuthorID int                        `json:"author_id,omitempty"` // Community or bot, which set this keyboard
	Buttons  [][]MessagesKeyboardButton `json:"buttons"`
	OneTime  bool                       `json:"one_time"` // Should this keyboard disappear on first use
	Inline   bool                       `json:"inline,omitempty"`
}

MessagesKeyboard struct

func (*MessagesKeyboard) AddButton

func (keyboard *MessagesKeyboard) AddButton(label string, payload string, color string)

AddButton add button in last row. DEPRECATED - PLEASE NOT USE IT!

func (*MessagesKeyboard) AddLocationButton

func (keyboard *MessagesKeyboard) AddLocationButton(payload string)

AddLocationButton add Location button in last row

func (*MessagesKeyboard) AddRow

func (keyboard *MessagesKeyboard) AddRow()

AddRow add row in MessagesKeyboard

func (*MessagesKeyboard) AddTextButton

func (keyboard *MessagesKeyboard) AddTextButton(label string, payload string, color string)

AddTextButton add Text button in last row

func (*MessagesKeyboard) AddVKAppsButton

func (keyboard *MessagesKeyboard) AddVKAppsButton(appID, ownerID int, payload, label, hash string)

AddVKAppsButton add VK Apps button in last row

func (*MessagesKeyboard) AddVKPayButton

func (keyboard *MessagesKeyboard) AddVKPayButton(payload string, hash string)

AddVKPayButton add VK Pay button in last row

type MessagesKeyboardButton

type MessagesKeyboardButton struct {
	Action MessagesKeyboardButtonAction `json:"action"`
	Color  string                       `json:"color"` // Button color
}

MessagesKeyboardButton struct

type MessagesKeyboardButtonAction

type MessagesKeyboardButtonAction struct {
	AppID   int    `json:"app_id,omitempty"`   // Fragment value in app link like vk.com/app{app_id}_-654321#hash
	Hash    string `json:"hash,omitempty"`     // Fragment value in app link like vk.com/app123456_-654321#{hash}
	Label   string `json:"label,omitempty"`    // Label for button
	OwnerID int    `json:"owner_id,omitempty"` // Fragment value in app link like vk.com/app123456_{owner_id}#hash
	Payload string `json:"payload,omitempty"`  // Additional data sent along with message for developer convenience
	Type    string `json:"type"`               // Button type
}

MessagesKeyboardButtonAction struct

type MessagesLastActivity

type MessagesLastActivity struct {
	Online int `json:"online"` // Information whether user is online
	Time   int `json:"time"`   // Time when user was online in Unixtime
}

MessagesLastActivity struct

type MessagesLongpollParams

type MessagesLongpollParams struct {
	Key    string `json:"key"`    // Key
	Pts    int    `json:"pts"`    // Persistent timestamp
	Server string `json:"server"` // Server URL
	Ts     int    `json:"ts"`     // Timestamp
}

MessagesLongpollParams struct

type MessagesMessage

type MessagesMessage struct {
	AdminAuthorID         int                         `json:"admin_author_id"` // Only for messages from community. Contains user ID of community admin, who sent this message.
	Action                messagesMessageAction       `json:"action"`
	Attachments           []messagesMessageAttachment `json:"attachments"`
	ConversationMessageID int                         `json:"conversation_message_id"` // Unique auto-incremented number for all messages with this peer
	Date                  int                         `json:"date"`                    // Date when the message has been sent in Unixtime
	Deleted               int                         `json:"deleted"`                 // Is it an deleted message
	FromID                int                         `json:"from_id"`                 // Message author's ID
	FwdMessages           []MessagesMessage           `json:"fwd_messages"`            // Forwarded messages
	ReplyMessage          *MessagesMessage            `json:"reply_message"`
	Geo                   baseGeo                     `json:"geo"`
	ID                    int                         `json:"id"`        // Message ID
	Important             bool                        `json:"important"` // Is it an important message
	IsHidden              bool                        `json:"is_hidden"`
	Keyboard              MessagesKeyboard            `json:"keyboard"`
	Out                   int                         `json:"out"` // Information whether the message is outcoming
	Payload               string                      `json:"payload"`
	PeerID                int                         `json:"peer_id"`   // Peer ID
	RandomID              int                         `json:"random_id"` // ID used for sending messages. It returned only for outgoing messages
	Ref                   string                      `json:"ref"`
	RefSource             string                      `json:"ref_source"`
	Text                  string                      `json:"text"`          // Message text
	UpdateTime            int                         `json:"update_time"`   // Date when the message has been updated in Unixtime
	MembersСount          int                         `json:"members_count"` // Members number
}

MessagesMessage struct

type NewsfeedItemAudio

type NewsfeedItemAudio struct {
	Audio newsfeedItemAudioAudio `json:"audio"`
}

NewsfeedItemAudio struct

type NewsfeedItemDigest

type NewsfeedItemDigest struct {
	ButtonText  string         `json:"button_text"`
	FeedID      string         `json:"feed_id"` // id of feed in digest
	Items       []WallWallpost `json:"items"`
	MainPostIDs []string       `json:"main_post_ids"`
	Template    string         `json:"template"` // type of digest
	Title       string         `json:"title"`
	TrackCode   string         `json:"track_code"`
}

NewsfeedItemDigest struct

type NewsfeedItemFriend

type NewsfeedItemFriend struct {
	Friends newsfeedItemFriendFriends `json:"friends"`
}

NewsfeedItemFriend struct

type NewsfeedItemNote

type NewsfeedItemNote struct {
	Notes newsfeedItemNoteNotes `json:"notes"`
}

NewsfeedItemNote struct

type NewsfeedItemPhoto

type NewsfeedItemPhoto struct {
	Photos newsfeedItemPhotoPhotos `json:"photos"`
}

NewsfeedItemPhoto struct

type NewsfeedItemPhotoTag

type NewsfeedItemPhotoTag struct {
	PhotoTags newsfeedItemPhotoTagPhotoTags `json:"photo_tags"`
}

NewsfeedItemPhotoTag struct

type NewsfeedItemStoriesBlock

type NewsfeedItemStoriesBlock struct {
	BlockType string         `json:"block_type"`
	Stories   []StoriesStory `json:"stories"`
}

NewsfeedItemStoriesBlock struct

type NewsfeedItemTopic

type NewsfeedItemTopic struct {
}

NewsfeedItemTopic struct

type NewsfeedItemVideo

type NewsfeedItemVideo struct {
	Video newsfeedItemVideoVideo `json:"video"`
}

NewsfeedItemVideo struct

type NewsfeedItemWallpost

type NewsfeedItemWallpost struct {
	Activity    newsfeedEventActivity    `json:"activity"`
	Attachments []wallWallpostAttachment `json:"attachments"`
	Comments    baseCommentsInfo         `json:"comments"`
	CopyHistory []WallWallpost           `json:"copy_history"`
	Geo         baseGeo                  `json:"geo"`
	Likes       baseLikesInfo            `json:"likes"`
	PostSource  wallPostSource           `json:"post_source"`
	PostType    string                   `json:"post_type"`
	Reposts     baseRepostsInfo          `json:"reposts"`
	MarkedAsAds int                      `json:"marked_as_ads,omitempty"`
	Views       wallViews                `json:"views,omitempty"`
	IsFavorite  bool                     `json:"is_favorite,omitempty"`
	SignerID    int                      `json:"signer_id,omitempty"`
	Text        string                   `json:"text"` // Post text
}

NewsfeedItemWallpost struct

type NewsfeedList

type NewsfeedList struct {
	ID    int    `json:"id"`    // List ID
	Title string `json:"title"` // List title
}

NewsfeedList struct

type NewsfeedNewsfeedItem

type NewsfeedNewsfeedItem struct {
	Type     string `json:"type"`
	SourceID int    `json:"source_id"`
	Date     int    `json:"date"`

	PostID int `json:"post_id,omitempty"`

	NewsfeedItemWallpost
	NewsfeedItemPhoto
	NewsfeedItemPhotoTag
	NewsfeedItemFriend
	NewsfeedItemNote
	NewsfeedItemAudio
	NewsfeedItemTopic
	NewsfeedItemVideo
	NewsfeedItemDigest
	NewsfeedItemStoriesBlock

	CanEdit   int `json:"can_edit,omitempty"`
	CreatedBy int `json:"created_by,omitempty"`
	CanDelete int `json:"can_delete,omitempty"`
}

NewsfeedNewsfeedItem struct

type NotesNote

type NotesNote struct {
	CanComment     int           `json:"can_comment"` // Information whether current user can comment the note
	Comments       int           `json:"comments"`    // Comments number
	Date           int           `json:"date"`        // Date when the note has been created in Unixtime
	ID             int           `json:"id"`          // Note ID
	OwnerID        int           `json:"owner_id"`    // Note owner's ID
	Text           string        `json:"text"`        // Note text
	TextWiki       string        `json:"text_wiki"`   // Note text in wiki format
	Title          string        `json:"title"`       // Note title
	ViewURL        string        `json:"view_url"`    // URL of the page with note preview
	ReadComments   int           `json:"read_comments"`
	PrivacyView    []interface{} `json:"privacy_view"`
	PrivacyComment []interface{} `json:"privacy_comment"`
}

NotesNote struct

func (NotesNote) ToAttachment

func (note NotesNote) ToAttachment() string

ToAttachment return attachment format

type NotesNoteComment

type NotesNoteComment struct {
	Date    int    `json:"date"`     // Date when the comment has beed added in Unixtime
	ID      int    `json:"id"`       // Comment ID
	Message string `json:"message"`  // Comment text
	NID     int    `json:"nid"`      // Note ID
	OID     int    `json:"oid"`      // Note ID
	ReplyTo int    `json:"reply_to"` // ID of replied comment
	UID     int    `json:"uid"`      // Comment author's ID
}

NotesNoteComment struct

type NotificationsFeedback

type NotificationsFeedback struct {
	Attachments []wallWallpostAttachment `json:"attachments"`
	FromID      int                      `json:"from_id"` // Reply author's ID
	Geo         baseGeo                  `json:"geo"`
	ID          int                      `json:"id"` // Item ID
	Likes       baseLikesInfo            `json:"likes"`
	Text        string                   `json:"text"`  // Reply text
	ToID        int                      `json:"to_id"` // Wall owner's ID
}

NotificationsFeedback struct

type NotificationsNotification

type NotificationsNotification struct {
	Date     int                `json:"date"` // Date when the event has been occurred
	Feedback json.RawMessage    `json:"feedback"`
	Parent   json.RawMessage    `json:"parent"`
	Reply    notificationsReply `json:"reply"`
	Type     string             `json:"type"` // Notification type
}

NotificationsNotification struct

type NotificationsNotificationsComment

type NotificationsNotificationsComment struct {
	Date    int          `json:"date"`     // Date when the comment has been added in Unixtime
	ID      int          `json:"id"`       // Comment ID
	OwnerID int          `json:"owner_id"` // Author ID
	Photo   PhotosPhoto  `json:"photo"`
	Post    WallWallpost `json:"post"`
	Text    string       `json:"text"` // Comment text
	Topic   BoardTopic   `json:"topic"`
	Video   VideoVideo   `json:"video"`
}

NotificationsNotificationsComment struct

type OauthError

type OauthError struct {
	Error            string `json:"error"`
	ErrorDescription string `json:"error_description"`
	RedirectURI      string `json:"redirect_uri"`
}

OauthError struct

type OrdersAmount

type OrdersAmount struct {
	Amounts  []ordersAmountItem `json:"amounts"`
	Currency string             `json:"currency"` // Currency name
}

OrdersAmount struct

type OrdersOrder

type OrdersOrder struct {
	Amount              int    `json:"amount"`                // Amount
	AppOrderID          int    `json:"app_order_id"`          // App order ID
	CancelTransactionID int    `json:"cancel_transaction_id"` // Cancel transaction ID
	Date                int    `json:"date"`                  // Date of creation in Unixtime
	ID                  int    `json:"id"`                    // Order ID
	Item                string `json:"item"`                  // Order item
	ReceiverID          int    `json:"receiver_id"`           // Receiver ID
	Status              string `json:"status"`                // Order status
	TransactionID       int    `json:"transaction_id"`        // Transaction ID
	UserID              int    `json:"user_id"`               // User ID
}

OrdersOrder struct

type OrdersSubscription

type OrdersSubscription struct {
	CancelReason    string `json:"cancel_reason"`     // Cancel reason
	CreateTime      int    `json:"create_time"`       // Date of creation in Unixtime
	ID              int    `json:"id"`                // Subscription ID
	ItemID          string `json:"item_id"`           // Subscription order item
	NextBillTime    int    `json:"next_bill_time"`    // Date of next bill in Unixtime
	Period          int    `json:"period"`            // Subscription period
	PeriodStartTime int    `json:"period_start_time"` // Date of last period start in Unixtime
	Price           int    `json:"price"`             // Subscription price
	Status          string `json:"status"`            // Subscription status
	PendingCancel   bool   `json:"pending_cancel"`    // Pending cancel state
	TestMode        bool   `json:"test_mode"`         // Is test subscription
	TrialExpireTime int    `json:"trial_expire_time"` // Date of trial expire in Unixtime
	UpdateTime      int    `json:"update_time"`       // Date of last change in Unixtime
}

OrdersSubscription struct

type PagesWikipage

type PagesWikipage struct {
	CreatorID   int    `json:"creator_id"`   // Page creator ID
	CreatorName int    `json:"creator_name"` // Page creator name
	EditorID    int    `json:"editor_id"`    // Last editor ID
	EditorName  string `json:"editor_name"`  // Last editor name
	GroupID     int    `json:"group_id"`     // Community ID
	ID          int    `json:"id"`           // Page ID
	Title       string `json:"title"`        // Page title
	Views       int    `json:"views"`        // Views number
	WhoCanEdit  int    `json:"who_can_edit"` // Edit settings of the page
	WhoCanView  int    `json:"who_can_view"` // View settings of the page
}

PagesWikipage struct

type PagesWikipageFull

type PagesWikipageFull struct {
	Created                  int    `json:"created"`                      // Date when the page has been created in Unixtime
	CreatorID                int    `json:"creator_id"`                   // Page creator ID
	CurrentUserCanEdit       int    `json:"current_user_can_edit"`        // Information whether current user can edit the page
	CurrentUserCanEditAccess int    `json:"current_user_can_edit_access"` // Information whether current user can edit the page access settings
	Edited                   int    `json:"edited"`                       // Date when the page has been edited in Unixtime
	EditorID                 int    `json:"editor_id"`                    // Last editor ID
	GroupID                  int    `json:"group_id"`                     // Community ID
	HTML                     string `json:"html"`                         // Page content, HTML
	ID                       int    `json:"id"`                           // Page ID
	Source                   string `json:"source"`                       // Page content, wiki
	Title                    string `json:"title"`                        // Page title
	ViewURL                  string `json:"view_url"`                     // URL of the page preview
	Views                    int    `json:"views"`                        // Views number
	WhoCanEdit               int    `json:"who_can_edit"`                 // Edit settings of the page
	WhoCanView               int    `json:"who_can_view"`                 // View settings of the page
}

PagesWikipageFull struct

type PagesWikipageHistory

type PagesWikipageHistory struct {
	Date       int    `json:"date"`        // Date when the page has been edited in Unixtime
	EditorID   int    `json:"editor_id"`   // Last editor ID
	EditorName string `json:"editor_name"` // Last editor name
	ID         int    `json:"id"`          // Version ID
	Length     int    `json:"length"`      // Page size in bytes
}

PagesWikipageHistory struct BUG(VK): https://vk.com/dev/pages.getHistory edited and date

type PhotoCommentDeleteFunc

type PhotoCommentDeleteFunc func(PhotoCommentDeleteObject, int)

PhotoCommentDeleteFunc func

type PhotoCommentDeleteObject

type PhotoCommentDeleteObject struct {
	OwnerID   int `json:"owner_id"`
	ID        int `json:"id"`
	UserID    int `json:"user_id"`
	DeleterID int `json:"deleter_id"`
	PhotoID   int `json:"photo_id"`
}

PhotoCommentDeleteObject struct

type PhotoCommentEditFunc

type PhotoCommentEditFunc func(PhotoCommentEditObject, int)

PhotoCommentEditFunc func

type PhotoCommentEditObject

type PhotoCommentEditObject WallWallComment

PhotoCommentEditObject struct

type PhotoCommentNewFunc

type PhotoCommentNewFunc func(PhotoCommentNewObject, int)

PhotoCommentNewFunc func

type PhotoCommentNewObject

type PhotoCommentNewObject WallWallComment

PhotoCommentNewObject struct

type PhotoCommentRestoreFunc

type PhotoCommentRestoreFunc func(PhotoCommentRestoreObject, int)

PhotoCommentRestoreFunc func

type PhotoCommentRestoreObject

type PhotoCommentRestoreObject WallWallComment

PhotoCommentRestoreObject struct

type PhotoNewFunc

type PhotoNewFunc func(PhotoNewObject, int)

PhotoNewFunc func

type PhotoNewObject

type PhotoNewObject PhotosPhoto

PhotoNewObject struct

type PhotosChatUploadResponse

type PhotosChatUploadResponse struct {
	Response string `json:"response"` // Uploaded photo data
}

PhotosChatUploadResponse struct

type PhotosCommentXtrPid

type PhotosCommentXtrPid struct {
	Attachments    []wallCommentAttachment `json:"attachments"`
	Date           int                     `json:"date"`    // Date when the comment has been added in Unixtime
	FromID         int                     `json:"from_id"` // Author ID
	ID             int                     `json:"id"`      // Comment ID
	Likes          baseLikesInfo           `json:"likes"`
	ParentsStack   []int                   `json:"parents_stack"`
	Pid            int                     `json:"pid"`              // Photo ID
	ReplyToComment int                     `json:"reply_to_comment"` // Replied comment ID
	ReplyToUser    int                     `json:"reply_to_user"`    // Replied user ID
	Text           string                  `json:"text"`             // Comment text
	Thread         wallWallCommentThread   `json:"thread"`
}

PhotosCommentXtrPid struct

type PhotosImage

type PhotosImage struct {
	Height int    `json:"height"` // Height of the photo in px.
	Type   string `json:"type"`
	URL    string `json:"url"`   // Photo URL.
	Width  int    `json:"width"` // Width of the photo in px.
}

PhotosImage struct

type PhotosMarketAlbumUploadResponse

type PhotosMarketAlbumUploadResponse struct {
	GID    int    `json:"gid"`    // Community ID
	Hash   string `json:"hash"`   // Uploading hash
	Photo  string `json:"photo"`  // Uploaded photo data
	Server int    `json:"server"` // Upload server number
}

PhotosMarketAlbumUploadResponse struct

type PhotosMarketUploadResponse

type PhotosMarketUploadResponse struct {
	CropData string `json:"crop_data"` // Crop data
	CropHash string `json:"crop_hash"` // Crop hash
	GroupID  int    `json:"group_id"`  // Community ID
	Hash     string `json:"hash"`      // Uploading hash
	Photo    string `json:"photo"`     // Uploaded photo data
	Server   int    `json:"server"`    // Upload server number
}

PhotosMarketUploadResponse struct

type PhotosMessageUploadResponse

type PhotosMessageUploadResponse struct {
	Hash   string `json:"hash"`   // Uploading hash
	Photo  string `json:"photo"`  // Uploaded photo data
	Server int    `json:"server"` // Upload server number
}

PhotosMessageUploadResponse struct

type PhotosOwnerUploadResponse

type PhotosOwnerUploadResponse struct {
	Hash   string `json:"hash"`   // Uploading hash
	Photo  string `json:"photo"`  // Uploaded photo data
	Server int    `json:"server"` // Upload server number
}

PhotosOwnerUploadResponse struct

type PhotosPhoto

type PhotosPhoto struct {
	AccessKey          string             `json:"access_key"` // Access key for the photo
	AlbumID            int                `json:"album_id"`   // Album ID
	Date               int                `json:"date"`       // Date when uploaded
	Height             int                `json:"height"`     // Original photo height
	ID                 int                `json:"id"`         // Photo ID
	Images             []PhotosImage      `json:"images"`
	Lat                float64            `json:"lat"`      // Latitude
	Long               float64            `json:"long"`     // Longitude
	OwnerID            int                `json:"owner_id"` // Photo owner's ID
	PostID             int                `json:"post_id"`  // Post ID
	Text               string             `json:"text"`     // Photo caption
	UserID             int                `json:"user_id"`  // ID of the user who have uploaded the photo
	Width              int                `json:"width"`    // Original photo width
	CanUpload          int                `json:"can_upload"`
	CommentsDisabled   int                `json:"comments_disabled"`
	Created            int                `json:"created"`
	Description        string             `json:"description"`
	PrivacyComment     []string           `json:"privacy_comment"`
	PrivacyView        []string           `json:"privacy_view"`
	Size               int                `json:"size"`
	Sizes              []photosPhotoSizes `json:"sizes"`
	ThumbID            int                `json:"thumb_id"`
	ThumbIsLast        int                `json:"thumb_is_last"`
	ThumbSrc           string             `json:"thumb_src"`
	Title              string             `json:"title"`
	Updated            int                `json:"updated"`
	UploadByAdminsOnly int                `json:"upload_by_admins_only"`
}

PhotosPhoto struct

func (PhotosPhoto) ToAttachment

func (photo PhotosPhoto) ToAttachment() string

ToAttachment return attachment format

type PhotosPhotoAlbumFull

type PhotosPhotoAlbumFull struct {
	CanUpload        int    `json:"can_upload"`        // Information whether current user can upload photo to the album
	CommentsDisabled int    `json:"comments_disabled"` // Information whether album comments are disabled
	Created          int    `json:"created"`           // Date when the album has been created in Unixtime
	Description      string `json:"description"`       // Photo album description
	ID               int    `json:"id"`                // Photo album ID
	OwnerID          int    `json:"owner_id"`          // Album owner's ID
	Size             int    `json:"size"`              // Photos number
	// TODO: PrivacyComment     interface{}           `json:"privacy_comment"`
	// TODO: PrivacyView        interface{}           `json:"privacy_view"`
	Sizes              []photosPhotoSizes `json:"sizes"`
	ThumbID            int                `json:"thumb_id"`              // Thumb photo ID
	ThumbIsLast        int                `json:"thumb_is_last"`         // Information whether the album thumb is last photo
	ThumbSrc           string             `json:"thumb_src"`             // URL of the thumb image
	Title              string             `json:"title"`                 // Photo album title
	Updated            int                `json:"updated"`               // Date when the album has been updated last time in Unixtime
	UploadByAdminsOnly int                `json:"upload_by_admins_only"` // Information whether only community administrators can upload photos
}

PhotosPhotoAlbumFull struct

func (PhotosPhotoAlbumFull) ToAttachment

func (album PhotosPhotoAlbumFull) ToAttachment() string

ToAttachment return attachment format

type PhotosPhotoFull

type PhotosPhotoFull struct {
	AccessKey  string          `json:"access_key"`  // Access key for the photo
	AlbumID    int             `json:"album_id"`    // Album ID
	CanComment int             `json:"can_comment"` // Information whether current user can comment the photo
	Comments   BaseObjectCount `json:"comments"`
	Date       int             `json:"date"`   // Date when uploaded
	Height     int             `json:"height"` // Original photo height
	ID         int             `json:"id"`     // Photo ID
	Images     []PhotosImage   `json:"images"`
	Lat        float64         `json:"lat"` // Latitude
	Likes      baseLikes       `json:"likes"`
	Long       float64         `json:"long"`     // Longitude
	OwnerID    int             `json:"owner_id"` // Photo owner's ID
	PostID     int             `json:"post_id"`  // Post ID
	Reposts    BaseObjectCount `json:"reposts"`
	Tags       BaseObjectCount `json:"tags"`
	Text       string          `json:"text"`    // Photo caption
	UserID     int             `json:"user_id"` // ID of the user who have uploaded the photo
	Width      int             `json:"width"`   // Original photo width
}

PhotosPhotoFull struct

func (PhotosPhotoFull) ToAttachment

func (photo PhotosPhotoFull) ToAttachment() string

ToAttachment return attachment format

type PhotosPhotoFullXtrRealOffset

type PhotosPhotoFullXtrRealOffset struct {
	AccessKey  string             `json:"access_key"` // Access key for the photo
	AlbumID    int                `json:"album_id"`   // Album ID
	CanComment int                `json:"can_comment"`
	Comments   BaseObjectCount    `json:"comments"`
	Date       int                `json:"date"`   // Date when uploaded
	Height     int                `json:"height"` // Original photo height
	Hidden     int                `json:"hidden"` // Returns if the photo is hidden above the wall
	ID         int                `json:"id"`     // Photo ID
	Lat        float64            `json:"lat"`    // Latitude
	Likes      baseLikes          `json:"likes"`
	Long       float64            `json:"long"`        // Longitude
	OwnerID    int                `json:"owner_id"`    // Photo owner's ID
	Photo1280  string             `json:"photo_1280"`  // URL of image with 1280 px width
	Photo130   string             `json:"photo_130"`   // URL of image with 130 px width
	Photo2560  string             `json:"photo_2560"`  // URL of image with 2560 px width
	Photo604   string             `json:"photo_604"`   // URL of image with 604 px width
	Photo75    string             `json:"photo_75"`    // URL of image with 75 px width
	Photo807   string             `json:"photo_807"`   // URL of image with 807 px width
	PostID     int                `json:"post_id"`     // Post ID
	RealOffset int                `json:"real_offset"` // Real position of the photo
	Reposts    BaseObjectCount    `json:"reposts"`
	Sizes      []photosPhotoSizes `json:"sizes"`
	Tags       BaseObjectCount    `json:"tags"`
	Text       string             `json:"text"`    // Photo caption
	UserID     int                `json:"user_id"` // ID of the user who have uploaded the photo
	Width      int                `json:"width"`   // Original photo width
}

PhotosPhotoFullXtrRealOffset struct

func (PhotosPhotoFullXtrRealOffset) ToAttachment

func (photo PhotosPhotoFullXtrRealOffset) ToAttachment() string

ToAttachment return attachment format

type PhotosPhotoTag

type PhotosPhotoTag struct {
	Date       int     `json:"date"`        // Date when tag has been added in Unixtime
	ID         int     `json:"id"`          // Tag ID
	PlacerID   int     `json:"placer_id"`   // ID of the tag creator
	TaggedName string  `json:"tagged_name"` // Tag description
	UserID     int     `json:"user_id"`     // Tagged user ID
	Viewed     int     `json:"viewed"`      // Information whether the tag is reviewed
	X          float64 `json:"x"`           // Coordinate X of the left upper corner
	X2         float64 `json:"x2"`          // Coordinate X of the right lower corner
	Y          float64 `json:"y"`           // Coordinate Y of the left upper corner
	Y2         float64 `json:"y2"`          // Coordinate Y of the right lower corner
}

PhotosPhotoTag struct

type PhotosPhotoUpload

type PhotosPhotoUpload struct {
	AlbumID   int    `json:"album_id"`   // Album ID
	UploadURL string `json:"upload_url"` // URL to upload photo
	UserID    int    `json:"user_id"`    // User ID
}

PhotosPhotoUpload struct

type PhotosPhotoUploadResponse

type PhotosPhotoUploadResponse struct {
	AID        int    `json:"aid"`         // Album ID
	Hash       string `json:"hash"`        // Uploading hash
	PhotosList string `json:"photos_list"` // Uploaded photos data
	Server     int    `json:"server"`      // Upload server number
}

PhotosPhotoUploadResponse struct

type PhotosPhotoXtrRealOffset

type PhotosPhotoXtrRealOffset struct {
	AccessKey  string             `json:"access_key"`  // Access key for the photo
	AlbumID    int                `json:"album_id"`    // Album ID
	Date       int                `json:"date"`        // Date when uploaded
	Height     int                `json:"height"`      // Original photo height
	Hidden     int                `json:"hidden"`      // Returns if the photo is hidden above the wall
	ID         int                `json:"id"`          // Photo ID
	Lat        float64            `json:"lat"`         // Latitude
	Long       float64            `json:"long"`        // Longitude
	OwnerID    int                `json:"owner_id"`    // Photo owner's ID
	Photo1280  string             `json:"photo_1280"`  // URL of image with 1280 px width
	Photo130   string             `json:"photo_130"`   // URL of image with 130 px width
	Photo2560  string             `json:"photo_2560"`  // URL of image with 2560 px width
	Photo604   string             `json:"photo_604"`   // URL of image with 604 px width
	Photo75    string             `json:"photo_75"`    // URL of image with 75 px width
	Photo807   string             `json:"photo_807"`   // URL of image with 807 px width
	PostID     int                `json:"post_id"`     // Post ID
	RealOffset int                `json:"real_offset"` // Real position of the photo
	Sizes      []photosPhotoSizes `json:"sizes"`
	Text       string             `json:"text"`    // Photo caption
	UserID     int                `json:"user_id"` // ID of the user who have uploaded the photo
	Width      int                `json:"width"`   // Original photo width
}

PhotosPhotoXtrRealOffset struct

func (PhotosPhotoXtrRealOffset) ToAttachment

func (photo PhotosPhotoXtrRealOffset) ToAttachment() string

ToAttachment return attachment format

type PhotosPhotoXtrTagInfo

type PhotosPhotoXtrTagInfo struct {
	AccessKey  string             `json:"access_key"` // Access key for the photo
	AlbumID    int                `json:"album_id"`   // Album ID
	Date       int                `json:"date"`       // Date when uploaded
	Height     int                `json:"height"`     // Original photo height
	ID         int                `json:"id"`         // Photo ID
	Lat        float64            `json:"lat"`        // Latitude
	Long       float64            `json:"long"`       // Longitude
	OwnerID    int                `json:"owner_id"`   // Photo owner's ID
	Photo1280  string             `json:"photo_1280"` // URL of image with 1280 px width
	Photo130   string             `json:"photo_130"`  // URL of image with 130 px width
	Photo2560  string             `json:"photo_2560"` // URL of image with 2560 px width
	Photo604   string             `json:"photo_604"`  // URL of image with 604 px width
	Photo75    string             `json:"photo_75"`   // URL of image with 75 px width
	Photo807   string             `json:"photo_807"`  // URL of image with 807 px width
	PlacerID   int                `json:"placer_id"`  // ID of the tag creator
	PostID     int                `json:"post_id"`    // Post ID
	Sizes      []photosPhotoSizes `json:"sizes"`
	TagCreated int                `json:"tag_created"` // Date when tag has been added in Unixtime
	TagID      int                `json:"tag_id"`      // Tag ID
	Text       string             `json:"text"`        // Photo caption
	UserID     int                `json:"user_id"`     // ID of the user who have uploaded the photo
	Width      int                `json:"width"`       // Original photo width
}

PhotosPhotoXtrTagInfo struct

func (PhotosPhotoXtrTagInfo) ToAttachment

func (photo PhotosPhotoXtrTagInfo) ToAttachment() string

ToAttachment return attachment format

type PhotosWallUploadResponse

type PhotosWallUploadResponse struct {
	Hash   string `json:"hash"`   // Uploading hash
	Photo  string `json:"photo"`  // Uploaded photo data
	Server int    `json:"server"` // Upload server number
}

PhotosWallUploadResponse struct

type PodcastsCategory

type PodcastsCategory struct {
	ID    int         `json:"id"`
	Title string      `json:"title"`
	Cover []baseImage `json:"cover"`
}

PodcastsCategory struct

type PodcastsEpisode

type PodcastsEpisode struct {
	ID           int                 `json:"id"`
	OwnerID      int                 `json:"owner_id"`
	Artist       string              `json:"artist"`
	Title        string              `json:"title"`
	Duration     int                 `json:"duration"`
	Date         int                 `json:"date"`
	URL          string              `json:"url"`
	LyricsID     int                 `json:"lyrics_id"`
	NoSearch     int                 `json:"no_search"`
	TrackCode    string              `json:"track_code"`
	IsHq         bool                `json:"is_hq"`
	IsFocusTrack bool                `json:"is_focus_track"`
	IsExplicit   bool                `json:"is_explicit"`
	PodcastInfo  PodcastsPodcastInfo `json:"podcast_info"`
}

PodcastsEpisode struct

type PodcastsItem

type PodcastsItem struct {
	OwnerID int `json:"owner_id"`
}

PodcastsItem struct

type PodcastsPodcastInfo

type PodcastsPodcastInfo struct {
	Cover struct {
		Sizes []baseImage `json:"cover"`
	}
	Plays       int    `json:"plays"`
	IsFavorite  bool   `json:"is_favorite"`
	Description string `json:"description"`
	Position    int    `json:"position"`
}

PodcastsPodcastInfo struct

type PollVoteNewFunc

type PollVoteNewFunc func(PollVoteNewObject, int)

PollVoteNewFunc func

type PollVoteNewObject

type PollVoteNewObject struct {
	OwnerID  int `json:"owner_id"`
	PollID   int `json:"poll_id"`
	OptionID int `json:"option_id"`
	UserID   int `json:"user_id"`
}

PollVoteNewObject struct BUG(VK): при голосовании за несколько вариантов, возвращается только один

type PollsBackground

type PollsBackground struct {
	Type   string `json:"type"`
	Angle  int    `json:"angle"`
	Color  string `json:"color"`
	Points []struct {
		Position float64 `json:"position"`
		Color    string  `json:"color"`
	} `json:"points"`
	ID int `json:"id"`
}

PollsBackground struct

type PollsPhoto

type PollsPhoto struct {
	ID     int           `json:"id"`
	Color  string        `json:"color"`
	Images []PhotosImage `json:"images"`
}

PollsPhoto struct

type PollsPoll

type PollsPoll struct {
	AnswerID   int             `json:"answer_id"` // Current user's answer ID
	Answers    []pollsAnswer   `json:"answers"`
	Created    int             `json:"created"`  // Date when poll has been created in Unixtime
	ID         int             `json:"id"`       // Poll ID
	OwnerID    int             `json:"owner_id"` // Poll owner's ID
	Question   string          `json:"question"` // Poll question
	Votes      int             `json:"votes"`    // Votes number
	AnswerIDs  []int           `json:"answer_ids"`
	EndDate    int             `json:"end_date"`
	Anonymous  bool            `json:"anonymous"` // Information whether the pole is anonymous
	Closed     bool            `json:"closed"`
	IsBoard    bool            `json:"is_board"`
	CanEdit    bool            `json:"can_edit"`
	CanVote    bool            `json:"can_vote"`
	CanReport  bool            `json:"can_report"`
	CanShare   bool            `json:"can_share"`
	Multiple   bool            `json:"multiple"`
	Photo      PhotosPhoto     `json:"photo"`
	AuthorID   int             `json:"author_id"`
	Background PollsBackground `json:"background"`
	Friends    []pollsFriend   `json:"friends"`
	Profiles   []UsersUser     `json:"profiles"`
	Groups     []GroupsGroup   `json:"groups"`
}

PollsPoll struct

func (PollsPoll) ToAttachment

func (poll PollsPoll) ToAttachment() string

ToAttachment return attachment format

type PollsVoters

type PollsVoters struct {
	AnswerID int              `json:"answer_id"` // Answer ID
	Users    pollsVotersUsers `json:"users"`
}

PollsVoters struct

type PollsVotersFields

type PollsVotersFields struct {
	AnswerID int                    `json:"answer_id"` // Answer ID
	Users    pollsVotersUsersFields `json:"users"`
}

PollsVotersFields struct

type PrettyCardsPrettyCard

type PrettyCardsPrettyCard struct {
	Button     string      `json:"button"`      // Button key
	ButtonText string      `json:"button_text"` // Button text in current language
	CardID     string      `json:"card_id"`     // Card ID (long int returned as string)
	Images     []baseImage `json:"images"`
	LinkURL    string      `json:"link_url"`  // Link URL
	Photo      string      `json:"photo"`     // Photo ID (format "<owner_id>_<media_id>")
	Price      string      `json:"price"`     // Price if set (decimal number returned as string)
	PriceOld   string      `json:"price_old"` // Old price if set (decimal number returned as string)
	Title      string      `json:"title"`     // Title
}

PrettyCardsPrettyCard struct

type SearchHint

type SearchHint struct {
	Description string      `json:"description"`      // Object description
	Global      int         `json:"global,omitempty"` // Information whether the object has been found globally
	Group       GroupsGroup `json:"group,omitempty"`
	Profile     UsersUser   `json:"profile,omitempty"`
	Section     string      `json:"section"`
	Type        string      `json:"type"`
}

SearchHint struct

type SecureLevel

type SecureLevel struct {
	Level int `json:"level"` // Level
	UID   int `json:"uid"`   // User ID
}

SecureLevel struct

type SecureSmsNotification

type SecureSmsNotification struct {
	AppID   int    `json:"app_id"`  // Application ID
	Date    int    `json:"date"`    // Date when message has been sent in Unixtime
	ID      int    `json:"id"`      // Notification ID
	Message string `json:"message"` // Messsage text
	UserID  int    `json:"user_id"` // User ID
}

SecureSmsNotification struct

type SecureTokenChecked

type SecureTokenChecked struct {
	Date    int `json:"date"`    // Date when access_token has been generated in Unixtime
	Expire  int `json:"expire"`  // Date when access_token will expire in Unixtime
	Success int `json:"success"` // Returns if successfully processed
	UserID  int `json:"user_id"` // User ID
}

SecureTokenChecked struct

type SecureTransaction

type SecureTransaction struct {
	Date    int `json:"date"`     // Transaction date in Unixtime
	ID      int `json:"id"`       // Transaction ID
	UIDFrom int `json:"uid_from"` // From ID
	UIDTo   int `json:"uid_to"`   // To ID
	Votes   int `json:"votes"`    // Votes number
}

SecureTransaction struct

type StatsPeriod

type StatsPeriod struct {
	Activity   statsActivity `json:"activity"`
	PeriodFrom int           `json:"period_from"` // Unix timestamp
	PeriodTo   int           `json:"period_to"`   // Unix timestamp
	Reach      statsReach    `json:"reach"`
	Visitors   statsViews    `json:"visitors"`
}

StatsPeriod struct

type StatsWallpostStat

type StatsWallpostStat struct {
	Hide             int `json:"hide"`              // Hidings number
	JoinGroup        int `json:"join_group"`        // People have joined the group
	Links            int `json:"links"`             // Link clickthrough
	ReachSubscribers int `json:"reach_subscribers"` // Subscribers reach
	ReachTotal       int `json:"reach_total"`       // Total reach
	Report           int `json:"report"`            // Reports number
	ToGroup          int `json:"to_group"`          // Clickthrough to community
	Unsubscribe      int `json:"unsubscribe"`       // Unsubscribed members
}

StatsWallpostStat struct

type StoriesStory

type StoriesStory struct {
	AccessKey string `json:"access_key"` // Access key for private object.
	ExpiresAt int    `json:"expires_at"` // Story expiration time. Unixtime.
	CanHide   int    `json:"can_hide"`
	// Information whether story has question sticker and current user can send question to the author
	CanAsk int `json:"can_ask"`
	// Information whether story has question sticker and current user can send anonymous question to the author
	CanAskAnonymous      int              `json:"can_ask_anonymous"`
	CanComment           int              `json:"can_comment"`   // Information whether current user can comment the story (0 - no, 1 - yes).
	CanReply             int              `json:"can_reply"`     // Information whether current user can reply to the story (0 - no, 1 - yes).
	CanSee               int              `json:"can_see"`       // Information whether current user can see the story (0 - no, 1 - yes).
	CanShare             int              `json:"can_share"`     // Information whether current user can share the story (0 - no, 1 - yes).
	Date                 int              `json:"date"`          // Date when story has been added in Unixtime.
	ID                   int              `json:"id"`            // Story ID.
	IsDeleted            bool             `json:"is_deleted"`    // Information whether the story is deleted (false - no, true - yes).
	IsExpired            bool             `json:"is_expired"`    // Information whether the story is expired (false - no, true - yes).
	NoSound              bool             `json:"no_sound"`      // Is video without sound
	IsRestricted         bool             `json:"is_restricted"` // Does author have stories privacy restrictions
	Link                 storiesStoryLink `json:"link"`
	OwnerID              int              `json:"owner_id"` // Story owner's ID.
	ParentStory          *StoriesStory    `json:"parent_story"`
	ParentStoryAccessKey string           `json:"parent_story_access_key"` // Access key for private object.
	ParentStoryID        int              `json:"parent_story_id"`         // Parent story ID.
	ParentStoryOwnerID   int              `json:"parent_story_owner_id"`   // Parent story owner's ID.
	Photo                PhotosPhoto      `json:"photo"`
	Replies              storiesReplies   `json:"replies"` // Replies to current story.
	Seen                 int              `json:"seen"`    // Information whether current user has seen the story or not (0 - no, 1 - yes).
	Type                 string           `json:"type"`
	Video                VideoVideo       `json:"video"`
	Views                int              `json:"views"` // Views number.
}

StoriesStory struct

type StoriesStoryStats

type StoriesStoryStats struct {
	Answer      storiesStoryStatsStat `json:"answer"`
	Bans        storiesStoryStatsStat `json:"bans"`
	OpenLink    storiesStoryStatsStat `json:"open_link"`
	Replies     storiesStoryStatsStat `json:"replies"`
	Shares      storiesStoryStatsStat `json:"shares"`
	Subscribers storiesStoryStatsStat `json:"subscribers"`
	Views       storiesStoryStatsStat `json:"views"`
}

StoriesStoryStats struct

type UserBlockFunc

type UserBlockFunc func(UserBlockObject, int)

UserBlockFunc func

type UserBlockObject

type UserBlockObject struct {
	AdminID     int    `json:"admin_id"`
	UserID      int    `json:"user_id"`
	UnblockDate int    `json:"unblock_date"`
	Reason      int    `json:"reason"`
	Comment     string `json:"comment"`
}

UserBlockObject struct

type UserUnblockFunc

type UserUnblockFunc func(UserUnblockObject, int)

UserUnblockFunc func

type UserUnblockObject

type UserUnblockObject struct {
	AdminID   int `json:"admin_id"`
	UserID    int `json:"user_id"`
	ByEndDate int `json:"by_end_date"`
}

UserUnblockObject struct

type UsersCareer

type UsersCareer struct {
	CityID    int    `json:"city_id"`    // City ID
	Company   string `json:"company"`    // Company name
	CountryID int    `json:"country_id"` // Country ID
	From      int    `json:"from"`       // From year
	GroupID   int    `json:"group_id"`   // Community ID
	ID        int    `json:"id"`         // Career ID
	Position  string `json:"position"`   // Position
	Until     int    `json:"until"`      // Till year
}

type UsersMilitary

type UsersMilitary struct {
	CountryID int    `json:"country_id"` // Country ID
	From      int    `json:"from"`       // From year
	ID        int    `json:"id"`         // Military ID
	Unit      string `json:"unit"`       // Unit name
	UnitID    int    `json:"unit_id"`    // Unit ID
	Until     int    `json:"until"`      // Till year
}

type UsersRelative

type UsersRelative struct {
	BirthDate string `json:"birth_date"` // Date of child birthday (format dd.mm.yyyy)
	ID        int    `json:"id"`         // Relative ID
	Name      string `json:"name"`       // Name of relative
	Type      string `json:"type"`       // Relative type
}

type UsersSchool

type UsersSchool struct {
	City          int    `json:"city"`           // City ID
	Class         string `json:"class"`          // School class letter
	Country       int    `json:"country"`        // Country ID
	ID            string `json:"id"`             // School ID
	Name          string `json:"name"`           // School name
	Type          int    `json:"type"`           // School type ID
	TypeStr       string `json:"type_str"`       // School type name
	YearFrom      int    `json:"year_from"`      // Year the user started to study
	YearGraduated int    `json:"year_graduated"` // Graduation year
	YearTo        int    `json:"year_to"`        // Year the user finished to study
}

type UsersUniversity

type UsersUniversity struct {
	Chair           int    `json:"chair"`            // Chair ID
	ChairName       string `json:"chair_name"`       // Chair name
	City            int    `json:"city"`             // City ID
	Country         int    `json:"country"`          // Country ID
	EducationForm   string `json:"education_form"`   // Education form
	EducationStatus string `json:"education_status"` // Education status
	Faculty         int    `json:"faculty"`          // Faculty ID
	FacultyName     string `json:"faculty_name"`     // Faculty name
	Graduation      int    `json:"graduation"`       // Graduation year
	ID              int    `json:"id"`               // University ID
	Name            string `json:"name"`             // University name
}

type UsersUser

type UsersUser struct {
	ID                     int               `json:"id"`
	FirstName              string            `json:"first_name"`
	LastName               string            `json:"last_name"`
	IsClosed               bool              `json:"is_closed"`
	CanAccessClosed        bool              `json:"can_access_closed"`
	Sex                    int               `json:"sex"`
	Nickname               string            `json:"nickname"`
	Domain                 string            `json:"domain"`
	ScreenName             string            `json:"screen_name"`
	Bdate                  string            `json:"bdate"`
	City                   BaseObject        `json:"city"`
	Country                BaseObject        `json:"country"`
	Photo50                string            `json:"photo_50"`
	Photo100               string            `json:"photo_100"`
	Photo200               string            `json:"photo_200"`
	PhotoMax               string            `json:"photo_max"`
	Photo200Orig           string            `json:"photo_200_orig"`
	Photo400Orig           string            `json:"photo_400_orig"`
	PhotoMaxOrig           string            `json:"photo_max_orig"`
	PhotoID                string            `json:"photo_id"`
	HasPhoto               int               `json:"has_photo"`
	HasMobile              int               `json:"has_mobile"`
	IsFriend               int               `json:"is_friend"`
	FriendStatus           int               `json:"friend_status"`
	Online                 int               `json:"online"`
	OnlineApp              int               `json:"online_app"`
	OnlineMobile           int               `json:"online_mobile"`
	CanPost                int               `json:"can_post"`
	CanSeeAllPosts         int               `json:"can_see_all_posts"`
	CanSeeAudio            int               `json:"can_see_audio"`
	CanWritePrivateMessage int               `json:"can_write_private_message"`
	CanSendFriendRequest   int               `json:"can_send_friend_request"`
	Facebook               string            `json:"facebook"`
	FacebookName           string            `json:"facebook_name"`
	Twitter                string            `json:"twitter"`
	Instagram              string            `json:"instagram"`
	Site                   string            `json:"site"`
	Status                 string            `json:"status"`
	StatusAudio            AudioAudioFull    `json:"status_audio"`
	LastSeen               usersLastSeen     `json:"last_seen"`
	CropPhoto              usersCropPhoto    `json:"crop_photo"`
	Verified               int               `json:"verified"`
	FollowersCount         int               `json:"followers_count"`
	Blacklisted            int               `json:"blacklisted"`
	BlacklistedByMe        int               `json:"blacklisted_by_me"`
	IsFavorite             int               `json:"is_favorite"`
	IsHiddenFromFeed       int               `json:"is_hidden_from_feed"`
	CommonCount            int               `json:"common_count"`
	Occupation             usersOccupation   `json:"occupation"`
	Career                 []UsersCareer     `json:"career"`
	Military               []UsersMilitary   `json:"military"`
	University             int               `json:"university"`
	UniversityName         string            `json:"university_name"`
	Faculty                int               `json:"faculty"`
	FacultyName            string            `json:"faculty_name"`
	Graduation             int               `json:"graduation"`
	HomeTown               string            `json:"home_town"`
	Relation               int               `json:"relation"`
	RelationPartner        UsersUserMin      `json:"relation_partner"`
	Personal               usersPersonal     `json:"personal"`
	Interests              string            `json:"interests"`
	Music                  string            `json:"music"`
	Activities             string            `json:"activities"`
	Movies                 string            `json:"movies"`
	Tv                     string            `json:"tv"`
	Books                  string            `json:"books"`
	Games                  string            `json:"games"`
	Universities           []UsersUniversity `json:"universities"`
	Schools                []UsersSchool     `json:"schools"`
	About                  string            `json:"about"`
	Relatives              []UsersRelative   `json:"relatives"`
	Quotes                 string            `json:"quotes"`
	Lists                  []int             `json:"lists"`
	Deactivated            string            `json:"deactivated"`
	WallDefault            string            `json:"wall_default"`
	Trending               int               `json:"trending"`
	Timezone               int               `json:"timezone"`
	MaidenName             string            `json:"maiden_name"`
	Exports                usersExports      `json:"exports"`
	Counters               usersUserCounters `json:"counters"`
	//Contacts               usersContacts     `json:"contacts"`
	MobilePhone string `json:"mobile_phone"`
	HomePhone   string `json:"home_phone"`
	FoundWith   int    `json:"found_with"` // TODO: check it

}

UsersUser struct

func (UsersUser) ToMention

func (user UsersUser) ToMention() string

ToMention return mention

type UsersUserLim

type UsersUserLim struct {
	ID      int    `json:"id"`
	Name    string `json:"name"`
	NameGen string `json:"name_gen"`
	Photo   string `json:"photo"`
}

UsersUserLim struct

type UsersUserMin

type UsersUserMin struct {
	Deactivated string `json:"deactivated"` // Returns if a profile is deleted or blocked
	FirstName   string `json:"first_name"`  // User first name
	Hidden      int    `json:"hidden"`      // Returns if a profile is hidden.
	ID          int    `json:"id"`          // User ID
	LastName    string `json:"last_name"`   // User last name
}

UsersUserMin struct

func (UsersUserMin) ToMention

func (user UsersUserMin) ToMention() string

ToMention return mention

type UtilsDomainResolved

type UtilsDomainResolved struct {
	ObjectID int    `json:"object_id"` // Object ID
	Type     string `json:"type"`
}

UtilsDomainResolved struct

type UtilsLastShortenedLink struct {
	AccessKey string `json:"access_key"` // Access key for private stats
	Key       string `json:"key"`        // Link key (characters after vk.cc/)
	ShortURL  string `json:"short_url"`  // Short link URL
	Timestamp int    `json:"timestamp"`  // Creation time in Unixtime
	URL       string `json:"url"`        // Full URL
	Views     int    `json:"views"`      // Total views number
}

UtilsLastShortenedLink struct

type UtilsLinkChecked

type UtilsLinkChecked struct {
	Link   string `json:"link"` // Link URL
	Status string `json:"status"`
}

UtilsLinkChecked struct

type UtilsLinkStats

type UtilsLinkStats struct {
	Key   string       `json:"key"` // Link key (characters after vk.cc/)
	Stats []utilsStats `json:"stats"`
}

UtilsLinkStats struct

type UtilsLinkStatsExtended

type UtilsLinkStatsExtended struct {
	Key   string               `json:"key"` // Link key (characters after vk.cc/)
	Stats []utilsStatsExtended `json:"stats"`
}

UtilsLinkStatsExtended struct

type UtilsShortLink struct {
	AccessKey string `json:"access_key"` // Access key for private stats
	Key       string `json:"key"`        // Link key (characters after vk.cc/)
	ShortURL  string `json:"short_url"`  // Short link URL
	URL       string `json:"url"`        // Full URL
}

UtilsShortLink struct

type VideoCatBlock

type VideoCatBlock struct {
	CanHide int               `json:"can_hide"`
	ID      int               `json:"id"`
	Items   []videoCatElement `json:"items"`
	Name    string            `json:"name"`
	Next    string            `json:"next"`
	Type    string            `json:"type"`
	View    string            `json:"view"`
}

VideoCatBlock struct

type VideoCommentDeleteFunc

type VideoCommentDeleteFunc func(VideoCommentDeleteObject, int)

VideoCommentDeleteFunc func

type VideoCommentDeleteObject

type VideoCommentDeleteObject struct {
	OwnerID   int `json:"owner_id"`
	ID        int `json:"id"`
	UserID    int `json:"user_id"`
	DeleterID int `json:"deleter_id"`
	VideoID   int `json:"video_id"`
}

VideoCommentDeleteObject struct

type VideoCommentEditFunc

type VideoCommentEditFunc func(VideoCommentEditObject, int)

VideoCommentEditFunc func

type VideoCommentEditObject

type VideoCommentEditObject WallWallComment

VideoCommentEditObject struct

type VideoCommentNewFunc

type VideoCommentNewFunc func(VideoCommentNewObject, int)

VideoCommentNewFunc func

type VideoCommentNewObject

type VideoCommentNewObject WallWallComment

VideoCommentNewObject struct

type VideoCommentRestoreFunc

type VideoCommentRestoreFunc func(VideoCommentRestoreObject, int)

VideoCommentRestoreFunc func

type VideoCommentRestoreObject

type VideoCommentRestoreObject WallWallComment

VideoCommentRestoreObject struct

type VideoNewFunc

type VideoNewFunc func(VideoNewObject, int)

VideoNewFunc func

type VideoNewObject

type VideoNewObject VideoVideo

VideoNewObject struct

type VideoSaveResult

type VideoSaveResult struct {
	Description string `json:"description"` // Video description
	OwnerID     int    `json:"owner_id"`    // Video owner ID
	Title       string `json:"title"`       // Video title
	UploadURL   string `json:"upload_url"`  // URL for the video uploading
	VideoID     int    `json:"video_id"`    // Video ID
	AccessKey   string `json:"access_key"`  // Video access key
}

VideoSaveResult struct

type VideoUploadResponse

type VideoUploadResponse struct {
	Size    int `json:"size"`
	VideoID int `json:"video_id"`
}

VideoUploadResponse struct

type VideoVideo

type VideoVideo struct {
	AccessKey      string          `json:"access_key"`       // Video access key
	AddingDate     int             `json:"adding_date"`      // Date when the video has been added in Unixtime
	CanAdd         int             `json:"can_add"`          // Information whether current user can add the video
	CanAddToFaves  int             `json:"can_add_to_faves"` // Information whether current user can add the video to faves
	CanComment     int             `json:"can_comment"`      // Information whether current user can comment the video
	CanEdit        int             `json:"can_edit"`         // Information whether current user can edit the video
	CanLike        int             `json:"can_like"`         // Information whether current user can like the video
	CanRepost      int             `json:"can_repost"`       // Information whether current user can repost this video
	Comments       int             `json:"comments"`         // Number of comments
	Date           int             `json:"date"`             // Date when video has been uploaded in Unixtime
	Description    string          `json:"description"`      // Video description
	Duration       int             `json:"duration"`         // Video duration in seconds
	Files          videoVideoFiles `json:"files"`
	FirstFrame130  string          `json:"first_frame_130"`  // URL of the first frame for the corresponding width.
	FirstFrame160  string          `json:"first_frame_160"`  // URL of the first frame for the corresponding width.
	FirstFrame320  string          `json:"first_frame_320"`  // URL of the first frame for the corresponding width.
	FirstFrame640  string          `json:"first_frame_640"`  // URL of the first frame for the corresponding width.
	FirstFrame800  string          `json:"first_frame_800"`  // URL of the first frame for the corresponding width.
	FirstFrame1280 string          `json:"first_frame_1280"` // URL of the first frame for the corresponding width.
	Height         int             `json:"height"`           // Video height
	ID             int             `json:"id"`               // Video ID
	IsFavorite     bool            `json:"is_favorite"`
	Live           int             `json:"live"`       // Returns if the video is a live stream
	OwnerID        int             `json:"owner_id"`   // Video owner ID
	Photo130       string          `json:"photo_130"`  // URL of the preview image with 130 px in width
	Photo320       string          `json:"photo_320"`  // URL of the preview image with 320 px in width
	Photo640       string          `json:"photo_640"`  // URL of the preview image with 640 px in width
	Photo800       string          `json:"photo_800"`  // URL of the preview image with 800 px in width
	Photo1280      string          `json:"photo_1280"` // URL of the preview image with 1280 px in width
	Player         string          `json:"player"`     // URL of the page with a player that can be used to play the video in the browser.
	Processing     int             `json:"processing"` // Returns if the video is processing
	Title          string          `json:"title"`      // Video title
	Type           string          `json:"type"`
	Views          int             `json:"views"` // Number of views
	Width          int             `json:"width"` // Video width
	Platform       string          `json:"platform"`
	LocalViews     int             `json:"local_views"`
	IsPrivate      int             `json:"is_private"`
	Likes          baseLikesInfo   `json:"likes"`   // Count of likes
	Reposts        baseRepostsInfo `json:"reposts"` // Count of views
	PrivacyView    []interface{}   `json:"privacy_view"`
	PrivacyComment []interface{}   `json:"privacy_comment"`
}

VideoVideo struct

func (VideoVideo) ToAttachment

func (video VideoVideo) ToAttachment() string

ToAttachment return attachment format

type VideoVideoAlbum

type VideoVideoAlbum struct {
	ID      int    `json:"id"`
	OwnerID int    `json:"owner_id"`
	Title   string `json:"title"`
}

VideoVideoAlbum struct

type VideoVideoAlbumFull

type VideoVideoAlbumFull struct {
	Count       int               `json:"count"`        // Total number of videos in album
	ID          int               `json:"id"`           // Album ID
	Image       []videoVideoImage `json:"image"`        // Album cover image in different sizes
	IsSystem    int               `json:"is_system"`    // Information whether album is system
	OwnerID     int               `json:"owner_id"`     // Album owner's ID
	Photo160    string            `json:"photo_160"`    // URL of the preview image with 160px in width
	Photo320    string            `json:"photo_320"`    // URL of the preview image with 320px in width
	Title       string            `json:"title"`        // Album title
	UpdatedTime int               `json:"updated_time"` // Date when the album has been updated last time in Unixtime
}

VideoVideoAlbumFull struct

type VideoVideoFull

type VideoVideoFull struct {
	AccessKey     string          `json:"access_key"`  // Video access key
	AddingDate    int             `json:"adding_date"` // Date when the video has been added in Unixtime
	CanAdd        int             `json:"can_add"`     // Information whether current user can add the video
	CanComment    int             `json:"can_comment"` // Information whether current user can comment the video
	CanEdit       int             `json:"can_edit"`    // Information whether current user can edit the video
	CanRepost     int             `json:"can_repost"`  // Information whether current user can comment the video
	Comments      int             `json:"comments"`    // Number of comments
	Date          int             `json:"date"`        // Date when video has been uploaded in Unixtime
	Description   string          `json:"description"` // Video description
	Duration      int             `json:"duration"`    // Video duration in seconds
	Files         videoVideoFiles `json:"files"`
	FirstFrame130 string          `json:"first_frame_130"` // URL of the first frame for the corresponding width.
	FirstFrame160 string          `json:"first_frame_160"` // URL of the first frame for the corresponding width.
	FirstFrame320 string          `json:"first_frame_320"` // URL of the first frame for the corresponding width.
	FirstFrame800 string          `json:"first_frame_800"` // URL of the first frame for the corresponding width.
	ID            int             `json:"id"`              // Video ID
	Likes         baseLikes       `json:"likes"`
	Live          int             `json:"live"`       // Returns if the video is live translation
	OwnerID       int             `json:"owner_id"`   // Video owner ID
	Photo130      string          `json:"photo_130"`  // URL of the preview image with 130 px in width
	Photo320      string          `json:"photo_320"`  // URL of the preview image with 320 px in width
	Photo800      string          `json:"photo_800"`  // URL of the preview image with 800 px in width
	Player        string          `json:"player"`     // URL of the page with a player that can be used to play the video in the browser.
	Processing    int             `json:"processing"` // Returns if the video is processing
	Repeat        int             `json:"repeat"`     // Information whether the video is repeated
	Title         string          `json:"title"`      // Video title
	Views         int             `json:"views"`      // Number of views
	Width         int             `json:"width"`
	Height        int             `json:"height"`
	Image         []struct {
		Height      int    `json:"height"`
		URL         string `json:"url"`
		Width       int    `json:"width"`
		WithPadding int    `json:"with_padding"`
	} `json:"image"`
	IsFavorite bool `json:"is_favorite"`
	FirstFrame []struct {
		URL    string `json:"url"`
		Width  int    `json:"width"`
		Height int    `json:"height"`
	} `json:"first_frame"`
	Added         int             `json:"added"`
	CanLike       int             `json:"can_like"`
	CanAddToFaves int             `json:"can_add_to_faves"`
	Type          string          `json:"type"`
	Reposts       baseRepostsInfo `json:"reposts"`
}

VideoVideoFull struct

func (VideoVideoFull) ToAttachment

func (video VideoVideoFull) ToAttachment() string

ToAttachment return attachment format

type VideoVideoTag

type VideoVideoTag struct {
	Date       int    `json:"date"`
	ID         int    `json:"id"`
	PlacerID   int    `json:"placer_id"`
	TaggedName string `json:"tagged_name"`
	UserID     int    `json:"user_id"`
	Viewed     int    `json:"viewed"`
}

VideoVideoTag struct

type VideoVideoTagInfo

type VideoVideoTagInfo struct {
	AccessKey   string          `json:"access_key"`
	AddingDate  int             `json:"adding_date"`
	CanAdd      int             `json:"can_add"`
	CanEdit     int             `json:"can_edit"`
	Comments    int             `json:"comments"`
	Date        int             `json:"date"`
	Description string          `json:"description"`
	Duration    int             `json:"duration"`
	Files       videoVideoFiles `json:"files"`
	ID          int             `json:"id"`
	Live        int             `json:"live"`
	OwnerID     int             `json:"owner_id"`
	Photo130    string          `json:"photo_130"`
	Photo320    string          `json:"photo_320"`
	Photo800    string          `json:"photo_800"`
	PlacerID    int             `json:"placer_id"`
	Player      string          `json:"player"`
	Processing  int             `json:"processing"`
	TagCreated  int             `json:"tag_created"`
	TagID       int             `json:"tag_id"`
	Title       string          `json:"title"`
	Views       int             `json:"views"`
}

VideoVideoTagInfo struct

type VkpayTransactionFunc

type VkpayTransactionFunc func(VkpayTransactionObject, int)

VkpayTransactionFunc func

type VkpayTransactionObject

type VkpayTransactionObject struct {
	FromID      int    `json:"from_id"`
	Amount      string `json:"amount"` // FIXME: string or int?
	Description string `json:"description"`
	Date        string `json:"date"` // FIXME: string or int?
}

VkpayTransactionObject struct

type WallPostNewFunc

type WallPostNewFunc func(WallPostNewObject, int)

WallPostNewFunc func

type WallPostNewObject

type WallPostNewObject WallWallpost

WallPostNewObject struct

type WallReplyDeleteFunc

type WallReplyDeleteFunc func(WallReplyDeleteObject, int)

WallReplyDeleteFunc func

type WallReplyDeleteObject

type WallReplyDeleteObject struct {
	OwnerID   int `json:"owner_id"`
	ID        int `json:"id"`
	DeleterID int `json:"deleter_id"`
	PostID    int `json:"post_id"`
}

WallReplyDeleteObject struct

type WallReplyEditFunc

type WallReplyEditFunc func(WallReplyEditObject, int)

WallReplyEditFunc func

type WallReplyEditObject

type WallReplyEditObject WallWallComment

WallReplyEditObject struct

type WallReplyNewFunc

type WallReplyNewFunc func(WallReplyNewObject, int)

WallReplyNewFunc func

type WallReplyNewObject

type WallReplyNewObject WallWallComment

WallReplyNewObject struct

type WallReplyRestoreFunc

type WallReplyRestoreFunc func(WallReplyRestoreObject, int)

WallReplyRestoreFunc func

type WallReplyRestoreObject

type WallReplyRestoreObject WallWallComment

WallReplyRestoreObject struct

type WallRepostFunc

type WallRepostFunc func(WallRepostObject, int)

WallRepostFunc func

type WallRepostObject

type WallRepostObject WallWallpost

WallRepostObject struct

type WallWallComment

type WallWallComment struct {
	Attachments    []wallCommentAttachment `json:"attachments"`
	Date           int                     `json:"date"` // Date when the comment has been added in Unixtime
	Deleted        bool                    `json:"deleted"`
	FromID         int                     `json:"from_id"` // Author ID
	ID             int                     `json:"id"`      // Comment ID
	Likes          baseLikesInfo           `json:"likes"`
	RealOffset     int                     `json:"real_offset"`      // Real position of the comment
	ReplyToComment int                     `json:"reply_to_comment"` // Replied comment ID
	ReplyToUser    int                     `json:"reply_to_user"`    // Replied user ID
	Text           string                  `json:"text"`             // Comment text
	PostID         int                     `json:"post_id"`
	PostOwnerID    int                     `json:"post_owner_id"`
	PhotoID        int                     `json:"photo_id"`
	PhotoOwnerID   int                     `json:"photo_owner_id"`
	VideoID        int                     `json:"video_id"`
	VideoOwnerID   int                     `json:"video_owner_id"`
	ItemID         int                     `json:"item_id"`
	MarketOwnerID  int                     `json:"market_owner_id"`
	ParentsStack   []int                   `json:"parents_stack"`
	OwnerID        int                     `json:"owner_id"`
	Thread         wallWallCommentThread   `json:"thread"`
}

WallWallComment struct

type WallWallpost

type WallWallpost struct {
	AccessKey    string                   `json:"access_key"` // Access key to private object
	ID           int                      `json:"id"`         // Post ID
	OwnerID      int                      `json:"owner_id"`   // Wall owner's ID
	FromID       int                      `json:"from_id"`    // Post author ID
	CreatedBy    int                      `json:"created_by"`
	Date         int                      `json:"date"` // Date of publishing in Unixtime
	Text         string                   `json:"text"` // Post text
	ReplyOwnerID int                      `json:"reply_owner_id"`
	ReplyPostID  int                      `json:"reply_post_id"`
	FriendsOnly  int                      `json:"friends_only"`
	Comments     baseCommentsInfo         `json:"comments"`
	Likes        baseLikesInfo            `json:"likes"`   // Count of likes
	Reposts      baseRepostsInfo          `json:"reposts"` // Count of views
	Views        wallViews                `json:"views"`   // Count of views
	PostType     string                   `json:"post_type"`
	PostSource   wallPostSource           `json:"post_source"`
	Attachments  []wallWallpostAttachment `json:"attachments"`
	Geo          baseGeo                  `json:"geo"`
	SignerID     int                      `json:"signer_id"` // Post signer ID
	CopyHistory  []WallWallpost           `json:"copy_history"`
	CanPin       int                      `json:"can_pin"`
	CanDelete    int                      `json:"can_delete"`
	CanEdit      int                      `json:"can_edit"`
	IsPinned     int                      `json:"is_pinned"`
	MarkedAsAds  int                      `json:"marked_as_ads"`
	Edited       int                      `json:"edited"`      // Date of editing in Unixtime
	IsFavorite   bool                     `json:"is_favorite"` // Information whether the post in favorites list
	IsArchived   bool                     `json:"is_archived"` // Is post archived, only for post owners
}

WallWallpost struct

type WallWallpostToID

type WallWallpostToID struct {
	Attachments []wallWallpostAttachment `json:"attachments"`
	Comments    baseCommentsInfo         `json:"comments"`
	CopyOwnerID int                      `json:"copy_owner_id"` // ID of the source post owner
	CopyPostID  int                      `json:"copy_post_id"`  // ID of the source post
	Date        int                      `json:"date"`          // Date of publishing in Unixtime
	FromID      int                      `json:"from_id"`       // Post author ID
	Geo         baseGeo                  `json:"geo"`
	ID          int                      `json:"id"` // Post ID
	Likes       baseLikesInfo            `json:"likes"`
	PostID      int                      `json:"post_id"` // wall post ID (if comment)
	PostSource  wallPostSource           `json:"post_source"`
	PostType    string                   `json:"post_type"`
	Reposts     baseRepostsInfo          `json:"reposts"`
	SignerID    int                      `json:"signer_id"`   // Post signer ID
	Text        string                   `json:"text"`        // Post text
	ToID        int                      `json:"to_id"`       // Wall owner's ID
	IsFavorite  bool                     `json:"is_favorite"` // Information whether the post in favorites list
}

WallWallpostToID struct

type WidgetsWidgetComment

type WidgetsWidgetComment struct {
	Attachments []wallCommentAttachment `json:"attachments"`
	CanDelete   int                     `json:"can_delete"` // Information whether current user can delete the comment
	Comments    widgetsCommentReplies   `json:"comments"`
	Date        int                     `json:"date"`    // Date when the comment has been added in Unixtime
	FromID      int                     `json:"from_id"` // Comment author ID
	ID          int                     `json:"id"`      // Comment ID
	Likes       baseLikesInfo           `json:"likes"`
	Media       widgetsCommentMedia     `json:"media"`
	PostType    int                     `json:"post_type"` // Post type
	Reposts     baseRepostsInfo         `json:"reposts"`
	Text        string                  `json:"text"`  // Comment text
	ToID        int                     `json:"to_id"` // Wall owner
	PostSource  struct {
		Link struct {
			URL         string `json:"url"`
			Title       string `json:"title"`
			Description string `json:"description"`
		} `json:"link"`
		Type string `json:"type"`
		Data string `json:"data"`
	} `json:"post_source"`
	IsFavorite bool `json:"is_favorite"`
}

WidgetsWidgetComment struct

type WidgetsWidgetPage

type WidgetsWidgetPage struct {
	Comments    widgetsWidgetLikes `json:"comments,omitempty"`
	Date        int                `json:"date,omitempty"`        // Date when widgets on the page has been initialized firstly in Unixtime
	Description string             `json:"description,omitempty"` // Page description
	ID          int                `json:"id,omitempty"`          // Page ID
	Likes       widgetsWidgetLikes `json:"likes,omitempty"`
	PageID      string             `json:"page_id,omitempty"` // page_id parameter value
	Photo       string             `json:"photo,omitempty"`   // URL of the preview image
	Title       string             `json:"title,omitempty"`   // Page title
	URL         string             `json:"url,omitempty"`     // Page absolute URL
}

WidgetsWidgetPage struct

Notes

Bugs

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL