Documentation
¶
Index ¶
- Constants
- type Album
- type Artist
- type AuthInfo
- type Client
- func (c *Client) DescribeAuthInfo(request *DescribeAuthInfoRequest) (response *DescribeAuthInfoResponse, err error)
- func (c *Client) DescribeCloudMusic(request *DescribeCloudMusicRequest) (response *DescribeCloudMusicResponse, err error)
- func (c *Client) DescribeCloudMusicPurchased(request *DescribeCloudMusicPurchasedRequest) (response *DescribeCloudMusicPurchasedResponse, err error)
- func (c *Client) DescribeItemById(request *DescribeItemByIdRequest) (response *DescribeItemByIdResponse, err error)
- func (c *Client) DescribeItems(request *DescribeItemsRequest) (response *DescribeItemsResponse, err error)
- func (c *Client) DescribeLyric(request *DescribeLyricRequest) (response *DescribeLyricResponse, err error)
- func (c *Client) DescribeMusic(request *DescribeMusicRequest) (response *DescribeMusicResponse, err error)
- func (c *Client) DescribePackageItems(request *DescribePackageItemsRequest) (response *DescribePackageItemsResponse, err error)
- func (c *Client) DescribePackages(request *DescribePackagesRequest) (response *DescribePackagesResponse, err error)
- func (c *Client) DescribeStations(request *DescribeStationsRequest) (response *DescribeStationsResponse, err error)
- func (c *Client) ModifyMusicOnShelves(request *ModifyMusicOnShelvesRequest) (response *ModifyMusicOnShelvesResponse, err error)
- func (c *Client) PutMusicOnTheShelves(request *PutMusicOnTheShelvesRequest) (response *PutMusicOnTheShelvesResponse, err error)
- func (c *Client) ReportData(request *ReportDataRequest) (response *ReportDataResponse, err error)
- func (c *Client) TakeMusicOffShelves(request *TakeMusicOffShelvesRequest) (response *TakeMusicOffShelvesResponse, err error)
- type DataInfo
- type DescribeAuthInfoRequest
- type DescribeAuthInfoResponse
- type DescribeCloudMusicPurchasedRequest
- type DescribeCloudMusicPurchasedResponse
- type DescribeCloudMusicRequest
- type DescribeCloudMusicResponse
- type DescribeItemByIdRequest
- type DescribeItemByIdResponse
- type DescribeItemsRequest
- type DescribeItemsResponse
- type DescribeLyricRequest
- type DescribeLyricResponse
- type DescribeMusicRequest
- type DescribeMusicResponse
- type DescribePackageItemsRequest
- type DescribePackageItemsResponse
- type DescribePackagesRequest
- type DescribePackagesResponse
- type DescribeStationsRequest
- type DescribeStationsResponse
- type ImagePath
- type Item
- type Lyric
- type ModifyMusicOnShelvesRequest
- type ModifyMusicOnShelvesResponse
- type Music
- type MusicDetailInfo
- type MusicOpenDetail
- type Package
- type PackageItem
- type PutMusicOnTheShelvesRequest
- type PutMusicOnTheShelvesResponse
- type ReportDataRequest
- type ReportDataResponse
- type Station
- type TakeMusicOffShelves
- type TakeMusicOffShelvesRequest
- type TakeMusicOffShelvesResponse
- type UseRange
Constants ¶
const APIVersion = "2019-09-16"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Artist ¶
type Artist struct { // 歌手名 ArtistName *string `json:"ArtistName,omitempty" name:"ArtistName"` }
type AuthInfo ¶
type AuthInfo struct { // 主体名称 // 注意:此字段可能返回 null,表示取不到有效值。 SubjectName *string `json:"SubjectName,omitempty" name:"SubjectName"` // 项目名称 // 注意:此字段可能返回 null,表示取不到有效值。 ProjectName *string `json:"ProjectName,omitempty" name:"ProjectName"` // 应用场景 AppScene *int64 `json:"AppScene,omitempty" name:"AppScene"` // 应用地域 AppRegion *int64 `json:"AppRegion,omitempty" name:"AppRegion"` // 授权时间 AuthPeriod *int64 `json:"AuthPeriod,omitempty" name:"AuthPeriod"` // 是否可商业化 Commercialization *int64 `json:"Commercialization,omitempty" name:"Commercialization"` // 是否可跨平台 Platform *int64 `json:"Platform,omitempty" name:"Platform"` // 加密后Id Id *string `json:"Id,omitempty" name:"Id"` }
type Client ¶
func NewClient ¶
func NewClient(credential *common.Credential, region string, clientProfile *profile.ClientProfile) (client *Client, err error)
func NewClientWithSecretId ¶
Deprecated
func (*Client) DescribeAuthInfo ¶
func (c *Client) DescribeAuthInfo(request *DescribeAuthInfoRequest) (response *DescribeAuthInfoResponse, err error)
获取授权项目信息列表
func (*Client) DescribeCloudMusic ¶
func (c *Client) DescribeCloudMusic(request *DescribeCloudMusicRequest) (response *DescribeCloudMusicResponse, err error)
获取云音乐播放信息接口
func (*Client) DescribeCloudMusicPurchased ¶
func (c *Client) DescribeCloudMusicPurchased(request *DescribeCloudMusicPurchasedRequest) (response *DescribeCloudMusicPurchasedResponse, err error)
获取授权项目下已购云音乐列表
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)
该服务后续会停用,不再建议使用
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)
获取曲库包歌曲播放信息接口
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) ModifyMusicOnShelves ¶
func (c *Client) ModifyMusicOnShelves(request *ModifyMusicOnShelvesRequest) (response *ModifyMusicOnShelvesResponse, err error)
根据资源方,需要变更的参数,请求该接口进行变更,为空的参数默认为无变更
func (*Client) PutMusicOnTheShelves ¶
func (c *Client) PutMusicOnTheShelves(request *PutMusicOnTheShelvesRequest) (response *PutMusicOnTheShelvesResponse, err error)
根据资源方所传歌曲信息,进行歌曲上架,多个歌曲同时请求时,需构造复合结构进行请求
func (*Client) ReportData ¶
func (c *Client) ReportData(request *ReportDataRequest) (response *ReportDataResponse, err error)
客户上报用户数据功能,为了更好地为用户提供优质服务
func (*Client) TakeMusicOffShelves ¶
func (c *Client) TakeMusicOffShelves(request *TakeMusicOffShelvesRequest) (response *TakeMusicOffShelvesResponse, err error)
根据资源方所传MusicId进行将歌曲进行下架,多个MusicId使用逗号隔开
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 DescribeAuthInfoRequest ¶
type DescribeAuthInfoRequest struct { *tchttp.BaseRequest // 偏移量:Offset=Offset+Limit Offset *int64 `json:"Offset,omitempty" name:"Offset"` // 数据条数 Limit *int64 `json:"Limit,omitempty" name:"Limit"` // 搜索关键字 Key *string `json:"Key,omitempty" name:"Key"` }
func NewDescribeAuthInfoRequest ¶
func NewDescribeAuthInfoRequest() (request *DescribeAuthInfoRequest)
func (*DescribeAuthInfoRequest) FromJsonString ¶
func (r *DescribeAuthInfoRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeAuthInfoRequest) ToJsonString ¶
func (r *DescribeAuthInfoRequest) ToJsonString() string
type DescribeAuthInfoResponse ¶
type DescribeAuthInfoResponse struct { *tchttp.BaseResponse Response *struct { // 授权项目列表 AuthInfo []*AuthInfo `json:"AuthInfo,omitempty" name:"AuthInfo" list` // 总数 TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeAuthInfoResponse ¶
func NewDescribeAuthInfoResponse() (response *DescribeAuthInfoResponse)
func (*DescribeAuthInfoResponse) FromJsonString ¶
func (r *DescribeAuthInfoResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeAuthInfoResponse) ToJsonString ¶
func (r *DescribeAuthInfoResponse) ToJsonString() string
type DescribeCloudMusicPurchasedRequest ¶
type DescribeCloudMusicPurchasedRequest struct { *tchttp.BaseRequest // 授权项目Id AuthInfoId *string `json:"AuthInfoId,omitempty" name:"AuthInfoId"` }
func NewDescribeCloudMusicPurchasedRequest ¶
func NewDescribeCloudMusicPurchasedRequest() (request *DescribeCloudMusicPurchasedRequest)
func (*DescribeCloudMusicPurchasedRequest) FromJsonString ¶
func (r *DescribeCloudMusicPurchasedRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeCloudMusicPurchasedRequest) ToJsonString ¶
func (r *DescribeCloudMusicPurchasedRequest) ToJsonString() string
type DescribeCloudMusicPurchasedResponse ¶
type DescribeCloudMusicPurchasedResponse struct { *tchttp.BaseResponse Response *struct { // 云音乐列表 // 注意:此字段可能返回 null,表示取不到有效值。 MusicOpenDetail []*MusicOpenDetail `json:"MusicOpenDetail,omitempty" name:"MusicOpenDetail" list` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeCloudMusicPurchasedResponse ¶
func NewDescribeCloudMusicPurchasedResponse() (response *DescribeCloudMusicPurchasedResponse)
func (*DescribeCloudMusicPurchasedResponse) FromJsonString ¶
func (r *DescribeCloudMusicPurchasedResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeCloudMusicPurchasedResponse) ToJsonString ¶
func (r *DescribeCloudMusicPurchasedResponse) ToJsonString() string
type DescribeCloudMusicRequest ¶
type DescribeCloudMusicRequest struct { *tchttp.BaseRequest // 歌曲Id MusicId *string `json:"MusicId,omitempty" name:"MusicId"` // MP3-320K-FTD-P 为获取320kbps歌曲热门片段。 // MP3-320K-FTD 为获取320kbps已核验歌曲完整资源。 MusicType *string `json:"MusicType,omitempty" name:"MusicType"` }
func NewDescribeCloudMusicRequest ¶
func NewDescribeCloudMusicRequest() (request *DescribeCloudMusicRequest)
func (*DescribeCloudMusicRequest) FromJsonString ¶
func (r *DescribeCloudMusicRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeCloudMusicRequest) ToJsonString ¶
func (r *DescribeCloudMusicRequest) ToJsonString() string
type DescribeCloudMusicResponse ¶
type DescribeCloudMusicResponse struct { *tchttp.BaseResponse Response *struct { // 歌曲Id MusicId *string `json:"MusicId,omitempty" name:"MusicId"` // 歌曲名称 MusicName *string `json:"MusicName,omitempty" name:"MusicName"` // 歌曲时长 // 注意:此字段可能返回 null,表示取不到有效值。 Duration *int64 `json:"Duration,omitempty" name:"Duration"` // 歌曲链接 MusicUrl *string `json:"MusicUrl,omitempty" name:"MusicUrl"` // 歌曲图片 // 注意:此字段可能返回 null,表示取不到有效值。 MusicImageUrl *string `json:"MusicImageUrl,omitempty" name:"MusicImageUrl"` // 歌手列表 // 注意:此字段可能返回 null,表示取不到有效值。 Singers []*string `json:"Singers,omitempty" name:"Singers" list` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeCloudMusicResponse ¶
func NewDescribeCloudMusicResponse() (response *DescribeCloudMusicResponse)
func (*DescribeCloudMusicResponse) FromJsonString ¶
func (r *DescribeCloudMusicResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeCloudMusicResponse) ToJsonString ¶
func (r *DescribeCloudMusicResponse) ToJsonString() string
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
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-320K-FTD-P 为获取64kbps歌曲热门片段。 // MP3-320K-FTD 为获取320kbps已核验歌曲完整资源。 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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
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=Offset+Length 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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribePackageItemsResponse) ToJsonString ¶
func (r *DescribePackageItemsResponse) ToJsonString() string
type DescribePackagesRequest ¶
type DescribePackagesRequest struct { *tchttp.BaseRequest // 默认0,Offset=Offset+Length 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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
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),Offset=Offset+Limit Offset *uint64 `json:"Offset,omitempty" name:"Offset"` }
func NewDescribeStationsRequest ¶
func NewDescribeStationsRequest() (request *DescribeStationsRequest)
func (*DescribeStationsRequest) FromJsonString ¶
func (r *DescribeStationsRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeStationsResponse) ToJsonString ¶
func (r *DescribeStationsResponse) ToJsonString() string
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 ModifyMusicOnShelvesRequest ¶
type ModifyMusicOnShelvesRequest struct { *tchttp.BaseRequest // 歌曲变更信息 MusicDetailInfos *MusicDetailInfo `json:"MusicDetailInfos,omitempty" name:"MusicDetailInfos"` // ame对接资源方密钥 AmeKey *string `json:"AmeKey,omitempty" name:"AmeKey"` }
func NewModifyMusicOnShelvesRequest ¶
func NewModifyMusicOnShelvesRequest() (request *ModifyMusicOnShelvesRequest)
func (*ModifyMusicOnShelvesRequest) FromJsonString ¶
func (r *ModifyMusicOnShelvesRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyMusicOnShelvesRequest) ToJsonString ¶
func (r *ModifyMusicOnShelvesRequest) ToJsonString() string
type ModifyMusicOnShelvesResponse ¶
type ModifyMusicOnShelvesResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewModifyMusicOnShelvesResponse ¶
func NewModifyMusicOnShelvesResponse() (response *ModifyMusicOnShelvesResponse)
func (*ModifyMusicOnShelvesResponse) FromJsonString ¶
func (r *ModifyMusicOnShelvesResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyMusicOnShelvesResponse) ToJsonString ¶
func (r *ModifyMusicOnShelvesResponse) ToJsonString() string
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 MusicDetailInfo ¶
type MusicDetailInfo struct { // 资源方音乐Id MusicId *string `json:"MusicId,omitempty" name:"MusicId"` // 资源方识别信息 AmeId *string `json:"AmeId,omitempty" name:"AmeId"` // 分类标签 Tags []*string `json:"Tags,omitempty" name:"Tags" list` // 关键词 HitWords []*string `json:"HitWords,omitempty" name:"HitWords" list` // 节奏信息 Bpm *int64 `json:"Bpm,omitempty" name:"Bpm"` // 商业化权益 Score *float64 `json:"Score,omitempty" name:"Score"` }
type MusicOpenDetail ¶
type MusicOpenDetail struct { // 音乐Id // 注意:此字段可能返回 null,表示取不到有效值。 MusicId *string `json:"MusicId,omitempty" name:"MusicId"` // 专辑名称 // 注意:此字段可能返回 null,表示取不到有效值。 AlbumName *string `json:"AlbumName,omitempty" name:"AlbumName"` // 专辑图片路径 // 注意:此字段可能返回 null,表示取不到有效值。 AlbumImageUrl *string `json:"AlbumImageUrl,omitempty" name:"AlbumImageUrl"` // 音乐名称 // 注意:此字段可能返回 null,表示取不到有效值。 MusicName *string `json:"MusicName,omitempty" name:"MusicName"` // 音乐图片路径 // 注意:此字段可能返回 null,表示取不到有效值。 MusicImageUrl *string `json:"MusicImageUrl,omitempty" name:"MusicImageUrl"` // 歌手 // 注意:此字段可能返回 null,表示取不到有效值。 Singers []*string `json:"Singers,omitempty" name:"Singers" list` // 播放时长 // 注意:此字段可能返回 null,表示取不到有效值。 Duration *uint64 `json:"Duration,omitempty" name:"Duration"` // 标签 // 注意:此字段可能返回 null,表示取不到有效值。 Tags []*string `json:"Tags,omitempty" name:"Tags" list` // 歌词url // 注意:此字段可能返回 null,表示取不到有效值。 LyricUrl *string `json:"LyricUrl,omitempty" name:"LyricUrl"` }
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 PutMusicOnTheShelvesRequest ¶
type PutMusicOnTheShelvesRequest struct { *tchttp.BaseRequest // 资源方歌曲Id MusicIds []*string `json:"MusicIds,omitempty" name:"MusicIds" list` }
func NewPutMusicOnTheShelvesRequest ¶
func NewPutMusicOnTheShelvesRequest() (request *PutMusicOnTheShelvesRequest)
func (*PutMusicOnTheShelvesRequest) FromJsonString ¶
func (r *PutMusicOnTheShelvesRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*PutMusicOnTheShelvesRequest) ToJsonString ¶
func (r *PutMusicOnTheShelvesRequest) ToJsonString() string
type PutMusicOnTheShelvesResponse ¶
type PutMusicOnTheShelvesResponse struct { *tchttp.BaseResponse Response *struct { // 操作成功数量 SuccessNum *int64 `json:"SuccessNum,omitempty" name:"SuccessNum"` // 操作失败数量 FailedNum *int64 `json:"FailedNum,omitempty" name:"FailedNum"` // 失败歌曲Id // 注意:此字段可能返回 null,表示取不到有效值。 FailedMusicIds []*string `json:"FailedMusicIds,omitempty" name:"FailedMusicIds" list` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewPutMusicOnTheShelvesResponse ¶
func NewPutMusicOnTheShelvesResponse() (response *PutMusicOnTheShelvesResponse)
func (*PutMusicOnTheShelvesResponse) FromJsonString ¶
func (r *PutMusicOnTheShelvesResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*PutMusicOnTheShelvesResponse) ToJsonString ¶
func (r *PutMusicOnTheShelvesResponse) ToJsonString() string
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
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 TakeMusicOffShelves ¶
type TakeMusicOffShelvesRequest ¶
type TakeMusicOffShelvesRequest struct { *tchttp.BaseRequest // 资源方下架必传结构 TakeMusicOffShelves []*TakeMusicOffShelves `json:"TakeMusicOffShelves,omitempty" name:"TakeMusicOffShelves" list` }
func NewTakeMusicOffShelvesRequest ¶
func NewTakeMusicOffShelvesRequest() (request *TakeMusicOffShelvesRequest)
func (*TakeMusicOffShelvesRequest) FromJsonString ¶
func (r *TakeMusicOffShelvesRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*TakeMusicOffShelvesRequest) ToJsonString ¶
func (r *TakeMusicOffShelvesRequest) ToJsonString() string
type TakeMusicOffShelvesResponse ¶
type TakeMusicOffShelvesResponse struct { *tchttp.BaseResponse Response *struct { // 返回成功数量 SuccessNum *int64 `json:"SuccessNum,omitempty" name:"SuccessNum"` // 返回失败数量 FailedNum *int64 `json:"FailedNum,omitempty" name:"FailedNum"` // 返回失败歌曲musicId // 注意:此字段可能返回 null,表示取不到有效值。 FailedMusicIds []*string `json:"FailedMusicIds,omitempty" name:"FailedMusicIds" list` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewTakeMusicOffShelvesResponse ¶
func NewTakeMusicOffShelvesResponse() (response *TakeMusicOffShelvesResponse)
func (*TakeMusicOffShelvesResponse) FromJsonString ¶
func (r *TakeMusicOffShelvesResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*TakeMusicOffShelvesResponse) ToJsonString ¶
func (r *TakeMusicOffShelvesResponse) ToJsonString() string