2021-01-28 15:25:14 -08:00
|
|
|
package api // import "github.com/SevereCloud/vksdk/v2/api"
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/SevereCloud/vksdk/v2/object"
|
|
|
|
)
|
|
|
|
|
|
|
|
// FaveAddArticle adds a link to user faves.
|
|
|
|
//
|
2024-08-27 10:04:05 -07:00
|
|
|
// https://dev.vk.com/method/fave.addArticle
|
2021-01-28 15:25:14 -08:00
|
|
|
func (vk *VK) FaveAddArticle(params Params) (response int, err error) {
|
|
|
|
err = vk.RequestUnmarshal("fave.addArticle", &response, params)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// FaveAddLink adds a link to user faves.
|
|
|
|
//
|
2024-08-27 10:04:05 -07:00
|
|
|
// https://dev.vk.com/method/fave.addLink
|
2021-01-28 15:25:14 -08:00
|
|
|
func (vk *VK) FaveAddLink(params Params) (response int, err error) {
|
|
|
|
err = vk.RequestUnmarshal("fave.addLink", &response, params)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// FaveAddPage method.
|
|
|
|
//
|
2024-08-27 10:04:05 -07:00
|
|
|
// https://dev.vk.com/method/fave.addPage
|
2021-01-28 15:25:14 -08:00
|
|
|
func (vk *VK) FaveAddPage(params Params) (response int, err error) {
|
|
|
|
err = vk.RequestUnmarshal("fave.addPage", &response, params)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// FaveAddPost method.
|
|
|
|
//
|
2024-08-27 10:04:05 -07:00
|
|
|
// https://dev.vk.com/method/fave.addPost
|
2021-01-28 15:25:14 -08:00
|
|
|
func (vk *VK) FaveAddPost(params Params) (response int, err error) {
|
|
|
|
err = vk.RequestUnmarshal("fave.addPost", &response, params)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// FaveAddProduct method.
|
|
|
|
//
|
2024-08-27 10:04:05 -07:00
|
|
|
// https://dev.vk.com/method/fave.addProduct
|
2021-01-28 15:25:14 -08:00
|
|
|
func (vk *VK) FaveAddProduct(params Params) (response int, err error) {
|
|
|
|
err = vk.RequestUnmarshal("fave.addProduct", &response, params)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// FaveAddTagResponse struct.
|
|
|
|
type FaveAddTagResponse object.FaveTag
|
|
|
|
|
|
|
|
// FaveAddTag method.
|
|
|
|
//
|
2024-08-27 10:04:05 -07:00
|
|
|
// https://dev.vk.com/method/fave.addTag
|
2021-01-28 15:25:14 -08:00
|
|
|
func (vk *VK) FaveAddTag(params Params) (response FaveAddTagResponse, err error) {
|
|
|
|
err = vk.RequestUnmarshal("fave.addTag", &response, params)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// FaveAddVideo method.
|
|
|
|
//
|
2024-08-27 10:04:05 -07:00
|
|
|
// https://dev.vk.com/method/fave.addVideo
|
2021-01-28 15:25:14 -08:00
|
|
|
func (vk *VK) FaveAddVideo(params Params) (response int, err error) {
|
|
|
|
err = vk.RequestUnmarshal("fave.addVideo", &response, params)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// FaveEditTag method.
|
|
|
|
//
|
2024-08-27 10:04:05 -07:00
|
|
|
// https://dev.vk.com/method/fave.editTag
|
2021-01-28 15:25:14 -08:00
|
|
|
func (vk *VK) FaveEditTag(params Params) (response int, err error) {
|
|
|
|
err = vk.RequestUnmarshal("fave.editTag", &response, params)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// FaveGetResponse struct.
|
|
|
|
type FaveGetResponse struct {
|
|
|
|
Count int `json:"count"`
|
|
|
|
Items []object.FaveItem `json:"items"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// FaveGet method.
|
|
|
|
//
|
2023-03-09 13:48:00 -08:00
|
|
|
// extended=0
|
2021-01-28 15:25:14 -08:00
|
|
|
//
|
2024-08-27 10:04:05 -07:00
|
|
|
// https://dev.vk.com/method/fave.get
|
2021-01-28 15:25:14 -08:00
|
|
|
func (vk *VK) FaveGet(params Params) (response FaveGetResponse, err error) {
|
|
|
|
err = vk.RequestUnmarshal("fave.get", &response, params, Params{"extended": false})
|
|
|
|
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// FaveGetExtendedResponse struct.
|
|
|
|
type FaveGetExtendedResponse struct {
|
|
|
|
Count int `json:"count"`
|
|
|
|
Items []object.FaveItem `json:"items"`
|
|
|
|
object.ExtendedResponse
|
|
|
|
}
|
|
|
|
|
|
|
|
// FaveGetExtended method.
|
|
|
|
//
|
2023-03-09 13:48:00 -08:00
|
|
|
// extended=1
|
2021-01-28 15:25:14 -08:00
|
|
|
//
|
2024-08-27 10:04:05 -07:00
|
|
|
// https://dev.vk.com/method/fave.get
|
2021-01-28 15:25:14 -08:00
|
|
|
func (vk *VK) FaveGetExtended(params Params) (response FaveGetExtendedResponse, err error) {
|
|
|
|
err = vk.RequestUnmarshal("fave.get", &response, params, Params{"extended": true})
|
|
|
|
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// FaveGetPagesResponse struct.
|
|
|
|
type FaveGetPagesResponse struct {
|
|
|
|
Count int `json:"count"`
|
|
|
|
Items []object.FavePage `json:"items"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// FaveGetPages method.
|
|
|
|
//
|
2024-08-27 10:04:05 -07:00
|
|
|
// https://dev.vk.com/method/fave.getPages
|
2021-01-28 15:25:14 -08:00
|
|
|
func (vk *VK) FaveGetPages(params Params) (response FaveGetPagesResponse, err error) {
|
|
|
|
err = vk.RequestUnmarshal("fave.getPages", &response, params)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// FaveGetTagsResponse struct.
|
|
|
|
type FaveGetTagsResponse struct {
|
|
|
|
Count int `json:"count"`
|
|
|
|
Items []object.FaveTag `json:"items"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// FaveGetTags method.
|
|
|
|
//
|
2024-08-27 10:04:05 -07:00
|
|
|
// https://dev.vk.com/method/fave.getTags
|
2021-01-28 15:25:14 -08:00
|
|
|
func (vk *VK) FaveGetTags(params Params) (response FaveGetTagsResponse, err error) {
|
|
|
|
err = vk.RequestUnmarshal("fave.getTags", &response, params)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// FaveMarkSeen method.
|
|
|
|
//
|
2024-08-27 10:04:05 -07:00
|
|
|
// https://dev.vk.com/method/fave.markSeen
|
2021-01-28 15:25:14 -08:00
|
|
|
func (vk *VK) FaveMarkSeen(params Params) (response int, err error) {
|
|
|
|
err = vk.RequestUnmarshal("fave.markSeen", &response, params)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// FaveRemoveArticle method.
|
|
|
|
//
|
2024-08-27 10:04:05 -07:00
|
|
|
// https://dev.vk.com/method/fave.removeArticle
|
2021-01-28 15:25:14 -08:00
|
|
|
func (vk *VK) FaveRemoveArticle(params Params) (response int, err error) {
|
|
|
|
err = vk.RequestUnmarshal("fave.removeArticle", &response, params)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// FaveRemoveLink removes link from the user's faves.
|
|
|
|
//
|
2024-08-27 10:04:05 -07:00
|
|
|
// https://dev.vk.com/method/fave.removeLink
|
2021-01-28 15:25:14 -08:00
|
|
|
func (vk *VK) FaveRemoveLink(params Params) (response int, err error) {
|
|
|
|
err = vk.RequestUnmarshal("fave.removeLink", &response, params)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// FaveRemovePage method.
|
|
|
|
//
|
2024-08-27 10:04:05 -07:00
|
|
|
// https://dev.vk.com/method/fave.removePage
|
2021-01-28 15:25:14 -08:00
|
|
|
func (vk *VK) FaveRemovePage(params Params) (response int, err error) {
|
|
|
|
err = vk.RequestUnmarshal("fave.removePage", &response, params)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// FaveRemovePost method.
|
|
|
|
//
|
2024-08-27 10:04:05 -07:00
|
|
|
// https://dev.vk.com/method/fave.removePost
|
2021-01-28 15:25:14 -08:00
|
|
|
func (vk *VK) FaveRemovePost(params Params) (response int, err error) {
|
|
|
|
err = vk.RequestUnmarshal("fave.removePost", &response, params)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// FaveRemoveProduct method.
|
|
|
|
//
|
2024-08-27 10:04:05 -07:00
|
|
|
// https://dev.vk.com/method/fave.removeProduct
|
2021-01-28 15:25:14 -08:00
|
|
|
func (vk *VK) FaveRemoveProduct(params Params) (response int, err error) {
|
|
|
|
err = vk.RequestUnmarshal("fave.removeProduct", &response, params)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// FaveRemoveTag method.
|
|
|
|
//
|
2024-08-27 10:04:05 -07:00
|
|
|
// https://dev.vk.com/method/fave.removeTag
|
2021-01-28 15:25:14 -08:00
|
|
|
func (vk *VK) FaveRemoveTag(params Params) (response int, err error) {
|
|
|
|
err = vk.RequestUnmarshal("fave.removeTag", &response, params)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// FaveRemoveVideo method.
|
|
|
|
//
|
2024-08-27 10:04:05 -07:00
|
|
|
// https://dev.vk.com/method/fave.removeVideo
|
2021-01-28 15:25:14 -08:00
|
|
|
func (vk *VK) FaveRemoveVideo(params Params) (response int, err error) {
|
|
|
|
err = vk.RequestUnmarshal("fave.removeVideo", &response, params)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// FaveReorderTags method.
|
|
|
|
//
|
2024-08-27 10:04:05 -07:00
|
|
|
// https://dev.vk.com/method/fave.reorderTags
|
2021-01-28 15:25:14 -08:00
|
|
|
func (vk *VK) FaveReorderTags(params Params) (response int, err error) {
|
|
|
|
err = vk.RequestUnmarshal("fave.reorderTags", &response, params)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// FaveSetPageTags method.
|
|
|
|
//
|
2024-08-27 10:04:05 -07:00
|
|
|
// https://dev.vk.com/method/fave.setPageTags
|
2021-01-28 15:25:14 -08:00
|
|
|
func (vk *VK) FaveSetPageTags(params Params) (response int, err error) {
|
|
|
|
err = vk.RequestUnmarshal("fave.setPageTags", &response, params)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// FaveSetTags method.
|
|
|
|
//
|
2024-08-27 10:04:05 -07:00
|
|
|
// https://dev.vk.com/method/fave.setTags
|
2021-01-28 15:25:14 -08:00
|
|
|
func (vk *VK) FaveSetTags(params Params) (response int, err error) {
|
|
|
|
err = vk.RequestUnmarshal("fave.setTags", &response, params)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// FaveTrackPageInteraction method.
|
|
|
|
//
|
2024-08-27 10:04:05 -07:00
|
|
|
// https://dev.vk.com/method/fave.trackPageInteraction
|
2021-01-28 15:25:14 -08:00
|
|
|
func (vk *VK) FaveTrackPageInteraction(params Params) (response int, err error) {
|
|
|
|
err = vk.RequestUnmarshal("fave.trackPageInteraction", &response, params)
|
|
|
|
return
|
|
|
|
}
|