[mb-devel] C# Very basic newbie question

Robert Kaye rob at eorbit.net
Sat Jan 6 01:49:15 UTC 2007


On Jan 5, 2007, at 3:43 AM, Catherine wrote:
> I am completely new to MusicBrainz and am trying to write a simple  
> metadata-retrieval app in C#. I have downloaded the C# bindings  
> from the site, but am having difficulty getting the getalbum  
> example to work.
My previous post didn't do much to answer your question, so I'll try  
an rectify this now.

Thew new web service has no C# bindings, as I mentioned before. So  
your options are:

1. Use the python client library we provide ( http:// 
wiki.musicbrainz.org/PythonMusicBrainz2 )
2. Write your own bindings for C#.
3. Use raw XML over HTTP. To retrieve a CD based on its discid,  
retrieve this URL:

http://musicbrainz.org/ws/1/release/?type=xml&discid=<discid>

e.g.:

http://musicbrainz.org/ws/1/release/? 
type=xml&discid=MuVbTzgHdZgTrn1250GddFOAsfI-

Then parse the XML and consume the data appropriately.


Ideally would be if you could use python. Next I would choose to go  
with #3.

Finally, for generating discids from actual CDs you can use the  
existing C# bindings. The discids have not changed when we moved from  
the RDF web service to the XML web service, so you can generate a  
discid with C#, construct the URL, retrieve data from that URL. parse  
and consume.

--

--ruaok      Somewhere in Texas a village is *still* missing its idiot.

Robert Kaye     --     rob at eorbit.net     --    http://mayhem-chaos.net


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.musicbrainz.org/pipermail/musicbrainz-devel/attachments/20070105/ac142e97/attachment.htm


More information about the MusicBrainz-devel mailing list