mirror of
https://github.com/cwinfo/matterbridge.git
synced 2024-11-14 17:50:26 +00:00
104 lines
3.1 KiB
Go
104 lines
3.1 KiB
Go
|
package api // import "github.com/SevereCloud/vksdk/v2/api"
|
||
|
|
||
|
import (
|
||
|
"github.com/SevereCloud/vksdk/v2/object"
|
||
|
)
|
||
|
|
||
|
// MarusiaGetPictureUploadLinkResponse struct.
|
||
|
type MarusiaGetPictureUploadLinkResponse struct {
|
||
|
PictureUploadLink string `json:"picture_upload_link"` // Link
|
||
|
}
|
||
|
|
||
|
// MarusiaGetPictureUploadLink method.
|
||
|
//
|
||
|
// https://vk.com/dev/marusia_skill_docs10
|
||
|
func (vk *VK) MarusiaGetPictureUploadLink(params Params) (response MarusiaGetPictureUploadLinkResponse, err error) {
|
||
|
err = vk.RequestUnmarshal("marusia.getPictureUploadLink", &response, params)
|
||
|
return
|
||
|
}
|
||
|
|
||
|
// MarusiaSavePictureResponse struct.
|
||
|
type MarusiaSavePictureResponse struct {
|
||
|
AppID int `json:"app_id"`
|
||
|
PhotoID int `json:"photo_id"`
|
||
|
}
|
||
|
|
||
|
// MarusiaSavePicture method.
|
||
|
//
|
||
|
// https://vk.com/dev/marusia_skill_docs10
|
||
|
func (vk *VK) MarusiaSavePicture(params Params) (response MarusiaSavePictureResponse, err error) {
|
||
|
err = vk.RequestUnmarshal("marusia.savePicture", &response, params)
|
||
|
return
|
||
|
}
|
||
|
|
||
|
// MarusiaGetPicturesResponse struct.
|
||
|
type MarusiaGetPicturesResponse struct {
|
||
|
Count int `json:"count"`
|
||
|
Items []object.MarusiaPicture `json:"items"`
|
||
|
}
|
||
|
|
||
|
// MarusiaGetPictures method.
|
||
|
//
|
||
|
// https://vk.com/dev/marusia_skill_docs10
|
||
|
func (vk *VK) MarusiaGetPictures(params Params) (response MarusiaGetPicturesResponse, err error) {
|
||
|
err = vk.RequestUnmarshal("marusia.getPictures", &response, params)
|
||
|
return
|
||
|
}
|
||
|
|
||
|
// MarusiaDeletePicture delete picture.
|
||
|
//
|
||
|
// https://vk.com/dev/marusia_skill_docs10
|
||
|
func (vk *VK) MarusiaDeletePicture(params Params) (response int, err error) {
|
||
|
err = vk.RequestUnmarshal("marusia.deletePicture", &response, params)
|
||
|
return
|
||
|
}
|
||
|
|
||
|
// MarusiaGetAudioUploadLinkResponse struct.
|
||
|
type MarusiaGetAudioUploadLinkResponse struct {
|
||
|
AudioUploadLink string `json:"audio_upload_link"` // Link
|
||
|
}
|
||
|
|
||
|
// MarusiaGetAudioUploadLink method.
|
||
|
//
|
||
|
// https://vk.com/dev/marusia_skill_docs10
|
||
|
func (vk *VK) MarusiaGetAudioUploadLink(params Params) (response MarusiaGetAudioUploadLinkResponse, err error) {
|
||
|
err = vk.RequestUnmarshal("marusia.getAudioUploadLink", &response, params)
|
||
|
return
|
||
|
}
|
||
|
|
||
|
// MarusiaCreateAudioResponse struct.
|
||
|
type MarusiaCreateAudioResponse struct {
|
||
|
ID int `json:"id"`
|
||
|
Title string `json:"title"`
|
||
|
}
|
||
|
|
||
|
// MarusiaCreateAudio method.
|
||
|
//
|
||
|
// https://vk.com/dev/marusia_skill_docs10
|
||
|
func (vk *VK) MarusiaCreateAudio(params Params) (response MarusiaCreateAudioResponse, err error) {
|
||
|
err = vk.RequestUnmarshal("marusia.createAudio", &response, params)
|
||
|
return
|
||
|
}
|
||
|
|
||
|
// MarusiaGetAudiosResponse struct.
|
||
|
type MarusiaGetAudiosResponse struct {
|
||
|
Count int `json:"count"`
|
||
|
Audios []object.MarusiaAudio `json:"audios"`
|
||
|
}
|
||
|
|
||
|
// MarusiaGetAudios method.
|
||
|
//
|
||
|
// https://vk.com/dev/marusia_skill_docs10
|
||
|
func (vk *VK) MarusiaGetAudios(params Params) (response MarusiaGetAudiosResponse, err error) {
|
||
|
err = vk.RequestUnmarshal("marusia.getAudios", &response, params)
|
||
|
return
|
||
|
}
|
||
|
|
||
|
// MarusiaDeleteAudio delete audio.
|
||
|
//
|
||
|
// https://vk.com/dev/marusia_skill_docs10
|
||
|
func (vk *VK) MarusiaDeleteAudio(params Params) (response int, err error) {
|
||
|
err = vk.RequestUnmarshal("marusia.deleteAudio", &response, params)
|
||
|
return
|
||
|
}
|