POST api/FavoriteMedia?token={token}

Metoda przesyłająca informację o ocenie utworu muzycznego przez klienta

Request information

Parameters

NameDescriptionAdditional details
token Token urządzenia odtwarzającego
media Lista zawieracjąca nazwę pliku i jego ocenę

Define this parameter in the request body.

Request format

application/json, text/json

Example
[
  {
    "fileName": "sample string 1",
    "like": true
  },
  {
    "fileName": "sample string 1",
    "like": true
  },
  {
    "fileName": "sample string 1",
    "like": true
  }
]

text/html

Example
[{"fileName":"sample string 1","like":true},{"fileName":"sample string 1","like":true},{"fileName":"sample string 1","like":true}]

application/xml, text/xml

Example
<ArrayOfMediaFavorite xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Models">
  <MediaFavorite>
    <fileName>sample string 1</fileName>
    <like>true</like>
  </MediaFavorite>
  <MediaFavorite>
    <fileName>sample string 1</fileName>
    <like>true</like>
  </MediaFavorite>
  <MediaFavorite>
    <fileName>sample string 1</fileName>
    <like>true</like>
  </MediaFavorite>
</ArrayOfMediaFavorite>

application/x-www-form-urlencoded

Example

No exaples available

Reply information

Reply format

application/json, text/json

Example
{
  "Data": {
    "IsActive": true,
    "Message": "sample string 2"
  },
  "IsError": true,
  "Message": "sample string 2",
  "IsLastRecord": true
}

text/html

Example
{"Data":{"IsActive":true,"Message":"sample string 2"},"IsError":true,"Message":"sample string 2","IsLastRecord":true}

application/xml, text/xml

Example
<OperationResultOfDeviceResponsetEygfCMZ xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Result">
  <IsError>true</IsError>
  <IsLastRecord>true</IsLastRecord>
  <Message>sample string 2</Message>
</OperationResultOfDeviceResponsetEygfCMZ>