v20190916

package
v3.0.233+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 14, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const APIVersion = "2019-09-16"

Variables

This section is empty.

Functions

This section is empty.

Types

type Album

type Album struct {

	// 专辑名
	AlbumName *string `json:"AlbumName,omitempty" name:"AlbumName"`

	// 专辑图片大小及类别
	// 注意:此字段可能返回 null,表示取不到有效值。
	ImagePathMap []*ImagePath `json:"ImagePathMap,omitempty" name:"ImagePathMap" list`
}

type Artist

type Artist struct {

	// 歌手名
	ArtistName *string `json:"ArtistName,omitempty" name:"ArtistName"`
}

type Client

type Client struct {
	common.Client
}

func NewClient

func NewClient(credential *common.Credential, region string, clientProfile *profile.ClientProfile) (client *Client, err error)

func NewClientWithSecretId

func NewClientWithSecretId(secretId, secretKey, region string) (client *Client, err error)

Deprecated

func (*Client) DescribeItemById

func (c *Client) DescribeItemById(request *DescribeItemByIdRequest) (response *DescribeItemByIdResponse, err error)

根据歌曲ID查询歌曲信息

func (*Client) DescribeItems

func (c *Client) DescribeItems(request *DescribeItemsRequest) (response *DescribeItemsResponse, err error)

分类内容下歌曲列表获取,根据CategoryID或CategoryCode

func (*Client) DescribeLyric

func (c *Client) DescribeLyric(request *DescribeLyricRequest) (response *DescribeLyricResponse, err error)

根据接口的模式及歌曲ID来取得歌词信息。

func (*Client) DescribeMusic

func (c *Client) DescribeMusic(request *DescribeMusicRequest) (response *DescribeMusicResponse, err error)

根据接口的模式及歌曲ID来取得对应权限的歌曲播放地址等信息。

func (*Client) DescribePackageItems

func (c *Client) DescribePackageItems(request *DescribePackageItemsRequest) (response *DescribePackageItemsResponse, err error)

查询曲库包已核验歌曲列表接口

func (*Client) DescribePackages

func (c *Client) DescribePackages(request *DescribePackagesRequest) (response *DescribePackagesResponse, err error)

查询已购曲库包列表接口

func (*Client) DescribeStations

func (c *Client) DescribeStations(request *DescribeStationsRequest) (response *DescribeStationsResponse, err error)

获取素材库列表时使用

func (*Client) ReportData

func (c *Client) ReportData(request *ReportDataRequest) (response *ReportDataResponse, err error)

客户上报用户数据功能,为了更好的为用户提供优质服务

type DataInfo

type DataInfo struct {

	// Song Name
	Name *string `json:"Name,omitempty" name:"Name"`

	// 歌曲版本
	Version *string `json:"Version,omitempty" name:"Version"`

	// 歌曲总时长(非试听时长)
	Duration *string `json:"Duration,omitempty" name:"Duration"`

	// 试听开始时间
	AuditionBegin *uint64 `json:"AuditionBegin,omitempty" name:"AuditionBegin"`

	// 试听结束时间
	AuditionEnd *uint64 `json:"AuditionEnd,omitempty" name:"AuditionEnd"`
}

type DescribeItemByIdRequest

type DescribeItemByIdRequest struct {
	*tchttp.BaseRequest

	// 歌曲ID,目前暂不支持批量查询
	ItemIDs *string `json:"ItemIDs,omitempty" name:"ItemIDs"`
}

func NewDescribeItemByIdRequest

func NewDescribeItemByIdRequest() (request *DescribeItemByIdRequest)

func (*DescribeItemByIdRequest) FromJsonString

func (r *DescribeItemByIdRequest) FromJsonString(s string) error

func (*DescribeItemByIdRequest) ToJsonString

func (r *DescribeItemByIdRequest) ToJsonString() string

type DescribeItemByIdResponse

type DescribeItemByIdResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 歌曲信息
		// 注意:此字段可能返回 null,表示取不到有效值。
		Items []*Item `json:"Items,omitempty" name:"Items" list`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeItemByIdResponse

func NewDescribeItemByIdResponse() (response *DescribeItemByIdResponse)

func (*DescribeItemByIdResponse) FromJsonString

func (r *DescribeItemByIdResponse) FromJsonString(s string) error

func (*DescribeItemByIdResponse) ToJsonString

func (r *DescribeItemByIdResponse) ToJsonString() string

type DescribeItemsRequest

type DescribeItemsRequest struct {
	*tchttp.BaseRequest

	// offset (Default = 0),(当前页-1) * Limit
	Offset *uint64 `json:"Offset,omitempty" name:"Offset"`

	// 条数,必须大于0,最大值为30
	Limit *uint64 `json:"Limit,omitempty" name:"Limit"`

	// (电台/歌单)ID,CategoryId和CategoryCode两个必传1个,可以从<a href="https://cloud.tencent.com/document/product/1155/40109">获取分类内容(Station)列表接口</a>中获取。
	CategoryId *string `json:"CategoryId,omitempty" name:"CategoryId"`

	// (电台/歌单)ID,CategoryId和CategoryCode两个必传1个,可以从<a href="https://cloud.tencent.com/document/product/1155/40109">获取分类内容(Station)列表接口</a>中获取。
	CategoryCode *string `json:"CategoryCode,omitempty" name:"CategoryCode"`
}

func NewDescribeItemsRequest

func NewDescribeItemsRequest() (request *DescribeItemsRequest)

func (*DescribeItemsRequest) FromJsonString

func (r *DescribeItemsRequest) FromJsonString(s string) error

func (*DescribeItemsRequest) ToJsonString

func (r *DescribeItemsRequest) ToJsonString() string

type DescribeItemsResponse

type DescribeItemsResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 分页偏移量
		Offset *uint64 `json:"Offset,omitempty" name:"Offset"`

		// 当前页歌曲数量
		Size *uint64 `json:"Size,omitempty" name:"Size"`

		// 总数据条数
		Total *uint64 `json:"Total,omitempty" name:"Total"`

		// 剩余数量(total-offset-size),通过这个值判断是否
		// 还有下一页
		HaveMore *uint64 `json:"HaveMore,omitempty" name:"HaveMore"`

		// Items 歌曲列表
		// 注意:此字段可能返回 null,表示取不到有效值。
		Items []*Item `json:"Items,omitempty" name:"Items" list`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeItemsResponse

func NewDescribeItemsResponse() (response *DescribeItemsResponse)

func (*DescribeItemsResponse) FromJsonString

func (r *DescribeItemsResponse) FromJsonString(s string) error

func (*DescribeItemsResponse) ToJsonString

func (r *DescribeItemsResponse) ToJsonString() string

type DescribeLyricRequest

type DescribeLyricRequest struct {
	*tchttp.BaseRequest

	// 歌曲ID
	ItemId *string `json:"ItemId,omitempty" name:"ItemId"`

	// 歌词格式,可选项,可不填写,目前填写只能填LRC-LRC。该字段为预留的扩展字段。后续如果不填,会返回歌曲的所有格式的歌词。如果填写某个正确的格式,则只返回该格式的歌词。
	SubItemType *string `json:"SubItemType,omitempty" name:"SubItemType"`
}

func NewDescribeLyricRequest

func NewDescribeLyricRequest() (request *DescribeLyricRequest)

func (*DescribeLyricRequest) FromJsonString

func (r *DescribeLyricRequest) FromJsonString(s string) error

func (*DescribeLyricRequest) ToJsonString

func (r *DescribeLyricRequest) ToJsonString() string

type DescribeLyricResponse

type DescribeLyricResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 歌词详情
		// 注意:此字段可能返回 null,表示取不到有效值。
		Lyric *Lyric `json:"Lyric,omitempty" name:"Lyric"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeLyricResponse

func NewDescribeLyricResponse() (response *DescribeLyricResponse)

func (*DescribeLyricResponse) FromJsonString

func (r *DescribeLyricResponse) FromJsonString(s string) error

func (*DescribeLyricResponse) ToJsonString

func (r *DescribeLyricResponse) ToJsonString() string

type DescribeMusicRequest

type DescribeMusicRequest struct {
	*tchttp.BaseRequest

	// 歌曲ID
	ItemId *string `json:"ItemId,omitempty" name:"ItemId"`

	// 在应用前端播放音乐C端用户的唯一标识。无需是账户信息,用户唯一标识即可。
	IdentityId *string `json:"IdentityId,omitempty" name:"IdentityId"`

	// 填 MP3-64K-FTD-P 获取歌曲热门片段
	SubItemType *string `json:"SubItemType,omitempty" name:"SubItemType"`

	// CDN URL Protocol:HTTP or HTTPS/SSL
	// Values:Y , N(default)
	Ssl *string `json:"Ssl,omitempty" name:"Ssl"`
}

func NewDescribeMusicRequest

func NewDescribeMusicRequest() (request *DescribeMusicRequest)

func (*DescribeMusicRequest) FromJsonString

func (r *DescribeMusicRequest) FromJsonString(s string) error

func (*DescribeMusicRequest) ToJsonString

func (r *DescribeMusicRequest) ToJsonString() string

type DescribeMusicResponse

type DescribeMusicResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 音乐相关信息
		// 注意:此字段可能返回 null,表示取不到有效值。
		Music *Music `json:"Music,omitempty" name:"Music"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeMusicResponse

func NewDescribeMusicResponse() (response *DescribeMusicResponse)

func (*DescribeMusicResponse) FromJsonString

func (r *DescribeMusicResponse) FromJsonString(s string) error

func (*DescribeMusicResponse) ToJsonString

func (r *DescribeMusicResponse) ToJsonString() string

type DescribePackageItemsRequest

type DescribePackageItemsRequest struct {
	*tchttp.BaseRequest

	// 订单id
	OrderId *string `json:"OrderId,omitempty" name:"OrderId"`

	// 默认0
	Offset *uint64 `json:"Offset,omitempty" name:"Offset"`

	// 默认20
	Length *uint64 `json:"Length,omitempty" name:"Length"`
}

func NewDescribePackageItemsRequest

func NewDescribePackageItemsRequest() (request *DescribePackageItemsRequest)

func (*DescribePackageItemsRequest) FromJsonString

func (r *DescribePackageItemsRequest) FromJsonString(s string) error

func (*DescribePackageItemsRequest) ToJsonString

func (r *DescribePackageItemsRequest) ToJsonString() string

type DescribePackageItemsResponse

type DescribePackageItemsResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 歌曲信息数组
		// 注意:此字段可能返回 null,表示取不到有效值。
		PackageItems []*PackageItem `json:"PackageItems,omitempty" name:"PackageItems" list`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribePackageItemsResponse

func NewDescribePackageItemsResponse() (response *DescribePackageItemsResponse)

func (*DescribePackageItemsResponse) FromJsonString

func (r *DescribePackageItemsResponse) FromJsonString(s string) error

func (*DescribePackageItemsResponse) ToJsonString

func (r *DescribePackageItemsResponse) ToJsonString() string

type DescribePackagesRequest

type DescribePackagesRequest struct {
	*tchttp.BaseRequest

	// 默认0
	Offset *uint64 `json:"Offset,omitempty" name:"Offset"`

	// 默认20
	Length *uint64 `json:"Length,omitempty" name:"Length"`
}

func NewDescribePackagesRequest

func NewDescribePackagesRequest() (request *DescribePackagesRequest)

func (*DescribePackagesRequest) FromJsonString

func (r *DescribePackagesRequest) FromJsonString(s string) error

func (*DescribePackagesRequest) ToJsonString

func (r *DescribePackagesRequest) ToJsonString() string

type DescribePackagesResponse

type DescribePackagesResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 已购曲库包数组
		// 注意:此字段可能返回 null,表示取不到有效值。
		Packages []*Package `json:"Packages,omitempty" name:"Packages" list`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribePackagesResponse

func NewDescribePackagesResponse() (response *DescribePackagesResponse)

func (*DescribePackagesResponse) FromJsonString

func (r *DescribePackagesResponse) FromJsonString(s string) error

func (*DescribePackagesResponse) ToJsonString

func (r *DescribePackagesResponse) ToJsonString() string

type DescribeStationsRequest

type DescribeStationsRequest struct {
	*tchttp.BaseRequest

	// 条数,必须大于0
	Limit *uint64 `json:"Limit,omitempty" name:"Limit"`

	// offset (Default = 0),(当前页-1) * Limit
	Offset *uint64 `json:"Offset,omitempty" name:"Offset"`
}

func NewDescribeStationsRequest

func NewDescribeStationsRequest() (request *DescribeStationsRequest)

func (*DescribeStationsRequest) FromJsonString

func (r *DescribeStationsRequest) FromJsonString(s string) error

func (*DescribeStationsRequest) ToJsonString

func (r *DescribeStationsRequest) ToJsonString() string

type DescribeStationsResponse

type DescribeStationsResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 总数量
		Total *uint64 `json:"Total,omitempty" name:"Total"`

		// 分页偏移量
		Offset *uint64 `json:"Offset,omitempty" name:"Offset"`

		// 当前页station数量
		Size *uint64 `json:"Size,omitempty" name:"Size"`

		// 剩余数量(total-offset-size),通过这个值判断是否还有下一页
		HaveMore *uint64 `json:"HaveMore,omitempty" name:"HaveMore"`

		// Stations 素材库列表
		// 注意:此字段可能返回 null,表示取不到有效值。
		Stations []*Station `json:"Stations,omitempty" name:"Stations" list`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeStationsResponse

func NewDescribeStationsResponse() (response *DescribeStationsResponse)

func (*DescribeStationsResponse) FromJsonString

func (r *DescribeStationsResponse) FromJsonString(s string) error

func (*DescribeStationsResponse) ToJsonString

func (r *DescribeStationsResponse) ToJsonString() string

type ImagePath

type ImagePath struct {

	// station图片大小及类别
	// 注意:此字段可能返回 null,表示取不到有效值。
	Key *string `json:"Key,omitempty" name:"Key"`

	// station图片地址
	// 注意:此字段可能返回 null,表示取不到有效值。
	Value *string `json:"Value,omitempty" name:"Value"`
}

type Item

type Item struct {

	// Song ID
	ItemID *string `json:"ItemID,omitempty" name:"ItemID"`

	// Song info
	// 注意:此字段可能返回 null,表示取不到有效值。
	DataInfo *DataInfo `json:"DataInfo,omitempty" name:"DataInfo"`

	// 专辑信息
	// 注意:此字段可能返回 null,表示取不到有效值。
	Album *Album `json:"Album,omitempty" name:"Album"`

	// 多个歌手集合
	// 注意:此字段可能返回 null,表示取不到有效值。
	Artists []*Artist `json:"Artists,omitempty" name:"Artists" list`

	// 歌曲状态,1:添加进购物车;2:核销进曲库包
	// 注意:此字段可能返回 null,表示取不到有效值。
	Status *int64 `json:"Status,omitempty" name:"Status"`
}

type Lyric

type Lyric struct {

	// 歌词cdn地址
	Url *string `json:"Url,omitempty" name:"Url"`

	// 歌词后缀名
	FileNameExt *string `json:"FileNameExt,omitempty" name:"FileNameExt"`

	// 歌词类型
	SubItemType *string `json:"SubItemType,omitempty" name:"SubItemType"`
}

type Music

type Music struct {

	// 音乐播放链接相对路径,必须通过在正版曲库直通车控制台上登记的域名进行拼接。
	Url *string `json:"Url,omitempty" name:"Url"`

	// 音频文件大小
	FileSize *uint64 `json:"FileSize,omitempty" name:"FileSize"`

	// 音频文件类型
	FileExtension *string `json:"FileExtension,omitempty" name:"FileExtension"`

	// Song fragment start.试听片段开始时间,试听时长为auditionEnd-auditionBegin
	// Unit :ms
	AuditionBegin *uint64 `json:"AuditionBegin,omitempty" name:"AuditionBegin"`

	// Song fragment end.试听片段结束时间, 试听时长为auditionEnd-auditionBegin
	// Unit :ms
	AuditionEnd *uint64 `json:"AuditionEnd,omitempty" name:"AuditionEnd"`

	// 音乐播放链接全路径,前提是在正版曲库直通车控制台添加过域名,否则返回空字符。
	// 如果添加过多个域名只返回第一个添加域名的播放全路径。
	FullUrl *string `json:"FullUrl,omitempty" name:"FullUrl"`
}

type Package

type Package struct {

	// 订单id
	OrderId *string `json:"OrderId,omitempty" name:"OrderId"`

	// 曲库包名称
	Name *string `json:"Name,omitempty" name:"Name"`

	// 授权地区-global: 全球  CN: 中国
	AuthorizedArea *string `json:"AuthorizedArea,omitempty" name:"AuthorizedArea"`

	// 授权次数
	AuthorizedLimit *int64 `json:"AuthorizedLimit,omitempty" name:"AuthorizedLimit"`

	// 套餐有效期,单位:天
	TermOfValidity *int64 `json:"TermOfValidity,omitempty" name:"TermOfValidity"`

	// 0:不可商业化;1:可商业化
	Commercial *int64 `json:"Commercial,omitempty" name:"Commercial"`

	// 套餐价格,单位:元
	PackagePrice *float64 `json:"PackagePrice,omitempty" name:"PackagePrice"`

	// 生效开始时间,格式yyyy-MM-dd HH:mm:ss
	EffectTime *string `json:"EffectTime,omitempty" name:"EffectTime"`

	// 生效结束时间,格式yyyy-MM-dd HH:mm:ss
	ExpireTime *string `json:"ExpireTime,omitempty" name:"ExpireTime"`

	// 剩余授权次数
	UsedCount *int64 `json:"UsedCount,omitempty" name:"UsedCount"`

	// 曲库包用途信息
	UseRanges []*UseRange `json:"UseRanges,omitempty" name:"UseRanges" list`
}

type PackageItem

type PackageItem struct {

	// 订单id
	OrderId *string `json:"OrderId,omitempty" name:"OrderId"`

	// 歌曲名
	TrackName *string `json:"TrackName,omitempty" name:"TrackName"`

	// 歌曲ID
	ItemID *string `json:"ItemID,omitempty" name:"ItemID"`

	// 专辑图片
	Img *string `json:"Img,omitempty" name:"Img"`

	// 歌手名
	ArtistName *string `json:"ArtistName,omitempty" name:"ArtistName"`

	// 歌曲时长
	Duration *string `json:"Duration,omitempty" name:"Duration"`

	// 授权区域,global: 全球 CN: 中国
	AuthorizedArea *string `json:"AuthorizedArea,omitempty" name:"AuthorizedArea"`
}

type ReportDataRequest

type ReportDataRequest struct {
	*tchttp.BaseRequest

	// 上报数据
	// 注:reportData为客户端压缩后的上报数据进行16进制转换的字符串数据
	// 压缩说明:
	// a) 上报的json格式字符串通过流的转换(ByteArrayInputStream, java.util.zip.GZIPOutputStream),获取到压缩后的字节数组。
	// b) 将压缩后的字节数组转成16进制字符串。
	//
	// reportData由两部分数据组成:
	// 1)report_type(上报类型)
	// 2)data(歌曲上报数据)
	// 不同的report_type对应的data数据结构不一样。
	//
	// 详细说明请参考文档reportdata.docx:
	// https://github.com/ame-demo/doc
	ReportData *string `json:"ReportData,omitempty" name:"ReportData"`
}

func NewReportDataRequest

func NewReportDataRequest() (request *ReportDataRequest)

func (*ReportDataRequest) FromJsonString

func (r *ReportDataRequest) FromJsonString(s string) error

func (*ReportDataRequest) ToJsonString

func (r *ReportDataRequest) ToJsonString() string

type ReportDataResponse

type ReportDataResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewReportDataResponse

func NewReportDataResponse() (response *ReportDataResponse)

func (*ReportDataResponse) FromJsonString

func (r *ReportDataResponse) FromJsonString(s string) error

func (*ReportDataResponse) ToJsonString

func (r *ReportDataResponse) ToJsonString() string

type Station

type Station struct {

	// StationID
	CategoryID *string `json:"CategoryID,omitempty" name:"CategoryID"`

	// Station MCCode
	// 注意:此字段可能返回 null,表示取不到有效值。
	CategoryCode *string `json:"CategoryCode,omitempty" name:"CategoryCode"`

	// Category Name
	// 注意:此字段可能返回 null,表示取不到有效值。
	Name *string `json:"Name,omitempty" name:"Name"`

	// Station的排序值,供参考(返回结果已按其升序)
	// 注意:此字段可能返回 null,表示取不到有效值。
	Rank *int64 `json:"Rank,omitempty" name:"Rank"`

	// station图片集合
	// 注意:此字段可能返回 null,表示取不到有效值。
	ImagePathMap []*ImagePath `json:"ImagePathMap,omitempty" name:"ImagePathMap" list`
}

type UseRange

type UseRange struct {

	// 用途id
	UseRangeId *int64 `json:"UseRangeId,omitempty" name:"UseRangeId"`

	// 用途范围名称
	Name *string `json:"Name,omitempty" name:"Name"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL