/** * Not all systems can open a Spotify URI. This method returns a HTTP URL * that links to the current artist/track/album. * * Example: http://open.spotify.com/artist/0mXTJETA4XUa12MmmXxZJh * * @return string */ public function getURL() { return $this->spotifyBase . "track/" . parent::getID(); }
/** * Get just the id of the track. (last part of a spotify uri). * * @return string */ public function getID() { return parent::getID($this->uri); }