2022-04-11 15:30:21 -07:00
|
|
|
package api // import "github.com/SevereCloud/vksdk/v2/api"
|
2021-06-16 12:00:49 -07:00
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/SevereCloud/vksdk/v2/object"
|
|
|
|
)
|
|
|
|
|
|
|
|
// StoreAddStickersToFavorite add stickers to favorite.
|
|
|
|
//
|
2024-08-27 10:04:05 -07:00
|
|
|
// https://dev.vk.com/method/store.addStickersToFavorite
|
2021-06-16 12:00:49 -07:00
|
|
|
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.
|
|
|
|
//
|
2024-08-27 10:04:05 -07:00
|
|
|
// https://dev.vk.com/method/store.getFavoriteStickers
|
2021-06-16 12:00:49 -07:00
|
|
|
func (vk *VK) StoreGetFavoriteStickers(params Params) (response StoreGetFavoriteStickersResponse, err error) {
|
|
|
|
err = vk.RequestUnmarshal("store.getFavoriteStickers", &response, params)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// StoreRemoveStickersFromFavorite remove stickers from favorite.
|
|
|
|
//
|
2024-08-27 10:04:05 -07:00
|
|
|
// https://dev.vk.com/method/store.removeStickersFromFavorite
|
2021-06-16 12:00:49 -07:00
|
|
|
func (vk *VK) StoreRemoveStickersFromFavorite(params Params) (response int, err error) {
|
|
|
|
err = vk.RequestUnmarshal("store.removeStickersFromFavorite", &response, params)
|
|
|
|
return
|
|
|
|
}
|