Re: Services_MusicBrainz Package: Request for contributors

From: Date: Fri, 21 Apr 2006 09:35:16 +0000
Subject: Re: Services_MusicBrainz Package: Request for contributors
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-42306@lists.php.net to get a copy of this message
I was contemplating an AudioScrobbler service but i havent had any stability atm to get the time and I dont have a proper server to even run my example code. I would however suggest that both could be integrated i guess using factory drivers as its pretty much the same it seems. I was suggested by somebody to also load versioned factory drivers for version changes in their webservice, as especially with the audioscrobbler service it could change. you may want to check these early stages http://www.electroteque.org/pear/Services_AudioScrobbler/ http://www.electroteque.org/pear/Services_AudioScrobbler/index.phps http://www.electroteque.org/pear/Services_AudioScrobbler/AudioScrobbler.phps I dont know how the yahoo service works, but i thought a query/command/parameter style to the REST service was valid here but it could be changed. On 17/04/2006, at 3:26 AM, Jacob Singh wrote:
Hello, I'm a developer with http://calabashmusic.com. We want to create a web service client for MusicBrainz to-be released web service. (http://wiki.musicbrainz.org/XMLWebService). It uses a REST interface and lends itself to the pattern used by Martin Jansen's Yahoo service because it returns various types of content. The interesting part is that these content types (artists, releases, tracks, etc) are inter connected. So the process would be something like: $artistReq=& Services_MusicBrainz::factory("artist"); $artistReq->name = "beatles"; $artists = $artistReq->send(); /** * $artists is now an iterator object which will iterate through objects translated from MB's schema. * Each result has a score for testing match to artist name, or whatever criteria is used **/ foreach($artists as $artist) { if($artist->score > 90) {
     $releaseReq = & Services_MusicBrainz::factory("release");
     $releaseReq->releasetype = "Compilation";
     $releaseReq->artistid = $artist->id;
      $albums =       $releaseReq->send();
     echo $albums[0]->title //Past Masters, Volume One, see (http://musicbrainz.org/ws/1/artist/b10bbbfc-cf9e-42e0-be17-e2c3e1d2600d?type=xml&inc=sa-Album)
} } But all of this is just a guess... This is my first attempt at contributing to PEAR and if I could find angels to help me with the following, I'd by mighty obliged: 1. People interested in coding this. 2. People interested in writing tests for it. 3. People willing to help with docs. Thanks, Jacob P.S. Bounty for major contributors! Free downloads at http://calabashmusic.com! --PEAR Development Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.pear.dev (#42306) next »