Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要 JavaScript API 中当前登录的 Spotify 用户的国家/地区代码,以便按照 Spotify 指南的要求,不显示在他的国家/地区不可用的专辑。我知道用户对应用程序保持匿名。这也适用于他的国家代码吗?
回答我的问题:
sp = getSpotifyApi(1) models = sp.require('sp://import/scripts/api/models') models.session.country