Open sensodejay opened 7 years ago
+1
thanks!
When I upgrade this to the new version of Angular I'll change the authentication or all endpoints.
That's great Eduardo! Thank you :D
In order to e.g. authenticate the getAlbum API call, just add
headers: this.getHeaders(),
to
getAlbum(album: string) {
album = this.getIdFromUri(album);
return this.api({
method: 'get',
>>> headers: this.getHeaders(),
url: `/albums/${album}`
}).map(res => res.json());
}
On 29th May 2017 the /search /tracks /albums /artists and /users (and related) endpoints will start requiring an access token, bringing them in-line with all other Web API endpoints.
https://developer.spotify.com/news-stories/2017/01/27/removing-unauthenticated-calls-to-the-web-api/