diff options
author | Wim <wim@42.be> | 2022-04-12 00:30:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-12 00:30:21 +0200 |
commit | 281ef53e7de5d30114dbf57a4b506b2d8d2720cc (patch) | |
tree | 5fe13b85ffe312053452e0d7107ca4b174a412e0 /vendor/github.com/SevereCloud/vksdk/v2/api | |
parent | f044b948e257814e8e1f70d4b66821bfd9c2ff06 (diff) | |
download | matterbridge-msglm-281ef53e7de5d30114dbf57a4b506b2d8d2720cc.tar.gz matterbridge-msglm-281ef53e7de5d30114dbf57a4b506b2d8d2720cc.tar.bz2 matterbridge-msglm-281ef53e7de5d30114dbf57a4b506b2d8d2720cc.zip |
Update dependencies (#1800)
Diffstat (limited to 'vendor/github.com/SevereCloud/vksdk/v2/api')
-rw-r--r-- | vendor/github.com/SevereCloud/vksdk/v2/api/account.go | 2 | ||||
-rw-r--r-- | vendor/github.com/SevereCloud/vksdk/v2/api/store.go | 2 | ||||
-rw-r--r-- | vendor/github.com/SevereCloud/vksdk/v2/api/video.go | 35 |
3 files changed, 38 insertions, 1 deletions
diff --git a/vendor/github.com/SevereCloud/vksdk/v2/api/account.go b/vendor/github.com/SevereCloud/vksdk/v2/api/account.go index 7e38ce2b..5732ed61 100644 --- a/vendor/github.com/SevereCloud/vksdk/v2/api/account.go +++ b/vendor/github.com/SevereCloud/vksdk/v2/api/account.go @@ -141,6 +141,8 @@ func (vk *VK) AccountSetInfo(params Params) (response int, err error) { // AccountSetNameInMenu sets an application screen name // (up to 17 characters), that is shown to the user in the left menu. // +// Deprecated: This method is deprecated and may be disabled soon, please avoid +// // https://vk.com/dev/account.setNameInMenu func (vk *VK) AccountSetNameInMenu(params Params) (response int, err error) { err = vk.RequestUnmarshal("account.setNameInMenu", &response, params) diff --git a/vendor/github.com/SevereCloud/vksdk/v2/api/store.go b/vendor/github.com/SevereCloud/vksdk/v2/api/store.go index a2df4ca0..4a9f5935 100644 --- a/vendor/github.com/SevereCloud/vksdk/v2/api/store.go +++ b/vendor/github.com/SevereCloud/vksdk/v2/api/store.go @@ -1,4 +1,4 @@ -package api // import "github.com/SevereCloud/vksdk/api" +package api // import "github.com/SevereCloud/vksdk/v2/api" import ( "github.com/SevereCloud/vksdk/v2/object" diff --git a/vendor/github.com/SevereCloud/vksdk/v2/api/video.go b/vendor/github.com/SevereCloud/vksdk/v2/api/video.go index b6e85b9a..01b7f83e 100644 --- a/vendor/github.com/SevereCloud/vksdk/v2/api/video.go +++ b/vendor/github.com/SevereCloud/vksdk/v2/api/video.go @@ -235,6 +235,17 @@ func (vk *VK) VideoGetCommentsExtended(params Params) (response VideoGetComments return } +// VideoLiveGetCategoriesResponse struct. +type VideoLiveGetCategoriesResponse []object.VideoLiveCategory + +// VideoLiveGetCategories method. +// +// https://vk.com/dev/video.liveGetCategories +func (vk *VK) VideoLiveGetCategories(params Params) (response VideoLiveGetCategoriesResponse, err error) { + err = vk.RequestUnmarshal("video.liveGetCategories", &response, params) + return +} + // VideoRemoveFromAlbum allows you to remove the video from the album. // // https://vk.com/dev/video.removeFromAlbum @@ -336,3 +347,27 @@ func (vk *VK) VideoSearchExtended(params Params) (response VideoSearchExtendedRe return } + +// VideoStartStreamingResponse struct. +type VideoStartStreamingResponse object.VideoLive + +// VideoStartStreaming method. +// +// https://vk.com/dev/video.startStreaming +func (vk *VK) VideoStartStreaming(params Params) (response VideoStartStreamingResponse, err error) { + err = vk.RequestUnmarshal("video.startStreaming", &response, params) + return +} + +// VideoStopStreamingResponse struct. +type VideoStopStreamingResponse struct { + UniqueViewers int `json:"unique_viewers"` +} + +// VideoStopStreaming method. +// +// https://vk.com/dev/video.stopStreaming +func (vk *VK) VideoStopStreaming(params Params) (response VideoStopStreamingResponse, err error) { + err = vk.RequestUnmarshal("video.stopStreaming", &response, params) + return +} |