Discogs@Drew



Discogs' API simply asks that you tell them who (the name of your web app) and where (your URL) you are, like so:

   $userAgent = "DiscogsAtDrew/0.1 +https://tipple.drew.edu/discogs";
   $json = `curl https://api.discogs.com/releases/$releaseId --user-agent "$userAgent"`;

the $releaseId variable in the above example is basically the accession number, of the LP that you want to catalog, in Discogs' database.

the $json that is returned by curl contains all of the metadata, and more, that you'll need to catalog the LP

the trick is to get your hands on that $releaseId

Making extra-library collections discoverable via Locate.