Spotify API - Location

别说谁变了你拦得住时间么 提交于 2019-12-08 09:23:37

问题


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.



来源:https://stackoverflow.com/questions/18606677/spotify-api-location

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!