1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
|
package api // import "github.com/SevereCloud/vksdk/v2/api"
import (
"github.com/SevereCloud/vksdk/v2/object"
)
// SecureAddAppEventResponse struct.
type SecureAddAppEventResponse int // FIXME: not found documentation. https://github.com/VKCOM/vk-api-schema/issues/98
// SecureAddAppEvent adds user activity information to an application.
//
// https://vk.com/dev/secure.addAppEvent
func (vk *VK) SecureAddAppEvent(params Params) (response SecureAddAppEventResponse, err error) {
err = vk.RequestUnmarshal("secure.addAppEvent", &response, params)
return
}
// SecureCheckTokenResponse struct.
type SecureCheckTokenResponse object.SecureTokenChecked
// SecureCheckToken checks the user authentication in IFrame and Flash apps using the access_token parameter.
//
// https://vk.com/dev/secure.checkToken
func (vk *VK) SecureCheckToken(params Params) (response SecureCheckTokenResponse, err error) {
err = vk.RequestUnmarshal("secure.checkToken", &response, params)
return
}
// SecureGetAppBalance returns payment balance of the application in hundredth of a vote.
//
// https://vk.com/dev/secure.getAppBalance
func (vk *VK) SecureGetAppBalance(params Params) (response int, err error) {
err = vk.RequestUnmarshal("secure.getAppBalance", &response, params)
return
}
// SecureGetSMSHistoryResponse struct.
type SecureGetSMSHistoryResponse []object.SecureSmsNotification
// SecureGetSMSHistory shows a list of SMS notifications sent by the
// application using secure.sendSMSNotification method.
//
// https://vk.com/dev/secure.getSMSHistory
func (vk *VK) SecureGetSMSHistory(params Params) (response SecureGetSMSHistoryResponse, err error) {
err = vk.RequestUnmarshal("secure.getSMSHistory", &response, params)
return
}
// SecureGetTransactionsHistoryResponse struct.
type SecureGetTransactionsHistoryResponse []object.SecureTransaction
// SecureGetTransactionsHistory shows history of votes transaction between users and the application.
//
// https://vk.com/dev/secure.getTransactionsHistory
func (vk *VK) SecureGetTransactionsHistory(params Params) (response SecureGetTransactionsHistoryResponse, err error) {
err = vk.RequestUnmarshal("secure.getTransactionsHistory", &response, params)
return
}
// SecureGetUserLevelResponse struct.
type SecureGetUserLevelResponse []object.SecureLevel
// SecureGetUserLevel returns one of the previously set game levels of one or more users in the application.
//
// https://vk.com/dev/secure.getUserLevel
func (vk *VK) SecureGetUserLevel(params Params) (response SecureGetUserLevelResponse, err error) {
err = vk.RequestUnmarshal("secure.getUserLevel", &response, params)
return
}
// SecureGiveEventStickerResponse struct.
type SecureGiveEventStickerResponse []struct {
UserID int `json:"user_id"`
Status string `json:"status"`
}
// SecureGiveEventSticker method.
//
// https://vk.com/dev/secure.giveEventSticker
func (vk *VK) SecureGiveEventSticker(params Params) (response SecureGiveEventStickerResponse, err error) {
err = vk.RequestUnmarshal("secure.giveEventSticker", &response, params)
return
}
// SecureSendNotificationResponse struct.
type SecureSendNotificationResponse []int // User ID
// SecureSendNotification sends notification to the user.
//
// https://vk.com/dev/secure.sendNotification
func (vk *VK) SecureSendNotification(params Params) (response SecureSendNotificationResponse, err error) {
err = vk.RequestUnmarshal("secure.sendNotification", &response, params)
return
}
// SecureSendSMSNotification sends SMS notification to a user's mobile device.
//
// https://vk.com/dev/secure.sendSMSNotification
func (vk *VK) SecureSendSMSNotification(params Params) (response int, err error) {
err = vk.RequestUnmarshal("secure.sendSMSNotification", &response, params)
return
}
// SecureSetCounter sets a counter which is shown to the user in bold in the left menu.
//
// https://vk.com/dev/secure.setCounter
func (vk *VK) SecureSetCounter(params Params) (response int, err error) {
err = vk.RequestUnmarshal("secure.setCounter", &response, params)
return
}
|