POST api/Relax/CollectMusic

收藏音乐接口

Request Information

URI Parameters

None.

Body Parameters

CollectMusicReq
NameDescriptionTypeAdditional information
uid

string

None.

moduleId

integer

None.

musicId

integer

None.

secret

同之前的,产品id为97

string

None.

pid

integer

None.

version

string

None.

language

zn-ch中文,en英文

string

None.

system

string

None.

token

string

None.

timeZone

string

None.

Request Formats

application/json, text/json

Sample:
{
  "uid": "sample string 1",
  "moduleId": 2,
  "musicId": 3,
  "secret": "sample string 4",
  "pid": 5,
  "version": "sample string 6",
  "language": "sample string 7",
  "system": "sample string 8",
  "token": "sample string 9",
  "timeZone": "sample string 10"
}

application/xml, text/xml

Sample:
<CollectMusicReq xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Controllers">
  <language xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">sample string 7</language>
  <pid xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">5</pid>
  <system xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">sample string 8</system>
  <timeZone xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">sample string 10</timeZone>
  <token xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">sample string 9</token>
  <version xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">sample string 6</version>
  <moduleId>2</moduleId>
  <musicId>3</musicId>
  <secret>sample string 4</secret>
  <uid>sample string 1</uid>
</CollectMusicReq>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

CollectMusicRes
NameDescriptionTypeAdditional information
isCollect

请求后用户是否收藏

integer

None.

State

integer

None.

Message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "isCollect": 1,
  "State": 2,
  "Message": "sample string 3"
}

application/xml, text/xml

Sample:
<CollectMusicRes xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Controllers">
  <Message xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">sample string 3</Message>
  <State xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">2</State>
  <isCollect>1</isCollect>
</CollectMusicRes>