Getting 401, 403 over a simple API call with AngularJS on a localhost

I have an account on Napster developers. And, I made an app, and I got an api key. According to Napster documents Here is what I send as a GET request over UPC.

function getByUpc() {
    console.log("getByUpc is called ...");
    return $http({
        method: 'GET',
        url: '',
        headers: {
            'Authorization': 'BASIC my-apikey'
    }).then(handleSuccess, handleError('Error getting user by id'))

I changed BASIC to Bearer, but I also get a same result (401 error).
Also, I tried to put apikey as a query string but I get 403 error.
Any suggestion? 

Source: AngularJS