blob: e9bb777561b7e0abf8f0064be8a981e41bd14217 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
package api // import "github.com/SevereCloud/vksdk/v2/api"
import (
"github.com/SevereCloud/vksdk/v2/object"
)
// StatusGetResponse struct.
type StatusGetResponse struct {
Audio object.AudioAudio `json:"audio"`
Text string `json:"text"`
}
// StatusGet returns data required to show the status of a user or community.
func (vk *VK) StatusGet(params Params) (response StatusGetResponse, err error) {
err = vk.RequestUnmarshal("status.get", &response, params)
return
}
// StatusSet sets a new status for the current user.
func (vk *VK) StatusSet(params Params) (response int, err error) {
err = vk.RequestUnmarshal("status.set", &response, params)
return
}
|