I’m trying to get access to the user-genres via the API with .Net, the authorization keeps failing. Can anyone help? The snippet of the code is:-
HttpWebRequest req = DirectCast(WebRequest.Create(“https:musicbrainz/ws/2/recording/ef2ca8c7-ba44-427b-92d9-82161428d24e?inc=genres+user-genres”, HttpWebRequest);
req.Method = “GET”;
req.UserAgent = AppNameVersion;
req.Credentials = New NetworkCredential(Base64Encode(username), Base64Encode(pw))
//Make the call.
response = DirectCast(req.GetResponse(), HttpWebResponse);
It is only when I add the “+user-genres” it fails (error 401).
I have tried with and without Base64 encoding, and the nominal “http://musicbrainz.org”, with Basic and Digest modes…
Any pointers appreciated.
Thanks in advance