musicbrainz-api icon indicating copy to clipboard operation
musicbrainz-api copied to clipboard

README examples not up to date

Open richsoni opened this issue 2 years ago • 2 comments

I was having trouble getting the examples to work in the README, but after digging into the source code I figured out they were using an old version of the library:

For example:

  const artist = await mbApi.lookupEntity('artist', {query: 'ab2528d9-719f-4261-8098-21849222a0f2'});

Should be:

  const artist = await mbApi.lookupEntity('artist', 'ab2528d9-719f-4261-8098-21849222a0f2');

richsoni avatar Aug 30 '22 20:08 richsoni

Hi @richsoni

thank you for reporting. I've created a Pull request to update/fix the examples.

Haschikeks avatar Aug 31 '22 10:08 Haschikeks

thanks!!!

richsoni avatar Aug 31 '22 11:08 richsoni