func (v Streaming) GetServerURL() (*StreamingGetServerURLResponse, error) {
	r, err := v.API.Request("streaming.getServerUrl", nil)
	if err != nil {
		return nil, err
	}
	var resp StreamingGetServerURLResponse
	err = json.Unmarshal(r, &resp)
	if err != nil {
		return nil, err
	}
	return &resp, nil
}
GetServerURL Allows to receive data for the connection to Streaming API.
package vkapi
import (
	"encoding/json"
	"github.com/stek29/vk"
)
type Streaming struct {
	API vk.API
}
type StreamingGetServerURLResponse struct {
	Endpoint string `json:"endpoint,omitempty"`
	Key string `json:"key,omitempty"`
}