[mb-devel] C# Very basic newbie question

Catherine catherine at ripfactory.com
Mon Jan 8 09:58:09 UTC 2007


Thank you very much Robert and Lukas for your helpful replies. Much, much
clearer now I know for sure I shouldn't be using the old C# bindings; at
least I have an idea where to start! 

 

Many thanks.

  _____  

From: musicbrainz-devel-bounces at lists.musicbrainz.org
[mailto:musicbrainz-devel-bounces at lists.musicbrainz.org] On Behalf Of Robert
Kaye
Sent: 06 January 2007 01:49
To: MusicBrainz development list
Subject: Re: [mb-devel] C# Very basic newbie question

 

 

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
<http://musicbrainz.org/ws/1/release/?type=xml&discid=> &discid=<discid>

 

e.g.:

 

http://musicbrainz.org/ws/1/release/?type=xml
<http://musicbrainz.org/ws/1/release/?type=xml&discid=MuVbTzgHdZgTrn1250GddF
OAsfI-> &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/20070108/9e712581/attachment.htm


More information about the MusicBrainz-devel mailing list