Spotify API - Location

2019-06-14 13:30发布

问题:

I am trying to use "api/location" as stated in the documentation but for some reason that's always failing with error code 0, type transient, which is not really helpful. Any ideas.

var loc = location.query();  

loc.load(['latitude']).done(function(loc) {
    console.log("Lat:" + loc.latitude); 
}).fail(function(track, error){
  console.log(error); 
});  

Also, it would help if anyone can explain how the location is retrieved.

回答1:

According to the answer on this question: https://stackoverflow.com/a/20196967/1036087 the location API never actually worked and they're going to remove the documentation on it.



标签: spotify