Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Auth ¶
type Auth struct {
ClientID int // VK Application Client ID
ClientSecret string // VK Application Client secret
Username string // Sender username, e.g. email
Password string // Sender password in plain text
Filename string // File to send; must be .ogg (mono)
Recipient int // Recipient VK ID
}
Auth is data for send message
type DocumentResponse ¶
type FileResponse ¶
type FileResponse struct {
File string `json:"file,omitempty"`
}
type MessageResponse ¶
type MessageResponse struct {
Response int `json:"response,omitempty"`
}
type OauthResponse ¶
type Setup ¶
type Setup struct {
SaveOauth bool // Should the application save oauth
OauthFile string // Custom oauth store file; can be empty (see DefaultOauthFile)
}
Setup is data for application running. Can be empty.
type UploadURLResponse ¶
type UploadURLResponse struct {
Response struct {
URI string `json:"upload_url,omitempty"`
} `json:"response,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.