track.getRandom

Description: 

Returns a random track


Authentication : NOT REQUIRED
Parameters: 
apikey : application developer identifier [R]
country : catalogue country
format : output format

Return values: 

A track entity.


Sample call
http://api.playme.com/track.getRandom
HTTP Method call: 
GET


Sample Result: XML
<?xml version="1.0" encoding="UTF-8"?>
<response>

  <track>
    <trackCode>1446584</trackCode>
    <name><![CDATA[Ramblin' Man (Single Version)]]></name>
    <url><![CDATA[track_page_url]]></url>
    <downloadUrl><![CDATA[download_url]]></downloadUrl>
    <previewUrl><![CDATA[preview_url]]></previewUrl>
    <embeddedPlayer><![CDATA[Play.me player HTML object code]]></embeddedPlayer>
    <duration>181</duration>
    <publicationYear>2005</publicationYear>
    <artist>
      <artistCode>4544</artistCode>
      <name><![CDATA[Hank Williams]]></name>
    </artist>
    <album>
      <albumCode>1446572</albumCode>
      <name><![CDATA[Turn Back The Years - The Essential Hank Williams Collection]]></name>
    </album>
    <images>
      <img_256><![CDATA[image_url]]></img_256>
      <img_96><![CDATA[image_url]]></img_96>
      <img_64><![CDATA[image_url]]></img_64>
      <img_32><![CDATA[image_url]]></img_32>
    </images>
    <genre>
      <genreCode>121</genreCode>
      <name><![CDATA[Country]]></name>
    </genre>
  </track>

</response>

Sample Result: JSON
{
  "response": {
    "track": {
      "trackCode": "2788889",
      "name": "There's A Hole In My Bucket",
      "url": "track_page_url",
      "downloadUrl": "download_url",
      "previewUrl": "preview_url",
      "embeddedPlayer" : Play.me player HTML object code,
      "duration": "150",
      "publicationYear": "2008",
      "artist": {
        "artistCode": "57037",
        "name": "The Birthday Bunch"
      },
      "album": {
        "albumCode": "2788865",
        "name": "Happy Birthday Sarah"
      },
      "images": {
        "img_256": "image_url",
        "img_96": "image_url",
        "img_64": "image_url",
        "img_32": "image_url"
      },
      "genre": {
        "genreCode": "10025",
        "name": "Other"
      }
    }
  }
}