github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/live/describe_live_push_auth_key.go (about) 1 package live 2 3 import ( 4 github_com_morlay_goqcloud "github.com/morlay/goqcloud" 5 ) 6 7 // 查询推流鉴权key 8 // https://cloud.tencent.com/document/api/267/30425 9 10 type DescribeLivePushAuthKeyRequest struct { 11 // 推流域名。 12 DomainName string `name:"DomainName"` 13 // 区域 14 Region string `name:"Region"` 15 } 16 17 func (req *DescribeLivePushAuthKeyRequest) Invoke(client github_com_morlay_goqcloud.Client) (*DescribeLivePushAuthKeyResponse, error) { 18 resp := &DescribeLivePushAuthKeyResponse{} 19 err := client.Request("live", "DescribeLivePushAuthKey", "2018-08-01").Do(req, resp) 20 return resp, err 21 } 22 23 type DescribeLivePushAuthKeyResponse struct { 24 github_com_morlay_goqcloud.TencentCloudBaseResponse 25 // 推流鉴权key信息。 26 PushAuthKeyInfo PushAuthKeyInfo `json:"PushAuthKeyInfo"` 27 }