diff options
author | Wim <wim@42.be> | 2021-06-16 21:00:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-16 21:00:49 +0200 |
commit | fb5a84212c491332504fcdd4b5f4a4b97705d2e3 (patch) | |
tree | be03e973d30d040a49a90c47f1e6b73ed8922539 /vendor/github.com/SevereCloud/vksdk/v2/api/store.go | |
parent | dedc1c45a113d8db373d9e4638f54a0f9d29624f (diff) | |
download | matterbridge-msglm-fb5a84212c491332504fcdd4b5f4a4b97705d2e3.tar.gz matterbridge-msglm-fb5a84212c491332504fcdd4b5f4a4b97705d2e3.tar.bz2 matterbridge-msglm-fb5a84212c491332504fcdd4b5f4a4b97705d2e3.zip |
Update dependencies (#1521)
Diffstat (limited to 'vendor/github.com/SevereCloud/vksdk/v2/api/store.go')
-rw-r--r-- | vendor/github.com/SevereCloud/vksdk/v2/api/store.go | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/vendor/github.com/SevereCloud/vksdk/v2/api/store.go b/vendor/github.com/SevereCloud/vksdk/v2/api/store.go new file mode 100644 index 00000000..a2df4ca0 --- /dev/null +++ b/vendor/github.com/SevereCloud/vksdk/v2/api/store.go @@ -0,0 +1,35 @@ +package api // import "github.com/SevereCloud/vksdk/api" + +import ( + "github.com/SevereCloud/vksdk/v2/object" +) + +// StoreAddStickersToFavorite add stickers to favorite. +// +// https://vk.com/dev/store.addStickersToFavorite +func (vk *VK) StoreAddStickersToFavorite(params Params) (response int, err error) { + err = vk.RequestUnmarshal("store.addStickersToFavorite", &response, params) + return +} + +// StoreGetFavoriteStickersResponse struct. +type StoreGetFavoriteStickersResponse struct { + Count int `json:"count"` + Items []object.BaseSticker `json:"items"` +} + +// StoreGetFavoriteStickers return favorite stickers. +// +// https://vk.com/dev/store.getFavoriteStickers +func (vk *VK) StoreGetFavoriteStickers(params Params) (response StoreGetFavoriteStickersResponse, err error) { + err = vk.RequestUnmarshal("store.getFavoriteStickers", &response, params) + return +} + +// StoreRemoveStickersFromFavorite remove stickers from favorite. +// +// https://vk.com/dev/store.removeStickersFromFavorite +func (vk *VK) StoreRemoveStickersFromFavorite(params Params) (response int, err error) { + err = vk.RequestUnmarshal("store.removeStickersFromFavorite", &response, params) + return +} |