Documentation ¶
Index ¶
- Constants
- type AccountAccountCounters
- type AccountInfo
- type AccountNameRequest
- type AccountOffer
- type AccountPushConversations
- type AccountPushConversationsItem
- type AccountPushParams
- type AccountPushSettings
- type AccountUserSettings
- type AdsAccesses
- type AdsAccount
- type AdsAd
- type AdsAdLayout
- type AdsCampaign
- type AdsCategory
- type AdsClient
- type AdsCriteria
- type AdsDemoStats
- type AdsDemostatsFormat
- type AdsFloodStats
- type AdsLinkStatus
- type AdsParagraphs
- type AdsPromotedPostReach
- type AdsRejectReason
- type AdsRules
- type AdsStats
- type AdsStatsAge
- type AdsStatsCities
- type AdsStatsFormat
- type AdsStatsSex
- type AdsStatsSexAge
- type AdsTargSettings
- type AdsTargStats
- type AdsTargSuggestions
- type AdsTargSuggestionsCities
- type AdsTargSuggestionsRegions
- type AdsTargSuggestionsSchools
- type AdsTargetGroup
- type AdsUsers
- type AppPayloadFunc
- type AppPayloadObject
- type AppWidgetsAppImageUploadResponse
- type AppWidgetsGroupImageUploadResponse
- type AppWidgetsImage
- type AppsApp
- type AppsLeaderboard
- type AppsScope
- type Article
- type Attachment
- type AudioAudio
- type AudioAudioArtist
- type AudioAudioFull
- type AudioAudioUploadResponse
- type AudioLyrics
- type AudioNewFunc
- type AudioNewObject
- type BaseCategoryObject
- type BaseCommentsInfo
- type BaseCountry
- type BaseGeo
- type BaseImage
- type BaseLikes
- type BaseLikesInfo
- type BaseLink
- type BaseLinkApplication
- type BaseLinkApplicationStore
- type BaseLinkButton
- type BaseLinkButtonAction
- type BaseLinkProduct
- type BaseLinkRating
- type BaseObject
- type BaseObjectCount
- type BaseObjectWithName
- type BasePlace
- type BaseRepostsInfo
- type BaseRequestParam
- type BaseSticker
- type BaseUserID
- type BoardPostDeleteFunc
- type BoardPostDeleteObject
- type BoardPostEditFunc
- type BoardPostEditObject
- type BoardPostNewFunc
- type BoardPostNewObject
- type BoardPostRestoreFunc
- type BoardPostRestoreObject
- type BoardTopic
- type BoardTopicComment
- type BoardTopicPoll
- type Changes
- type ChangesInt
- type ClientInfo
- type DatabaseCity
- type DatabaseFaculty
- type DatabaseMetroStation
- type DatabaseRegion
- type DatabaseSchool
- type DatabaseStation
- type DatabaseUniversity
- type DocsDoc
- type DocsDocPreview
- type DocsDocPreviewAudioMessage
- type DocsDocPreviewGraffiti
- type DocsDocPreviewPhoto
- type DocsDocPreviewPhotoSizes
- type DocsDocPreviewVideo
- type DocsDocTypes
- type DocsDocUploadResponse
- type Error
- type EventsEventAttach
- type ExtendedResponse
- type FaveFavesLink
- type FaveItem
- type FavePage
- type FaveTag
- type FriendsFriendStatus
- type FriendsFriendsList
- type FriendsRequests
- type FriendsRequestsMutual
- type FriendsRequestsXtrMessage
- type FriendsUserXtrLists
- type FriendsUserXtrPhone
- type GiftsGift
- type GiftsLayout
- type GroupChangePhotoFunc
- type GroupChangePhotoObject
- type GroupChangeSettingsFunc
- type GroupChangeSettingsObject
- type GroupEvent
- type GroupJoinFunc
- type GroupJoinObject
- type GroupLeaveFunc
- type GroupLeaveObject
- type GroupOfficersEditFunc
- type GroupOfficersEditObject
- type GroupsAddress
- type GroupsAddressTimetable
- type GroupsAddressTimetableDay
- type GroupsAddressesInfo
- type GroupsBanInfo
- type GroupsCallbackServer
- type GroupsCallbackSettings
- type GroupsContactsItem
- type GroupsCountersGroup
- type GroupsCover
- type GroupsGroup
- type GroupsGroupBanInfo
- type GroupsGroupCategory
- type GroupsGroupCategoryFull
- type GroupsGroupCategoryType
- type GroupsGroupLink
- type GroupsGroupPublicCategoryList
- type GroupsGroupSettings
- type GroupsGroupXtrInvitedBy
- type GroupsLinksItem
- type GroupsLiveCovers
- type GroupsLongPollEvents
- type GroupsLongPollServer
- type GroupsLongPollSettings
- type GroupsMarketInfo
- type GroupsMemberRole
- type GroupsMemberStatus
- type GroupsMemberStatusFull
- type GroupsOnlineStatus
- type GroupsOwnerXtrBanInfo
- type GroupsSubjectItem
- type GroupsTokenPermissionSetting
- type GroupsTokenPermissions
- type JSONObject
- type LeadFormsForm
- type LeadFormsLead
- type LeadFormsNewFunc
- type LeadFormsNewObject
- type LeadsChecked
- type LeadsComplete
- type LeadsEntry
- type LeadsLead
- type LeadsLeadDays
- type LeadsStart
- type LongpollBotResponse
- type LongpollResponse
- type MarketCommentDeleteFunc
- type MarketCommentDeleteObject
- type MarketCommentEditFunc
- type MarketCommentEditObject
- type MarketCommentNewFunc
- type MarketCommentNewObject
- type MarketCommentRestoreFunc
- type MarketCommentRestoreObject
- type MarketCurrency
- type MarketMarketAlbum
- type MarketMarketCategory
- type MarketMarketItem
- type MarketPrice
- type MarketSection
- type MessageAllowFunc
- type MessageAllowObject
- type MessageCall
- type MessageDenyFunc
- type MessageDenyObject
- type MessageEditFunc
- type MessageEditObject
- type MessageNewFunc
- type MessageNewObject
- type MessageReadFunc
- type MessageReadObject
- type MessageReplyFunc
- type MessageReplyObject
- type MessageTypingStateFunc
- type MessageTypingStateObject
- type MessagesAudioMessage
- type MessagesChat
- type MessagesChatFull
- type MessagesChatPushSettings
- type MessagesChatSettingsPhoto
- type MessagesConversation
- type MessagesConversationCanWrite
- type MessagesConversationChatSettings
- type MessagesConversationPeer
- type MessagesConversationPushSettings
- type MessagesConversationWithMessage
- type MessagesDialog
- type MessagesGraffiti
- type MessagesHistoryAttachment
- type MessagesHistoryMessageAttachment
- type MessagesKeyboard
- func (keyboard *MessagesKeyboard) AddLocationButton(payload string)
- func (keyboard *MessagesKeyboard) AddOpenLinkButton(link, label, payload string)
- func (keyboard *MessagesKeyboard) AddRow()
- func (keyboard *MessagesKeyboard) AddTextButton(label string, payload string, color string)
- func (keyboard *MessagesKeyboard) AddVKAppsButton(appID, ownerID int, payload, label, hash string)
- func (keyboard *MessagesKeyboard) AddVKPayButton(payload string, hash string)
- func (keyboard MessagesKeyboard) ToJSON() string
- type MessagesKeyboardButton
- type MessagesKeyboardButtonAction
- type MessagesLastActivity
- type MessagesLongpollParams
- type MessagesMessage
- type MessagesMessageAction
- type MessagesMessageActionPhoto
- type MessagesMessageAttachment
- type MessagesPinnedMessage
- type MessagesTemplate
- type MessagesTemplateElement
- type MessagesTemplateElementCarousel
- type MessagesTemplateElementCarouselAction
- type MessagesUserXtrInvitedBy
- type NewsfeedEventActivity
- type NewsfeedItemAudio
- type NewsfeedItemAudioAudio
- type NewsfeedItemDigest
- type NewsfeedItemFriend
- type NewsfeedItemFriendFriends
- type NewsfeedItemNote
- type NewsfeedItemNoteNotes
- type NewsfeedItemPhoto
- type NewsfeedItemPhotoPhotos
- type NewsfeedItemPhotoTag
- type NewsfeedItemPhotoTagPhotoTags
- type NewsfeedItemStoriesBlock
- type NewsfeedItemTopic
- type NewsfeedItemVideo
- type NewsfeedItemVideoVideo
- type NewsfeedItemWallpost
- type NewsfeedList
- type NewsfeedNewsfeedItem
- type NewsfeedNewsfeedNote
- type NotesNote
- type NotesNoteComment
- type NotificationsFeedback
- type NotificationsNotification
- type NotificationsNotificationsComment
- type NotificationsReply
- type OauthError
- type OrdersAmount
- type OrdersAmountItem
- type OrdersOrder
- type OrdersSubscription
- type PagesWikipage
- type PagesWikipageFull
- type PagesWikipageHistory
- type PhotoCommentDeleteFunc
- type PhotoCommentDeleteObject
- type PhotoCommentEditFunc
- type PhotoCommentEditObject
- type PhotoCommentNewFunc
- type PhotoCommentNewObject
- type PhotoCommentRestoreFunc
- type PhotoCommentRestoreObject
- type PhotoNewFunc
- type PhotoNewObject
- type PhotosChatUploadResponse
- type PhotosCommentXtrPid
- type PhotosImage
- type PhotosMarketAlbumUploadResponse
- type PhotosMarketUploadResponse
- type PhotosMessageUploadResponse
- type PhotosOwnerUploadResponse
- type PhotosPhoto
- type PhotosPhotoAlbum
- type PhotosPhotoAlbumFull
- type PhotosPhotoFull
- type PhotosPhotoFullXtrRealOffset
- type PhotosPhotoSizes
- type PhotosPhotoTag
- type PhotosPhotoUpload
- type PhotosPhotoUploadResponse
- type PhotosPhotoXtrRealOffset
- type PhotosPhotoXtrTagInfo
- type PhotosWallUploadResponse
- type PodcastsCategory
- type PodcastsEpisode
- type PodcastsItem
- type PodcastsPodcastInfo
- type PollVoteNewFunc
- type PollVoteNewObject
- type PollsAnswer
- type PollsBackground
- type PollsFriend
- type PollsPhoto
- type PollsPhotoUploadResponse
- type PollsPoll
- type PollsVoters
- type PollsVotersFields
- type PollsVotersUsers
- type PollsVotersUsersFields
- type PrettyCardsPrettyCard
- type SearchHint
- type SecureLevel
- type SecureSmsNotification
- type SecureTokenChecked
- type SecureTransaction
- type StatsActivity
- type StatsCity
- type StatsCountry
- type StatsPeriod
- type StatsReach
- type StatsSexAge
- type StatsViews
- type StatsWallpostStat
- type StoriesClickablePoint
- type StoriesClickableSticker
- type StoriesClickableStickers
- type StoriesReplies
- type StoriesStory
- type StoriesStoryLink
- type StoriesStoryStats
- type StoriesStoryStatsStat
- type UserBlockFunc
- type UserBlockObject
- type UserUnblockFunc
- type UserUnblockObject
- type UsersCareer
- type UsersCropPhoto
- type UsersCropPhotoCrop
- type UsersCropPhotoRect
- type UsersExports
- type UsersLastSeen
- type UsersMilitary
- type UsersOccupation
- type UsersOnlineInfo
- type UsersPersonal
- type UsersRelative
- type UsersSchool
- type UsersUniversity
- type UsersUser
- type UsersUserCounters
- type UsersUserLim
- type UsersUserMin
- type UtilsDomainResolved
- type UtilsLastShortenedLink
- type UtilsLinkChecked
- type UtilsLinkStats
- type UtilsLinkStatsExtended
- type UtilsShortLink
- type UtilsStats
- type UtilsStatsCity
- type UtilsStatsCountry
- type UtilsStatsExtended
- type UtilsStatsSexAge
- type VideoCatBlock
- type VideoCatElement
- type VideoCommentDeleteFunc
- type VideoCommentDeleteObject
- type VideoCommentEditFunc
- type VideoCommentEditObject
- type VideoCommentNewFunc
- type VideoCommentNewObject
- type VideoCommentRestoreFunc
- type VideoCommentRestoreObject
- type VideoNewFunc
- type VideoNewObject
- type VideoSaveResult
- type VideoUploadResponse
- type VideoVideo
- type VideoVideoAlbum
- type VideoVideoAlbumFull
- type VideoVideoFiles
- type VideoVideoFull
- type VideoVideoImage
- type VideoVideoTag
- type VideoVideoTagInfo
- type VkpayTransactionFunc
- type VkpayTransactionObject
- type WallAppPost
- type WallAttachedNote
- type WallCommentAttachment
- type WallGraffiti
- type WallPostNewFunc
- type WallPostNewObject
- type WallPostSource
- type WallPostedPhoto
- type WallReplyDeleteFunc
- type WallReplyDeleteObject
- type WallReplyEditFunc
- type WallReplyEditObject
- type WallReplyNewFunc
- type WallReplyNewObject
- type WallReplyRestoreFunc
- type WallReplyRestoreObject
- type WallRepostFunc
- type WallRepostObject
- type WallViews
- type WallWallComment
- type WallWallCommentThread
- type WallWallpost
- type WallWallpostAttached
- type WallWallpostAttachment
- type WallWallpostToID
- type WidgetsCommentMedia
- type WidgetsCommentReplies
- type WidgetsCommentRepliesItem
- type WidgetsWidgetComment
- type WidgetsWidgetLikes
- type WidgetsWidgetPage
- Bugs
Constants ¶
const ( LangRU = 0 // Русский LangUK = 1 // Українська LangBE = 2 // Беларуская (тарашкевiца) LangEN = 3 // English LangES = 4 // Español LangFI = 5 // Suomi LangDE = 6 // Deutsch LangIT = 7 // Italiano LangBG = 8 // Български LangHR = 9 // Hrvatski LangHU = 10 // Magyar LangSR = 11 // Српски LangPT = 12 // Português LangEL = 14 // Ελληνικά LangPL = 15 // Polski LangFR = 16 // Français LangKO = 17 // 한국어 LangZH = 18 // 汉语 LangLT = 19 // Lietuvių LangJA = 20 // 日本語 LangCS = 21 // Čeština LangET = 22 // Eesti LangTT = 50 // Татарча LangBA = 51 // Башҡортса LangCV = 52 // Чăвашла LangSK = 53 // Slovenčina LangRO = 54 // Română LangNO = 55 // Norsk LangLV = 56 // Latviešu LangAZ = 57 // Azərbaycan dili LangHY = 58 // Հայերեն LangSQ = 59 // Shqip LangSV = 60 // Svenska LangNL = 61 // Nederlands LangTK = 62 // Türkmen LangKA = 63 // ქართული LangDA = 64 // Dansk LangUZ = 65 // O‘zbek LangMO = 66 // Moldovenească LangBUA = 67 // Буряад LangTH = 68 // ภาษาไทย LangID = 69 // Bahasa Indonesia LangTG = 70 // Тоҷикӣ LangSL = 71 // Slovenščina LangBS = 72 // Bosanski LangPTBR = 73 // Português brasileiro LangFA = 74 // فارسی LangVI = 75 // Tiếng Việt LangHI = 76 // हिन्दी LangSI = 77 // සිංහල LangBN = 78 // বাংলা LangTL = 79 // Tagalog LangMN = 80 // Монгол LangMY = 81 // ဗမာစာ LangTR = 82 // Türkçe LangNE = 83 // नेपाली LangUR = 85 // اردو LangKY = 87 // Кыргыз тили LangPA = 90 // پنجابی LangOS = 91 // Ирон LangKN = 94 // ಕನ್ನಡ LangSW = 95 // Kiswahili LangKK = 97 // Қазақша LangAR = 98 // العربية LangHE = 99 // עברית LangPreRevolutionary = 100 // Дореволюцiонный LangMYV = 101 // Эрзянь кель LangKDB = 102 // Адыгэбзэ LangSAH = 105 // Саха тыла LangADY = 106 // Адыгабзэ LangUDM = 107 // Удмурт LangCHM = 108 // Марий йылме LangBE2 = 114 // Беларуская LangLEZ = 118 // Лезги чІал LangTW = 119 // 臺灣話 LangKUM = 236 // Къумукъ тил LangMVL = 270 // Mirandés LangSLA = 298 // Русинськый LangKRL = 379 // Karjalan kieli LangTYV = 344 // Тыва дыл LangXAL = 357 // Хальмг келн LangTLY = 373 // Tolışə zıvon LangKV = 375 // Коми кыв LangUKClassic = 452 // Українська (клясична) LangUKGalitska = 454 // Українська (Галицка) LangKAB = 457 // Taqbaylit LangEO = 555 // Esperanto LangLA = 666 // Lingua Latina LangSoviet = 777 // Советский )
Language code
const ( ButtonText = "text" ButtonVKPay = "vkpay" ButtonVKApp = "open_app" ButtonLocation = "location" ButtonOpenLink = "open_link" )
Button action type
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 AccountPushConversationsItem ¶
type AccountPushConversationsItem struct { DisabledUntil int `json:"disabled_until"` // Time until that notifications are disabled in seconds PeerID int `json:"peer_id"` // Peer ID Sound int `json:"sound"` // Information whether the sound are enabled }
AccountPushConversationsItem 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 AdsAccesses ¶
AdsAccesses 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 AdsDemostatsFormat ¶
type AdsDemostatsFormat struct { Age []AdsStatsAge `json:"age"` Cities []AdsStatsCities `json:"cities"` Day string `json:"day"` // Day as YYYY-MM-DD Month string `json:"month"` // Month as YYYY-MM Overall int `json:"overall"` // 1 if period=overall Sex []AdsStatsSex `json:"sex"` SexAge []AdsStatsSexAge `json:"sex_age"` }
AdsDemostatsFormat struc
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 AdsParagraphs ¶
type AdsParagraphs struct {
Paragraph string `json:"paragraph"` // Rules paragraph
}
AdsParagraphs 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 AdsRules ¶
type AdsRules struct { Paragraphs []AdsParagraphs `json:"paragraphs"` Title string `json:"title"` // Comment }
AdsRules struct
type AdsStats ¶
type AdsStats struct { ID int `json:"id"` // Object ID Stats AdsStatsFormat `json:"stats"` Type string `json:"type"` }
AdsStats struct
type AdsStatsAge ¶
type AdsStatsAge struct { ClicksRate float64 `json:"clicks_rate"` // Clicks rate ImpressionsRate float64 `json:"impressions_rate"` // Impressions rate Value string `json:"value"` // Age interval }
AdsStatsAge struct
type AdsStatsCities ¶
type AdsStatsCities struct { ClicksRate float64 `json:"clicks_rate"` // Clicks rate ImpressionsRate float64 `json:"impressions_rate"` // Impressions rate Name string `json:"name"` // City name Value int `json:"value"` // City ID }
AdsStatsCities struct
type AdsStatsFormat ¶
type AdsStatsFormat struct { Clicks int `json:"clicks"` // Clicks number Day string `json:"day"` // Day as YYYY-MM-DD Impressions int `json:"impressions"` // Impressions number JoinRate int `json:"join_rate"` // Events number Month string `json:"month"` // Month as YYYY-MM Overall int `json:"overall"` // 1 if period=overall Reach int `json:"reach"` // Reach Spent int `json:"spent"` // Spent funds VideoClicksSite int `json:"video_clicks_site"` // Clickthoughs to the advertised site VideoViews int `json:"video_views"` // Video views number VideoViewsFull int `json:"video_views_full"` // Video views (full video) VideoViewsHalf int `json:"video_views_half"` // Video views (half of video) }
AdsStatsFormat struct
type AdsStatsSex ¶
type AdsStatsSex struct { ClicksRate float64 `json:"clicks_rate"` // Clicks rate ImpressionsRate float64 `json:"impressions_rate"` // Impressions rate Value string `json:"value"` }
AdsStatsSex struct
type AdsStatsSexAge ¶
type AdsStatsSexAge struct { ClicksRate float64 `json:"clicks_rate"` // Clicks rate ImpressionsRate float64 `json:"impressions_rate"` // Impressions rate Value string `json:"value"` // Sex and age interval }
AdsStatsSexAge 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 AppPayloadObject ¶
type AppPayloadObject struct { UserID int `json:"user_id"` AppID int `json:"app_id"` Payload string `json:"payload"` }
AppPayloadObject struct
type AppWidgetsAppImageUploadResponse ¶
type AppWidgetsAppImageUploadResponse struct { Image string `json:"image"` Hash string `json:"hash"` }
AppWidgetsAppImageUploadResponse struct
type AppWidgetsGroupImageUploadResponse ¶
type AppWidgetsGroupImageUploadResponse struct { Image string `json:"image"` Hash string `json:"hash"` }
AppWidgetsGroupImageUploadResponse struct
type AppWidgetsImage ¶
type AppWidgetsImage struct { ID string `json:"id"` Type string `json:"type"` Images BaseImage `json:"images"` }
AppWidgetsImage 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 // BUG(VK): https://github.com/SevereCloud/vksdk/issues/63 // Installed bool `json:"installed"` 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"` 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 AudioAudioArtist ¶
type AudioAudioArtist struct { Name string `json:"name"` ID string `json:"id"` Domain string `json:"domain"` }
AudioAudioArtist struct
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 ¶
AudioLyrics struct
type BaseCategoryObject ¶
type BaseCategoryObject struct { ID int `json:"id"` Title string `json:"title"` Icons []BaseImage `json:"icons"` }
BaseCategoryObject struct
type BaseCommentsInfo ¶
type BaseCommentsInfo struct { CanPost int `json:"can_post"` Count int `json:"count"` GroupsCanPost bool `json:"groups_can_post"` CanClose bool `json:"can_close"` CanOpen bool `json:"can_open"` }
BaseCommentsInfo struct
type BaseCountry ¶
BaseCountry struct
type BaseGeo ¶
type BaseGeo struct { Coordinates string `json:"coordinates"` Place BasePlace `json:"place"` Showmap int `json:"showmap"` Type string `json:"type"` }
BaseGeo struct
type BaseImage ¶
type BaseImage struct { Height float64 `json:"height"` URL string `json:"url"` Width float64 `json:"width"` Type string `json:"type"` }
BaseImage struct
type BaseLikesInfo ¶
type BaseLikesInfo struct { CanLike int `json:"can_like"` // BUG(VK): https://github.com/SevereCloud/vksdk/issues/55 // CanPublish int `json:"can_publish"` Count int `json:"count"` UserLikes int `json:"user_likes"` }
BaseLikesInfo struct
type BaseLink ¶
type BaseLink struct { Application BaseLinkApplication `json:"application"` Button BaseLinkButton `json:"button"` Caption string `json:"caption"` Description string `json:"description"` Photo PhotosPhoto `json:"photo"` PreviewPage string `json:"preview_page"` PreviewURL string `json:"preview_url"` Product BaseLinkProduct `json:"product"` Rating BaseLinkRating `json:"rating"` Title string `json:"title"` URL string `json:"url"` }
BaseLink struct
type BaseLinkApplication ¶
type BaseLinkApplication struct { AppID float64 `json:"app_id"` Store BaseLinkApplicationStore `json:"store"` }
BaseLinkApplication struct
type BaseLinkApplicationStore ¶
BaseLinkApplicationStore struct
type BaseLinkButton ¶
type BaseLinkButton struct { Action BaseLinkButtonAction `json:"action"` Title string `json:"title"` }
BaseLinkButton struct
type BaseLinkButtonAction ¶
BaseLinkButtonAction struct
type BaseLinkProduct ¶
type BaseLinkProduct struct { Price MarketPrice `json:"price"` Merchant string `json:"merchant"` OrdersCount int `json:"orders_count"` }
BaseLinkProduct struct
type BaseLinkRating ¶
BaseLinkRating struct
type BaseObject ¶
BaseObject struct
type BaseObjectCount ¶
type BaseObjectCount struct {
Count int `json:"count"`
}
BaseObjectCount struct
type BaseObjectWithName ¶
BaseObjectWithName struct
type BasePlace ¶
type BasePlace struct { Address string `json:"address"` Checkins int `json:"checkins"` City interface{} `json:"city"` // BUG(VK): https://github.com/VKCOM/vk-api-schema/issues/143 Country interface{} `json:"country"` Created int `json:"created"` ID int `json:"id"` Icon string `json:"icon"` Latitude float64 `json:"latitude"` Longitude float64 `json:"longitude"` Title string `json:"title"` Type string `json:"type"` IsDeleted bool `json:"is_deleted"` TotalCheckins int `json:"total_checkins"` Updated int `json:"updated"` CategoryObject BaseCategoryObject `json:"category_object"` }
BasePlace struct
type BaseRepostsInfo ¶
BaseRepostsInfo struct
type BaseRequestParam ¶
BaseRequestParam struct
type BaseSticker ¶
type BaseSticker struct { Images []BaseImage `json:"images"` ImagesWithBackground []BaseImage `json:"images_with_background"` ProductID int `json:"product_id"` StickerID int `json:"sticker_id"` }
BaseSticker 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 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"` CanEdit int `json:"can_edit"` // Information whether current user can edit the comment }
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 ChangesInt ¶
ChangesInt struct
type ClientInfo ¶
type ClientInfo struct { ButtonActions []string `json:"button_actions"` Keyboard bool `json:"keyboard"` InlineKeyboard bool `json:"inline_keyboard"` Carousel bool `json:"carousel"` LangID int `json:"lang_id"` }
ClientInfo 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 DocsDocPreviewAudioMessage }
DocsDoc struct
func (DocsDoc) ToAttachment ¶
ToAttachment return attachment format
type DocsDocPreview ¶
type DocsDocPreview struct { Photo DocsDocPreviewPhoto `json:"photo"` Graffiti DocsDocPreviewGraffiti `json:"graffiti"` Video DocsDocPreviewVideo `json:"video"` AudioMessage DocsDocPreviewAudioMessage `json:"audio_message"` }
DocsDocPreview struct
type DocsDocPreviewAudioMessage ¶
type DocsDocPreviewAudioMessage struct { Duration int `json:"duration"` Waveform []int `json:"waveform"` LinkOgg string `json:"link_ogg"` LinkMp3 string `json:"link_mp3"` }
DocsDocPreviewAudioMessage struct
type DocsDocPreviewGraffiti ¶
type DocsDocPreviewGraffiti struct { Src string `json:"src"` Width int `json:"width"` Height int `json:"height"` }
DocsDocPreviewGraffiti struct
type DocsDocPreviewPhoto ¶
type DocsDocPreviewPhoto struct {
Sizes []DocsDocPreviewPhotoSizes `json:"sizes"`
}
DocsDocPreviewPhoto struct
type DocsDocPreviewPhotoSizes ¶
type DocsDocPreviewPhotoSizes struct { // BUG(VK): json: cannot unmarshal number 162.000000 into Go struct field DocsDocPreviewPhotoSizes.doc.preview.photo.sizes.height of type Int Height float64 `json:"height"` // Height in px Src string `json:"src"` // URL of the image Type string `json:"type"` Width float64 `json:"width"` // Width in px }
DocsDocPreviewPhotoSizes struct
type DocsDocPreviewVideo ¶
type DocsDocPreviewVideo struct { FileSize int `json:"file_size"` // Video file size in bites Height int `json:"height"` // Video's height in pixels Src string `json:"src"` // Video URL Width int `json:"width"` // Video's width in pixels }
DocsDocPreviewVideo struct
type DocsDocTypes ¶
type DocsDocTypes struct { Count int `json:"count"` // Number of docs ID int `json:"id"` // Doc type ID Name string `json:"name"` // Doc type Title }
DocsDocTypes struct
type DocsDocUploadResponse ¶
type DocsDocUploadResponse struct {
File string `json:"file"` // Uploaded file data
}
DocsDocUploadResponse struct
type Error ¶
type Error struct { Code int `json:"error_code"` Message string `json:"error_msg"` Text string `json:"error_text"` CaptchaSID string `json:"captcha_sid"` CaptchaImg string `json:"captcha_img"` RequestParams []BaseRequestParam `json:"request_params"` }
Error struct
type EventsEventAttach ¶
type EventsEventAttach struct { Address string `json:"address,omitempty"` // address of event ButtonText string `json:"button_text"` // text of attach Friends []int `json:"friends"` // array of friends ids ID int `json:"id"` // event ID IsFavorite bool `json:"is_favorite"` // is favorite MemberStatus int `json:"member_status,omitempty"` // Current user's member status Text string `json:"text"` // text of attach Time int `json:"time,omitempty"` // event start time }
EventsEventAttach struct
type ExtendedResponse ¶
type ExtendedResponse struct { Profiles []UsersUser `json:"profiles"` Groups []GroupsGroup `json:"groups"` }
ExtendedResponse struct
type FaveFavesLink ¶
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 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 FriendsRequestsMutual ¶
type FriendsRequestsMutual struct { Count int `json:"count"` // Total mutual friends number Users []int `json:"users"` }
FriendsRequestsMutual struct
type FriendsRequestsXtrMessage ¶
type FriendsRequestsXtrMessage struct { From string `json:"from"` // ID of the user by whom friend has been suggested Message string `json:"message"` // Message sent with a request Mutual FriendsRequestsMutual `json:"mutual"` UserID int `json:"user_id"` // User ID }
FriendsRequestsXtrMessage struct
type FriendsUserXtrLists ¶
type FriendsUserXtrLists struct { UsersUser Lists []int `json:"lists"` // IDs of friend lists with user }
FriendsUserXtrLists struct
type FriendsUserXtrPhone ¶
FriendsUserXtrPhone 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"` EventID string `json:"event_id"` Secret string `json:"secret"` }
GroupEvent struct
type GroupJoinObject ¶
GroupJoinObject struct
type GroupLeaveObject ¶
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 GroupsAddressTimetable ¶
type GroupsAddressTimetable struct { Fri GroupsAddressTimetableDay `json:"fri"` // Timetable for friday Mon GroupsAddressTimetableDay `json:"mon"` // Timetable for monday Sat GroupsAddressTimetableDay `json:"sat"` // Timetable for saturday Sun GroupsAddressTimetableDay `json:"sun"` // Timetable for sunday Thu GroupsAddressTimetableDay `json:"thu"` // Timetable for thursday Tue GroupsAddressTimetableDay `json:"tue"` // Timetable for tuesday Wed GroupsAddressTimetableDay `json:"wed"` // Timetable for wednesday }
GroupsAddressTimetable Timetable for a week
type GroupsAddressTimetableDay ¶
type GroupsAddressTimetableDay struct { BreakCloseTime int `json:"break_close_time"` // Close time of the break in minutes BreakOpenTime int `json:"break_open_time"` // Start time of the break in minutes CloseTime int `json:"close_time"` // Close time in minutes OpenTime int `json:"open_time"` // Open time in minutes }
GroupsAddressTimetableDay Timetable for one day
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 GroupsBanInfo ¶
type GroupsBanInfo struct { AdminID int `json:"admin_id"` // Administrator ID Comment string `json:"comment"` // Comment for a ban Date int `json:"date"` // Date when user has been added to blacklist in Unixtime EndDate int `json:"end_date"` // Date when user will be removed from blacklist in Unixtime Reason int `json:"reason"` CommentVisible bool `json:"comment_visible"` }
GroupsBanInfo 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 GroupsContactsItem ¶
type GroupsContactsItem struct { Desc string `json:"desc"` // Contact description Email string `json:"email"` // Contact email Phone string `json:"phone"` // Contact phone UserID int `json:"user_id"` // User ID }
GroupsContactsItem struct
type GroupsCountersGroup ¶
type GroupsCountersGroup struct { Addresses int `json:"addresses"` // Addresses number Albums int `json:"albums"` // Photo albums number Audios int `json:"audios"` // Audios number Docs int `json:"docs"` // Docs number Market int `json:"market"` // Market items number Photos int `json:"photos"` // Photos number Topics int `json:"topics"` // Topics number Videos int `json:"videos"` // Videos number }
GroupsCountersGroup struct
type GroupsCover ¶
type GroupsCover struct { Enabled int `json:"enabled"` // Information whether cover is enabled Images []BaseImage `json:"images"` }
GroupsCover 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 IsAdult int `json:"adult"` // Information whether community is adult 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 CanUploadDoc int `json:"can_upload_doc"` // Information whether current user can upload doc 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 HasMarketApp bool `json:"has_market_app"` // Information whether community has market app LiveCovers GroupsLiveCovers `json:"live_covers"` CropPhoto UsersCropPhoto `json:"crop_photo"` IsHiddenFromFeed int `json:"is_hidden_from_feed"` Wall int `json:"wall"` }
GroupsGroup struct
type GroupsGroupBanInfo ¶
type GroupsGroupBanInfo struct { Comment string `json:"comment"` // Ban comment EndDate int `json:"end_date"` // End date of ban in Unixtime }
GroupsGroupBanInfo struct
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 []GroupsGroupCategoryFull `json:"subcategories"` }
GroupsGroupCategoryFull struct
type GroupsGroupCategoryType ¶
GroupsGroupCategoryType struct
type GroupsGroupLink ¶
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 GroupsGroupPublicCategoryList ¶
type GroupsGroupPublicCategoryList struct { ID int `json:"id"` Name string `json:"name"` SubtypesList []GroupsGroupCategoryType `json:"subtypes_list"` }
GroupsGroupPublicCategoryList 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 GroupsLiveCovers ¶
type GroupsLiveCovers struct { IsEnabled bool `json:"is_enabled"` IsScalable bool `json:"is_scalable"` StoryIds []string `json:"story_ids"` }
GroupsLiveCovers 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 string `json:"price_max"` // Maximum price PriceMin string `json:"price_min"` // Minimum price }
GroupsMarketInfo struct
type GroupsMemberRole ¶
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 GroupsSubjectItem ¶
GroupsSubjectItem struct
type GroupsTokenPermissionSetting ¶
GroupsTokenPermissionSetting 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 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 LeadsLeadDays ¶
type LeadsLeadDays struct { Completed int `json:"completed"` // Completed offers number Impressions int `json:"impressions"` // Impressions number Spent int `json:"spent"` // Amount of spent votes Started int `json:"started"` // Started offers number }
LeadsLeadDays 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 MarketCurrency ¶
type MarketCurrency struct { ID int `json:"id"` // Currency ID Name string `json:"name"` // Currency sign }
MarketCurrency 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"` Reposts BaseRepostsInfo `json:"reposts"` ViewsCount int `json:"views_count"` URL string `json:"url"` // URL to item ButtonTitle string `json:"button_title"` ExternalID string `json:"external_id"` }
MarketMarketItem struct
func (MarketMarketItem) ToAttachment ¶
func (market MarketMarketItem) ToAttachment() string
ToAttachment return attachment format
type MarketPrice ¶
type MarketPrice struct { Amount string `json:"amount"` // Amount Currency MarketCurrency `json:"currency"` DiscountRate int `json:"discount_rate"` OldAmount string `json:"old_amount"` Text string `json:"text"` // Text }
MarketPrice struct
type MarketSection ¶
type MarketSection struct { ID int `json:"id"` // Section ID Name string `json:"name"` // Section name }
MarketSection struct
type MessageAllowObject ¶
MessageAllowObject struct
type MessageCall ¶
type MessageCall struct { InitiatorID int `json:"initiator_id"` ReceiverID int `json:"receiver_id"` State string `json:"state"` Time int `json:"time"` Duration int `json:"duration"` Video bool `json:"video"` }
MessageCall struct
type MessageDenyObject ¶
type MessageDenyObject struct {
UserID int `json:"user_id"`
}
MessageDenyObject struct
type MessageNewObject ¶
type MessageNewObject struct { Message MessagesMessage `json:"message"` ClientInfo ClientInfo `json:"client_info"` }
MessageNewObject struct
func (*MessageNewObject) UnmarshalJSON ¶
func (a *MessageNewObject) UnmarshalJSON(b []byte) (err error)
UnmarshalJSON func
type MessageReadObject ¶
type MessageReadObject struct { FromID int `json:"from_id"` PeerID int `json:"peer_id"` ReadMessageID int `json:"read_message_id"` }
MessageReadObject 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"` LocalID int `json:"local_id"` }
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 MessagesChatPushSettings ¶
type MessagesChatPushSettings struct { DisabledUntil int `json:"disabled_until"` // Time until that notifications are disabled Sound int `json:"sound"` // Information whether the sound is on }
MessagesChatPushSettings struct
type MessagesChatSettingsPhoto ¶
type MessagesChatSettingsPhoto struct { Photo100 string `json:"photo_100"` Photo200 string `json:"photo_200"` Photo50 string `json:"photo_50"` }
MessagesChatSettingsPhoto 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 MessagesConversationCanWrite ¶
type MessagesConversationCanWrite struct { Allowed bool `json:"allowed"` Reason int `json:"reason"` }
MessagesConversationCanWrite struct
type MessagesConversationChatSettings ¶
type MessagesConversationChatSettings struct { MembersCount int `json:"members_count"` Photo MessagesChatSettingsPhoto `json:"photo"` PinnedMessage MessagesPinnedMessage `json:"pinned_message"` State string `json:"state"` Title string `json:"title"` ActiveIDS []int `json:"active_ids"` ACL struct { CanInvite bool `json:"can_invite"` CanChangeInfo bool `json:"can_change_info"` CanChangePin bool `json:"can_change_pin"` CanPromoteUsers bool `json:"can_promote_users"` CanSeeInviteLink bool `json:"can_see_invite_link"` CanChangeInviteLink bool `json:"can_change_invite_link"` CanCopyChat bool `json:"can_copy_chat"` CanModerate bool `json:"can_moderate"` } `json:"acl"` IsGroupChannel bool `json:"is_group_channel"` OwnerID int `json:"owner_id"` }
MessagesConversationChatSettings struct
type MessagesConversationPeer ¶
type MessagesConversationPeer struct { ID int `json:"id"` LocalID int `json:"local_id"` Type string `json:"type"` }
MessagesConversationPeer struct
type MessagesConversationPushSettings ¶
type MessagesConversationPushSettings struct { DisabledUntil int `json:"disabled_until"` DisabledForever bool `json:"disabled_forever"` NoSound bool `json:"no_sound"` }
MessagesConversationPushSettings 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 MessagesHistoryMessageAttachment ¶
type MessagesHistoryMessageAttachment struct { Audio AudioAudioFull `json:"audio"` Doc DocsDoc `json:"doc"` Link BaseLink `json:"link"` Market BaseLink `json:"market"` Photo PhotosPhoto `json:"photo"` Type string `json:"type"` Video VideoVideo `json:"video"` Wall BaseLink `json:"wall"` }
MessagesHistoryMessageAttachment 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,omitempty"` // Should this keyboard disappear on first use Inline bool `json:"inline,omitempty"` }
MessagesKeyboard struct
func NewMessagesKeyboard ¶
func NewMessagesKeyboard(oneTime bool) MessagesKeyboard
NewMessagesKeyboard return MessagesKeyboard
func NewMessagesKeyboardInline ¶
func NewMessagesKeyboardInline() MessagesKeyboard
NewMessagesKeyboardInline return inline MessagesKeyboard
func (*MessagesKeyboard) AddLocationButton ¶
func (keyboard *MessagesKeyboard) AddLocationButton(payload string)
AddLocationButton add Location button in last row
func (*MessagesKeyboard) AddOpenLinkButton ¶
func (keyboard *MessagesKeyboard) AddOpenLinkButton(link, label, payload string)
AddOpenLinkButton add Open Link 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
func (MessagesKeyboard) ToJSON ¶
func (keyboard MessagesKeyboard) ToJSON() string
ToJSON returns the JSON encoding of MessagesKeyboard
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 Link string `json:"link"` // Link URL }
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"` IsCropped bool `json:"is_cropped"` Keyboard MessagesKeyboard `json:"keyboard"` Template MessagesTemplate `json:"template"` 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 MessagesMessageAction ¶
type MessagesMessageAction struct { ConversationMessageID int `json:"conversation_message_id"` // Message ID Email string `json:"email"` // Email address for chat_invite_user or chat_kick_user actions MemberID int `json:"member_id"` // User or email peer ID Message string `json:"message"` // Message body of related message Photo MessagesMessageActionPhoto `json:"photo"` Text string `json:"text"` // New chat title for chat_create and chat_title_update actions Type string `json:"type"` }
MessagesMessageAction struct
type MessagesMessageActionPhoto ¶
type MessagesMessageActionPhoto struct { Photo100 string `json:"photo_100"` // URL of the preview image with 100px in width Photo200 string `json:"photo_200"` // URL of the preview image with 200px in width Photo50 string `json:"photo_50"` // URL of the preview image with 50px in width }
MessagesMessageActionPhoto struct
type MessagesMessageAttachment ¶
type MessagesMessageAttachment struct { Audio AudioAudioFull `json:"audio"` Doc DocsDoc `json:"doc"` Gift GiftsLayout `json:"gift"` Link BaseLink `json:"link"` Market MarketMarketItem `json:"market"` MarketMarketAlbum MarketMarketAlbum `json:"market_market_album"` Photo PhotosPhoto `json:"photo"` Sticker BaseSticker `json:"sticker"` Type string `json:"type"` Video VideoVideo `json:"video"` Wall WallWallpostAttached `json:"wall"` WallReply WallWallComment `json:"wall_reply"` AudioMessage DocsDoc `json:"audio_message"` Graffiti DocsDoc `json:"graffiti"` Poll PollsPoll `json:"poll"` Call MessageCall `json:"call"` }
MessagesMessageAttachment struct
type MessagesPinnedMessage ¶
type MessagesPinnedMessage struct { 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 FromID int `json:"from_id"` // Message author's ID FwdMessages []*MessagesMessage `json:"fwd_Messages"` Geo BaseGeo `json:"geo"` ID int `json:"id"` // Message ID PeerID int `json:"peer_id"` // Peer ID ReplyMessage *MessagesMessage `json:"reply_message"` Text string `json:"text"` // Message text }
MessagesPinnedMessage struct
type MessagesTemplate ¶
type MessagesTemplate struct { Type string `json:"type"` Elements []MessagesTemplateElement `json:"elements"` }
MessagesTemplate struct https://vk.com/dev/bot_docs_templates
func (MessagesTemplate) ToJSON ¶
func (template MessagesTemplate) ToJSON() string
ToJSON returns the JSON encoding of MessagesKeyboard
type MessagesTemplateElement ¶
type MessagesTemplateElement struct {
MessagesTemplateElementCarousel
}
MessagesTemplateElement struct
type MessagesTemplateElementCarousel ¶
type MessagesTemplateElementCarousel struct { Title string `json:"title"` Action MessagesTemplateElementCarouselAction `json:"action"` Description string `json:"description"` Photo PhotosPhoto `json:"photo"` Buttons []MessagesKeyboardButton `json:"buttons"` }
MessagesTemplateElementCarousel struct
type MessagesTemplateElementCarouselAction ¶
type MessagesTemplateElementCarouselAction struct { Type string `json:"type"` Link string `json:"link"` }
MessagesTemplateElementCarouselAction struct
type MessagesUserXtrInvitedBy ¶
type MessagesUserXtrInvitedBy struct { }
MessagesUserXtrInvitedBy struct
type NewsfeedEventActivity ¶
type NewsfeedEventActivity struct { Address string `json:"address"` // address of event ButtonText string `json:"button_text"` // text of attach Friends []int `json:"friends"` // array of friends ids MemberStatus int `json:"member_status"` // Current user's member status Text string `json:"text"` // text of attach Time int `json:"time"` // event start time }
NewsfeedEventActivity struct
type NewsfeedItemAudio ¶
type NewsfeedItemAudio struct {
Audio NewsfeedItemAudioAudio `json:"audio"`
}
NewsfeedItemAudio struct
type NewsfeedItemAudioAudio ¶
type NewsfeedItemAudioAudio struct { Count int `json:"count"` // Audios number Items []AudioAudioFull `json:"items"` }
NewsfeedItemAudioAudio 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 NewsfeedItemFriendFriends ¶
type NewsfeedItemFriendFriends struct { Count int `json:"count"` // Number of friends has been added Items []BaseUserID `json:"items"` }
NewsfeedItemFriendFriends struct
type NewsfeedItemNote ¶
type NewsfeedItemNote struct {
Notes NewsfeedItemNoteNotes `json:"notes"`
}
NewsfeedItemNote struct
type NewsfeedItemNoteNotes ¶
type NewsfeedItemNoteNotes struct { Count int `json:"count"` // Notes number Items []NewsfeedNewsfeedNote `json:"items"` }
NewsfeedItemNoteNotes struct
type NewsfeedItemPhoto ¶
type NewsfeedItemPhoto struct {
Photos NewsfeedItemPhotoPhotos `json:"photos"`
}
NewsfeedItemPhoto struct
type NewsfeedItemPhotoPhotos ¶
type NewsfeedItemPhotoPhotos struct { Count int `json:"count"` // Photos number Items []PhotosPhotoFull `json:"items"` }
NewsfeedItemPhotoPhotos struct
type NewsfeedItemPhotoTag ¶
type NewsfeedItemPhotoTag struct {
PhotoTags NewsfeedItemPhotoTagPhotoTags `json:"photo_tags"`
}
NewsfeedItemPhotoTag struct
type NewsfeedItemPhotoTagPhotoTags ¶
type NewsfeedItemPhotoTagPhotoTags struct { Count int `json:"count"` // Tags number Items []PhotosPhotoFull `json:"items"` }
NewsfeedItemPhotoTagPhotoTags struct
type NewsfeedItemStoriesBlock ¶
type NewsfeedItemStoriesBlock struct { BlockType string `json:"block_type"` Stories []StoriesStory `json:"stories"` }
NewsfeedItemStoriesBlock struct
type NewsfeedItemVideo ¶
type NewsfeedItemVideo struct {
Video NewsfeedItemVideoVideo `json:"video"`
}
NewsfeedItemVideo struct
type NewsfeedItemVideoVideo ¶
type NewsfeedItemVideoVideo struct { Count int `json:"count"` // Tags number Items []VideoVideo `json:"items"` }
NewsfeedItemVideoVideo 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 interface{} `json:"views,omitempty"` // BUG: Views int or wallViews 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 NewsfeedNewsfeedNote ¶
type NewsfeedNewsfeedNote struct { Comments int `json:"comments"` // Comments Number ID int `json:"id"` // Note ID OwnerID int `json:"owner_id"` // integer Title string `json:"title"` // Note title }
NewsfeedNewsfeedNote 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 ¶
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 NotificationsReply ¶
type NotificationsReply struct { Date string `json:"date"` // Date when the reply has been created in Unixtime ID int `json:"id"` // Reply ID Text string `json:"text"` // Reply text }
NotificationsReply 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 OrdersAmountItem ¶
type OrdersAmountItem struct { Amount int `json:"amount"` // Votes amount in user's currency Description string `json:"description"` // Amount description Votes string `json:"votes"` // Votes number }
OrdersAmountItem 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 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 ¶
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 PhotosPhotoAlbum ¶
type PhotosPhotoAlbum struct { Created int `json:"created"` // Date when the album has been created in Unixtime Description string `json:"description"` // Photo album description ID string `json:"id"` // BUG(VK): Photo album ID OwnerID int `json:"owner_id"` // Album owner's ID Size int `json:"size"` // Photos number Thumb PhotosPhoto `json:"thumb"` Title string `json:"title"` // Photo album title Updated int `json:"updated"` // Date when the album has been updated last time in Unixtime }
PhotosPhotoAlbum struct
func (PhotosPhotoAlbum) ToAttachment ¶
func (album PhotosPhotoAlbum) 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 PhotosPhotoSizes ¶
type PhotosPhotoSizes struct { // BUG(VK): json: cannot unmarshal number 180.000000 into Go struct field PhotosPhotoSizes.height of type int BaseImage Type string `json:"type"` }
PhotosPhotoSizes struct
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 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 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 PollsAnswer ¶
type PollsAnswer struct { ID int `json:"id"` Rate float64 `json:"rate"` Text string `json:"text"` Votes int `json:"votes"` }
PollsAnswer struct
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 PollsPhotoUploadResponse ¶
type PollsPhotoUploadResponse struct { Photo string `json:"photo"` // Uploaded photo data Hash string `json:"hash"` // Uploaded hash }
PollsPhotoUploadResponse 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"` 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 ¶
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 PollsVotersUsers ¶
type PollsVotersUsers struct { Count int `json:"count"` // Votes number Items []int `json:"items"` }
PollsVotersUsers struct
type PollsVotersUsersFields ¶
type PollsVotersUsersFields struct { Count int `json:"count"` // Votes number Items []UsersUser `json:"items"` }
PollsVotersUsersFields 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 ¶
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 StatsActivity ¶
type StatsActivity struct { Comments int `json:"comments"` // Comments number Copies int `json:"copies"` // Reposts number Hidden int `json:"hidden"` // Hidden from news count Likes int `json:"likes"` // Likes number Subscribed int `json:"subscribed"` // New subscribers count Unsubscribed int `json:"unsubscribed"` // Unsubscribed count }
StatsActivity struct
type StatsCity ¶
type StatsCity struct { Count int `json:"count"` // Visitors number Name string `json:"name"` // City name Value int `json:"value"` // City ID }
StatsCity struct
type StatsCountry ¶
type StatsCountry struct { Code string `json:"code"` // Country code Count int `json:"count"` // Visitors number Name string `json:"name"` // Country name Value int `json:"value"` // Country ID }
StatsCountry 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 StatsReach ¶
type StatsReach struct { Age []StatsSexAge `json:"age"` Cities []StatsCity `json:"cities"` Countries []StatsCountry `json:"countries"` MobileReach int `json:"mobile_reach"` // Reach count from mobile devices Reach int `json:"reach"` // Reach count ReachSubscribers int `json:"reach_subscribers"` // Subscribers reach count Sex []StatsSexAge `json:"sex"` SexAge []StatsSexAge `json:"sex_age"` }
StatsReach struct
type StatsSexAge ¶
type StatsSexAge struct { Count int `json:"count"` // Visitors number Value string `json:"value"` // Sex/age value }
StatsSexAge struct
type StatsViews ¶
type StatsViews struct { Age []StatsSexAge `json:"age"` Cities []StatsCity `json:"cities"` Countries []StatsCountry `json:"countries"` MobileViews int `json:"mobile_views"` // Number of views from mobile devices Sex []StatsSexAge `json:"sex"` SexAge []StatsSexAge `json:"sex_age"` Views int `json:"views"` // Views number Visitors int `json:"visitors"` // Visitors number }
StatsViews 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 StoriesClickablePoint ¶
StoriesClickablePoint struct
type StoriesClickableSticker ¶
type StoriesClickableSticker struct { ID int `json:"id"` Type string `json:"type"` ClickableArea []StoriesClickablePoint `json:"clickable_area"` Style string `json:"style"` // type=post PostOwnerID int `json:"post_owner_id"` PostID int `json:"post_id"` // type=sticker StickerID int `json:"sticker_id"` StickerPackID int `json:"sticker_pack_id"` // type=place PlaceID int `json:"place_id"` // type=question Question string `json:"question"` QuestionButton string `json:"question_button"` QuestionDefaultPrivate bool `json:"question_default_private"` Color string `json:"color"` // type=mention Mention string `json:"mention,omitempty"` // type=hashtag Hashtag string `json:"hashtag,omitempty"` // type=market_item MarketItem MarketMarketItem `json:"market_item"` Product BaseLinkProduct `json:"product"` Button MessagesKeyboardButton `json:"button"` Rating BaseLinkRating `json:"rating"` Subtype string `json:"subtype"` // type=link LinkObject BaseLink `json:"link_object"` TooltipText string `json:"tooltip_text"` // type=story_reply OwnerID int `json:"owner_id"` StoryID int `json:"story_id"` }
StoriesClickableSticker struct
type StoriesClickableStickers ¶
type StoriesClickableStickers struct { OriginalHeight int `json:"original_height"` OriginalWidth int `json:"original_width"` ClickableStickers []StoriesClickableSticker `json:"clickable_stickers"` }
StoriesClickableStickers struct
type StoriesReplies ¶
type StoriesReplies struct { Count int `json:"count"` // Replies number. New int `json:"new"` // New replies number. }
StoriesReplies 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). 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. ClickableStickers StoriesClickableStickers `json:"clickable_stickers"` }
StoriesStory struct
type StoriesStoryLink ¶
type StoriesStoryLink struct { Text string `json:"text"` // Link text URL string `json:"url"` // Link URL }
StoriesStoryLink struct
type StoriesStoryStats ¶
type StoriesStoryStats struct { Answer StoriesStoryStatsStat `json:"answer"` Bans StoriesStoryStatsStat `json:"bans"` OpenLink StoriesStoryStatsStat `json:"open_link"` Replies StoriesStoryStatsStat `json:"replies"` Subscribers StoriesStoryStatsStat `json:"subscribers"` Views StoriesStoryStatsStat `json:"views"` }
StoriesStoryStats struct
type StoriesStoryStatsStat ¶
type StoriesStoryStatsStat struct { Count int `json:"count"` // Stat value State string `json:"state"` }
StoriesStoryStatsStat struct
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 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 }
UsersCareer struct
type UsersCropPhoto ¶
type UsersCropPhoto struct { Crop UsersCropPhotoCrop `json:"crop"` Photo PhotosPhoto `json:"photo"` Rect UsersCropPhotoRect `json:"rect"` }
UsersCropPhoto struct
type UsersCropPhotoCrop ¶
type UsersCropPhotoCrop struct { 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 }
UsersCropPhotoCrop struct
type UsersCropPhotoRect ¶
type UsersCropPhotoRect struct { 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 }
UsersCropPhotoRect struct
type UsersExports ¶
type UsersExports struct { Facebook int `json:"facebook"` Livejournal int `json:"livejournal"` Twitter int `json:"twitter"` }
UsersExports struct
type UsersLastSeen ¶
type UsersLastSeen struct { Platform int `json:"platform"` // Type of the platform that used for the last authorization Time int `json:"time"` // Last visit date (in Unix time) }
UsersLastSeen struct
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 }
UsersMilitary struct
type UsersOccupation ¶
type UsersOccupation struct { // BUG(VK): https://vk.com/bug136108 ID float64 `json:"id"` // ID of school, university, company group Name string `json:"name"` // Name of occupation Type string `json:"type"` // Type of occupation }
UsersOccupation struct
type UsersOnlineInfo ¶
type UsersOnlineInfo struct { AppID int `json:"app_id"` Visible bool `json:"visible"` IsOnline bool `json:"is_online"` IsMobile bool `json:"is_mobile"` }
UsersOnlineInfo struct
type UsersPersonal ¶
type UsersPersonal struct { Alcohol int `json:"alcohol"` // User's views on alcohol InspiredBy string `json:"inspired_by"` // User's inspired by Langs []string `json:"langs"` LifeMain int `json:"life_main"` // User's personal priority in life PeopleMain int `json:"people_main"` // User's personal priority in people Political int `json:"political"` // User's political views Religion string `json:"religion"` // User's religion Smoking int `json:"smoking"` // User's views on smoking ReligionID int `json:"religion_id"` }
UsersPersonal struct
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 }
UsersRelative struct
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 }
UsersSchool struct
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 }
UsersUniversity struct
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"` CanBeInvitedGroup bool `json:"can_be_invited_group"` 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"` 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"` MobilePhone string `json:"mobile_phone"` HomePhone string `json:"home_phone"` FoundWith int `json:"found_with"` // TODO: check it OnlineInfo UsersOnlineInfo `json:"online_info"` }
UsersUser struct
type UsersUserCounters ¶
type UsersUserCounters struct { Albums int `json:"albums"` // Albums number Audios int `json:"audios"` // Audios number Followers int `json:"followers"` // Followers number Friends int `json:"friends"` // Friends number Gifts int `json:"gifts"` // Gifts number Groups int `json:"groups"` // Communities number Notes int `json:"notes"` // Notes number OnlineFriends int `json:"online_friends"` // Online friends number Pages int `json:"pages"` // Public pages number Photos int `json:"photos"` // Photos number Subscriptions int `json:"subscriptions"` // Subscriptions number UserPhotos int `json:"user_photos"` // Number of photos with user UserVideos int `json:"user_videos"` // Number of videos with user Videos int `json:"videos"` // Videos number }
UsersUserCounters struct
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 ¶
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 ¶
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 UtilsStats ¶
type UtilsStats struct { Timestamp int `json:"timestamp"` // Start time Views int `json:"views"` // Total views number }
UtilsStats struct
type UtilsStatsCity ¶
type UtilsStatsCity struct { CityID int `json:"city_id"` // City ID Views int `json:"views"` // Views number }
UtilsStatsCity struct
type UtilsStatsCountry ¶
type UtilsStatsCountry struct { CountryID int `json:"country_id"` // Country ID Views int `json:"views"` // Views number }
UtilsStatsCountry struct
type UtilsStatsExtended ¶
type UtilsStatsExtended struct { Cities []UtilsStatsCity `json:"cities"` Countries []UtilsStatsCountry `json:"countries"` SexAge []UtilsStatsSexAge `json:"sex_age"` Timestamp int `json:"timestamp"` // Start time Views int `json:"views"` // Total views number }
UtilsStatsExtended struct
type UtilsStatsSexAge ¶
type UtilsStatsSexAge struct { AgeRange string `json:"age_range"` // Age denotation Female int `json:"female"` // Views by female users Male int `json:"male"` // Views by male users }
UtilsStatsSexAge 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 VideoCatElement ¶
type VideoCatElement struct { CanAdd int `json:"can_add"` CanEdit int `json:"can_edit"` Comments int `json:"comments"` Count int `json:"count"` Date int `json:"date"` Description string `json:"description"` Duration int `json:"duration"` ID int `json:"id"` IsPrivate int `json:"is_private"` OwnerID int `json:"owner_id"` Photo130 string `json:"photo_130"` Photo160 string `json:"photo_160"` Photo320 string `json:"photo_320"` Photo640 string `json:"photo_640"` Photo800 string `json:"photo_800"` Title string `json:"title"` Type string `json:"type"` UpdatedTime int `json:"updated_time"` Views int `json:"views"` }
VideoCatElement 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 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 ¶
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"` FirstFrame []VideoVideoImage `json:"first_frame"` Image []VideoVideoImage `json:"image"` 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 ImageBlur int `json:"image_blur"` }
VideoVideoAlbumFull struct
type VideoVideoFiles ¶
type VideoVideoFiles struct { External string `json:"external"` // URL of the external player Mp4_1080 string `json:"mp4_1080"` // URL of the mpeg4 file with 1080p quality Mp4_240 string `json:"mp4_240"` // URL of the mpeg4 file with 240p quality Mp4_360 string `json:"mp4_360"` // URL of the mpeg4 file with 360p quality Mp4_480 string `json:"mp4_480"` // URL of the mpeg4 file with 480p quality Mp4_720 string `json:"mp4_720"` // URL of the mpeg4 file with 720p quality }
VideoVideoFiles 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"` 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 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 []VideoVideoImage `json:"image"` IsFavorite bool `json:"is_favorite"` FirstFrame []VideoVideoImage `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 VideoVideoImage ¶
VideoVideoImage struct
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 int `json:"amount"` Description string `json:"description"` Date int `json:"date"` }
VkpayTransactionObject struct
type WallAppPost ¶
type WallAppPost struct { ID int `json:"id"` // Application ID Name string `json:"name"` // Application name Photo130 string `json:"photo_130"` // URL of the preview image with 130 px in width Photo604 string `json:"photo_604"` // URL of the preview image with 604 px in width }
WallAppPost struct
type WallAttachedNote ¶
type WallAttachedNote struct { 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 ReadComments int `json:"read_comments"` // Read comments number Title string `json:"title"` // Note title ViewURL string `json:"view_url"` // URL of the page with note preview }
WallAttachedNote struct
type WallCommentAttachment ¶
type WallCommentAttachment struct { Audio AudioAudioFull `json:"audio"` Doc DocsDoc `json:"doc"` Link BaseLink `json:"link"` Market MarketMarketItem `json:"market"` MarketMarketAlbum MarketMarketAlbum `json:"market_market_album"` Note WallAttachedNote `json:"note"` Page PagesWikipageFull `json:"page"` Photo PhotosPhoto `json:"photo"` Sticker BaseSticker `json:"sticker"` Type string `json:"type"` Video VideoVideo `json:"video"` }
WallCommentAttachment struct
type WallGraffiti ¶
type WallGraffiti struct { ID int `json:"id"` // Graffiti ID OwnerID int `json:"owner_id"` // Graffiti owner's ID Photo200 string `json:"photo_200"` // URL of the preview image with 200 px in width Photo586 string `json:"photo_586"` // URL of the preview image with 586 px in width }
WallGraffiti struct
type WallPostSource ¶
type WallPostSource struct { Data string `json:"data"` // Additional data Platform string `json:"platform"` // Platform name Type string `json:"type"` URL string `json:"url"` // URL to an external site used to publish the post }
WallPostSource struct
type WallPostedPhoto ¶
type WallPostedPhoto struct { ID int `json:"id"` // Photo ID OwnerID int `json:"owner_id"` // Photo owner's ID Photo130 string `json:"photo_130"` // URL of the preview image with 130 px in width Photo604 string `json:"photo_604"` // URL of the preview image with 604 px in width }
WallPostedPhoto 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 WallReplyRestoreFunc ¶
type WallReplyRestoreFunc func(WallReplyRestoreObject, int)
WallReplyRestoreFunc func
type WallReplyRestoreObject ¶
type WallReplyRestoreObject WallWallComment
WallReplyRestoreObject 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 WallWallCommentThread ¶
type WallWallCommentThread struct { Count int `json:"count"` // Comments number Items []WallWallComment `json:"items"` CanPost bool `json:"can_post"` // Information whether current user can comment the post GroupsCanPost bool `json:"groups_can_post"` // Information whether groups can comment the post ShowReplyButton bool `json:"show_reply_button"` }
WallWallCommentThread 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 WallWallpostAttached ¶
type WallWallpostAttached struct { Attachments []WallWallpostAttachment `json:"attachments"` CanDelete int `json:"can_delete"` Comments BaseCommentsInfo `json:"comments"` CopyOwnerID int `json:"copy_owner_id"` CopyPostID int `json:"copy_post_id"` CopyText string `json:"copy_text"` Date int `json:"date"` FromID int `json:"from_id"` Geo BaseGeo `json:"geo"` ID int `json:"id"` Likes BaseLikesInfo `json:"likes"` PostSource WallPostSource `json:"post_source"` PostType string `json:"post_type"` Reposts BaseRepostsInfo `json:"reposts"` SignerID int `json:"signer_id"` Text string `json:"text"` ToID int `json:"to_id"` }
WallWallpostAttached struct
type WallWallpostAttachment ¶
type WallWallpostAttachment struct { AccessKey string `json:"access_key"` // Access key for the audio Album PhotosPhotoAlbum `json:"album"` App WallAppPost `json:"app"` Audio AudioAudioFull `json:"audio"` Doc DocsDoc `json:"doc"` Event EventsEventAttach `json:"event"` Graffiti WallGraffiti `json:"graffiti"` Link BaseLink `json:"link"` Market MarketMarketItem `json:"market"` MarketMarketAlbum MarketMarketAlbum `json:"market_market_album"` Note WallAttachedNote `json:"note"` Page PagesWikipageFull `json:"page"` Photo PhotosPhoto `json:"photo"` PhotosList []string `json:"photos_list"` Poll PollsPoll `json:"poll"` PostedPhoto WallPostedPhoto `json:"posted_photo"` Type string `json:"type"` Video VideoVideo `json:"video"` }
WallWallpostAttachment 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 WidgetsCommentMedia ¶
type WidgetsCommentMedia struct { ItemID int `json:"item_id"` // Media item ID OwnerID int `json:"owner_id"` // Media owner's ID ThumbSrc string `json:"thumb_src"` // URL of the preview image (type=photo only) Type string `json:"type"` }
WidgetsCommentMedia struct
type WidgetsCommentReplies ¶
type WidgetsCommentReplies struct { CanPost int `json:"can_post"` // Information whether current user can comment the post Count int `json:"count"` // Comments number Replies []WidgetsCommentRepliesItem `json:"replies"` GroupsCanPost bool `json:"groups_can_post"` }
WidgetsCommentReplies struct
type WidgetsCommentRepliesItem ¶
type WidgetsCommentRepliesItem struct { Cid int `json:"cid"` // Comment ID Date int `json:"date"` // Date when the comment has been added in Unixtime Likes WidgetsWidgetLikes `json:"likes"` Text string `json:"text"` // Comment text UID int `json:"uid"` // User ID User UsersUser `json:"user"` }
WidgetsCommentRepliesItem 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 string `json:"post_type"` // Post type Reposts BaseRepostsInfo `json:"reposts"` Text string `json:"text"` // Comment text ToID int `json:"to_id"` // Wall owner PostSource WallPostSource `json:"post_source"` Views struct { Count int `json:"count"` } `json:"views"` IsFavorite bool `json:"is_favorite"` }
WidgetsWidgetComment struct
type WidgetsWidgetLikes ¶
type WidgetsWidgetLikes struct {
Count int `json:"count"` // Likes number
}
WidgetsWidgetLikes 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 ¶
https://github.com/SevereCloud/vksdk/issues/63 Installed bool `json:"installed"`
json: cannot unmarshal number 162.000000 into Go struct field DocsDocPreviewPhotoSizes.doc.preview.photo.sizes.height of type Int
при голосовании за несколько вариантов, возвращается только один
https://github.com/SevereCloud/vksdk/issues/55 CanPublish int `json:"can_publish"`
https://vk.com/dev/pages.getHistory edited and date
Photo album ID
json: cannot unmarshal number 180.000000 into Go struct field PhotosPhotoSizes.height of type int
Source Files ¶
- account.go
- ads.go
- apps.go
- appwidgets.go
- audio.go
- board.go
- database.go
- docs.go
- fave.go
- friends.go
- gifts.go
- groups.go
- handler.go
- leadforms.go
- leads.go
- market.go
- messages.go
- newsfeed.go
- notes.go
- notifications.go
- object.go
- orders.go
- pages.go
- photos.go
- podcasts.go
- polls.go
- prettycards.go
- search.go
- secure.go
- stats.go
- stories.go
- users.go
- utils.go
- video.go
- wall.go
- widgets.go