acoustid / chromaprint

C library for generating audio fingerprints used by AcoustID
Other
972 stars 133 forks source link

API key not working #11

Closed lucas42 closed 13 years ago

lucas42 commented 13 years ago

Accessing the API using the key shown on http://acoustid.org/api-key returns an error {"status": "error", "error": {"message": "invalid API key", "code": 4}} Using the example API key shown in the documentation works fine.

I've tried generating a new key, but that didn't work either.

lalinsky commented 13 years ago

This is a little confusing, but there are two kinds of API keys. The client parameter should contain an application API key and the user parameter an user API key. You can get an application API key here http://acoustid.org/new-application

lucas42 commented 13 years ago

Thanks for that, I've set up an application key and it works great, Cheers.

loretoparisi commented 6 years ago

@lalinsky just to be clear:

acoustid("./data/B00IMFOVEG.mp3",
    {
        key: "yyyyy",
        meta: {
            client: "xxxxx"
        }, 
        fpcalc: {
            command: './bin/darwin/fpcalc'
        }
    }, function (err, results) {
        if (err) throw err;
        console.log(results);
    });

In my case this works for me with or without the meta. Also I don't see any user key.