diff options
Diffstat (limited to 'vendor/github.com/SevereCloud/vksdk/v2/api/apps.go')
-rw-r--r-- | vendor/github.com/SevereCloud/vksdk/v2/api/apps.go | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/vendor/github.com/SevereCloud/vksdk/v2/api/apps.go b/vendor/github.com/SevereCloud/vksdk/v2/api/apps.go index 892ee607..c0ecb38c 100644 --- a/vendor/github.com/SevereCloud/vksdk/v2/api/apps.go +++ b/vendor/github.com/SevereCloud/vksdk/v2/api/apps.go @@ -4,6 +4,14 @@ import ( "github.com/SevereCloud/vksdk/v2/object" ) +// AppsAddUsersToTestingGroup method. +// +// https://vk.com/dev/apps.addUsersToTestingGroup +func (vk *VK) AppsAddUsersToTestingGroup(params Params) (response int, err error) { + err = vk.RequestUnmarshal("apps.addUsersToTestingGroup", &response, params) + return +} + // AppsDeleteAppRequests deletes all request notifications from the current app. // // https://vk.com/dev/apps.deleteAppRequests @@ -140,6 +148,33 @@ func (vk *VK) AppsGetScore(params Params) (response string, err error) { return } +// AppsGetTestingGroupsResponse struct. +type AppsGetTestingGroupsResponse []object.AppsTestingGroup + +// AppsGetTestingGroups method. +// +// https://vk.com/dev/apps.getTestingGroups +func (vk *VK) AppsGetTestingGroups(params Params) (response AppsGetTestingGroupsResponse, err error) { + err = vk.RequestUnmarshal("apps.getTestingGroups", &response, params) + return +} + +// AppsRemoveTestingGroup method. +// +// https://vk.com/dev/apps.removeTestingGroup +func (vk *VK) AppsRemoveTestingGroup(params Params) (response int, err error) { + err = vk.RequestUnmarshal("apps.removeTestingGroup", &response, params) + return +} + +// AppsRemoveUsersFromTestingGroups method. +// +// https://vk.com/dev/apps.removeUsersFromTestingGroups +func (vk *VK) AppsRemoveUsersFromTestingGroups(params Params) (response int, err error) { + err = vk.RequestUnmarshal("apps.removeUsersFromTestingGroups", &response, params) + return +} + // AppsSendRequest sends a request to another user in an app that uses VK authorization. // // https://vk.com/dev/apps.sendRequest @@ -147,3 +182,16 @@ func (vk *VK) AppsSendRequest(params Params) (response int, err error) { err = vk.RequestUnmarshal("apps.sendRequest", &response, params) return } + +// AppsUpdateMetaForTestingGroupResponse struct. +type AppsUpdateMetaForTestingGroupResponse struct { + GroupID int `json:"group_id"` +} + +// AppsUpdateMetaForTestingGroup method. +// +// https://vk.com/dev/apps.updateMetaForTestingGroup +func (vk *VK) AppsUpdateMetaForTestingGroup(params Params) (response AppsUpdateMetaForTestingGroupResponse, err error) { + err = vk.RequestUnmarshal("apps.updateMetaForTestingGroup", &response, params) + return +} |