func (v Account) GetInfo(params AccountGetInfoParams) (*AccountGetInfoResponse, error) {
	r, err := v.API.Request("account.getInfo", params)
	if err != nil {
		return nil, err
	}
	var resp AccountGetInfoResponse
	err = json.Unmarshal(r, &resp)
	if err != nil {
		return nil, err
	}
	return &resp, nil
}
GetInfo Returns current account info.
package vkapi
import (
	"encoding/json"
	"strconv"
	"github.com/stek29/vk"
)
type Account struct {
	API vk.API
}
type AccountGetCountersParams struct {
	Filter CSVStringSlice `url:"filter,omitempty"`
}
type AccountGetCountersResponse struct {
	Friends int `json:"friends,omitempty"`
	Messages int `json:"messages,omitempty"`
	Photos int `json:"photos,omitempty"`
	Videos int `json:"videos,omitempty"`
	Gifts int `json:"gifts,omitempty"`
	Events int `json:"events,omitempty"`
	Groups int `json:"groups,omitempty"`
	Notifications int `json:"notifications,omitempty"`
	AppRequests int `json:"app_requests,omitempty"`
	FriendsSuggestions int `json:"friends_suggestions,omitempty"`
}
func (v Account) GetCounters(params AccountGetCountersParams) (*AccountGetCountersResponse, error) {
	r, err := v.API.Request("account.getCounters", params)
	if err != nil {
		return nil, err
	}
	var resp AccountGetCountersResponse
	err = json.Unmarshal(r, &resp)
	if err != nil {
		return nil, err
	}
	return &resp, nil
}
type AccountSetNameInMenuParams struct {
	UserID int `url:"user_id"`
	Name string `url:"name,omitempty"`
}
func (v Account) SetNameInMenu(params AccountSetNameInMenuParams) (bool, error) {
	r, err := v.API.Request("account.setNameInMenu", params)
	if err != nil {
		return false, err
	}
	return decodeBoolIntResponse(r)
}
type AccountSetOnlineParams struct {
	Voip bool `url:"voip,omitempty"`
}
func (v Account) SetOnline(params AccountSetOnlineParams) (bool, error) {
	r, err := v.API.Request("account.setOnline", params)
	if err != nil {
		return false, err
	}
	return decodeBoolIntResponse(r)
}
func (v Account) SetOffline() (bool, error) {
	r, err := v.API.Request("account.setOffline", nil)
	if err != nil {
		return false, err
	}
	return decodeBoolIntResponse(r)
}
type AccountRegisterDeviceParams struct {
	Token string `url:"token"`
	DeviceModel string `url:"device_model,omitempty"`
	DeviceYear int `url:"device_year,omitempty"`
	DeviceID string `url:"device_id"`
	SystemVersion string `url:"system_version,omitempty"`
	Settings string `url:"settings,omitempty"`
	Sandbox  bool   `url:"sandbox,omitempty"`
}
func (v Account) RegisterDevice(params AccountRegisterDeviceParams) (bool, error) {
	r, err := v.API.Request("account.registerDevice", params)
	if err != nil {
		return false, err
	}
	return decodeBoolIntResponse(r)
}
type AccountUnregisterDeviceParams struct {
	DeviceID string `url:"device_id,omitempty"`
	Sandbox  bool   `url:"sandbox,omitempty"`
}
func (v Account) UnregisterDevice(params AccountUnregisterDeviceParams) (bool, error) {
	r, err := v.API.Request("account.unregisterDevice", params)
	if err != nil {
		return false, err
	}
	return decodeBoolIntResponse(r)
}
type AccountSetSilenceModeParams struct {
	DeviceID string `url:"device_id,omitempty"`
	Time int `url:"time,omitempty"`
	PeerID int `url:"peer_id,omitempty"`
	Sound int `url:"sound,omitempty"`
}
func (v Account) SetSilenceMode(params AccountSetSilenceModeParams) (bool, error) {
	r, err := v.API.Request("account.setSilenceMode", params)
	if err != nil {
		return false, err
	}
	return decodeBoolIntResponse(r)
}
type AccountGetPushSettingsParams struct {
	DeviceID string `url:"device_id,omitempty"`
}
type AccountGetPushSettingsResponse struct {
	Disabled vk.BoolInt `json:"disabled,omitempty"`
	DisabledUntil int `json:"disabled_until,omitempty"`
	Conversations struct {
		Count int `json:"count,omitempty"`
		Items []struct {
			PeerID int `json:"peer_id,omitempty"`
			Sound vk.BoolInt `json:"sound,omitempty"`
			DisabledUntil int `json:"disabled_until,omitempty"`
		} `json:"items,omitempty"`
	} `json:"conversations,omitempty"`
	Settings struct {
		Msg []string `json:"msg,omitempty"`
		Chat []string `json:"chat,omitempty"`
		Friend []string `json:"friend,omitempty"`
		FriendFound []string `json:"friend_found,omitempty"`
		FriendAccepted []string `json:"friend_accepted,omitempty"`
		Reply []string `json:"reply,omitempty"`
		Comment []string `json:"comment,omitempty"`
		Mention []string `json:"mention,omitempty"`
		Like []string `json:"like,omitempty"`
		Repost []string `json:"repost,omitempty"`
		WallPost []string `json:"wall_post,omitempty"`
		WallPublish []string `json:"wall_publish,omitempty"`
		GroupInvite []string `json:"group_invite,omitempty"`
		GroupAccepted []string `json:"group_accepted,omitempty"`
		EventSoon []string `json:"event_soon,omitempty"`
		PhotosTag []string `json:"photos_tag,omitempty"`
		AppRequest []string `json:"app_request,omitempty"`
		SdkOpen []string `json:"sdk_open,omitempty"`
		NewPost []string `json:"new_post,omitempty"`
		Birthday []string `json:"birthday,omitempty"`
	} `json:"settings,omitempty"`
}
func (v Account) GetPushSettings(params AccountGetPushSettingsParams) (*AccountGetPushSettingsResponse, error) {
	r, err := v.API.Request("account.getPushSettings", params)
	if err != nil {
		return nil, err
	}
	var resp AccountGetPushSettingsResponse
	err = json.Unmarshal(r, &resp)
	if err != nil {
		return nil, err
	}
	return &resp, nil
}
type AccountSetPushSettingsParams struct {
	DeviceID string `url:"device_id"`
	Settings string `url:"settings,omitempty"`
	Key string `url:"key,omitempty"`
	Value CSVStringSlice `url:"value,omitempty"`
}
func (v Account) SetPushSettings(params AccountSetPushSettingsParams) (bool, error) {
	r, err := v.API.Request("account.setPushSettings", params)
	if err != nil {
		return false, err
	}
	return decodeBoolIntResponse(r)
}
type AccountGetAppPermissionsParams struct {
	UserID int `url:"user_id"`
}
type AccountGetAppPermissionsResponse int
func (v Account) GetAppPermissions(params AccountGetAppPermissionsParams) (AccountGetAppPermissionsResponse, error) {
	r, err := v.API.Request("account.getAppPermissions", params)
	if err != nil {
		return 0, err
	}
	var resp AccountGetAppPermissionsResponse
	var cnv int
	cnv, err = strconv.Atoi(string(r))
	resp = AccountGetAppPermissionsResponse(cnv)
	if err != nil {
		return 0, err
	}
	return resp, nil
}
type AccountGetActiveOffersParams struct {
	Offset int `url:"offset,omitempty"`
	Count int `url:"count,omitempty"`
}
type AccountGetActiveOffersResponse struct {
	Count int `json:"count,omitempty"`
	Items []struct {
		ID int `json:"id,omitempty"`
		Title string `json:"title,omitempty"`
		Instruction string `json:"instruction,omitempty"`
		InstructionHTML string `json:"instruction_html,omitempty"`
		ShortDescription string `json:"short_description,omitempty"`
		Description string `json:"description,omitempty"`
		Img string `json:"img,omitempty"`
		Tag string `json:"tag,omitempty"`
		Price int `json:"price,omitempty"`
	} `json:"items,omitempty"`
}
func (v Account) GetActiveOffers(params AccountGetActiveOffersParams) (*AccountGetActiveOffersResponse, error) {
	r, err := v.API.Request("account.getActiveOffers", params)
	if err != nil {
		return nil, err
	}
	var resp AccountGetActiveOffersResponse
	err = json.Unmarshal(r, &resp)
	if err != nil {
		return nil, err
	}
	return &resp, nil
}
type AccountGetBannedParams struct {
	Offset int `url:"offset,omitempty"`
	Count int `url:"count,omitempty"`
}
type AccountGetBannedResponse struct {
	Count int       `json:"count,omitempty"`
	Items []vk.User `json:"items,omitempty"`
}
func (v Account) GetBanned(params AccountGetBannedParams) (*AccountGetBannedResponse, error) {
	r, err := v.API.Request("account.getBanned", params)
	if err != nil {
		return nil, err
	}
	var resp AccountGetBannedResponse
	err = json.Unmarshal(r, &resp)
	if err != nil {
		return nil, err
	}
	return &resp, nil
}
type AccountGetInfoParams struct {
	Fields CSVStringSlice `url:"fields,omitempty"`
}
type AccountGetInfoResponse struct {
	Country string `json:"country,omitempty"`
	HTTPSRequired vk.BoolInt `json:"https_required,omitempty"`
	OwnPostsDefault vk.BoolInt `json:"own_posts_default,omitempty"`
	NoWallReplies vk.BoolInt `json:"no_wall_replies,omitempty"`
	Intro vk.BoolInt `json:"intro,omitempty"`
	Lang int `json:"lang,omitempty"`
	X2FaRequired vk.BoolInt `json:"2fa_required,omitempty"`
}