简体   繁体   English

无法再访问基本的Spotify API数据

[英]Can't access basic Spotify API data anymore

Just since a hour age I can't access anything on the spotify API anymore. 从一个小时的年龄开始,我再也无法访问Spotify API上的任何内容。 Simple request like: 简单的要求,例如:

https://api.spotify.com/v1/artists/7AGSJihqYPhYy5QzMcwcQT/albums https://api.spotify.com/v1/artists/7AGSJihqYPhYy5QzMcwcQT/albums

Do not work anymore. 不再工作了。 Even if I just place them in the URL in the browser. 即使我只是将它们放在浏览器的URL中。

Why can't I access basic information like this? 为什么我不能访问这样的基本信息? Even the Spotify API documentation example link doesnt allow access. 甚至Spotify API文档示例链接也不允许访问。

They all say Error 401 - No token provided. 他们都说错误401-没有提供令牌。

Why? 为什么? Do I need that token for non-user related information? 我需要该令牌来获取与用户无关的信息吗? I didn't need it until an hour ago... 直到一个小时前我才需要它...

This is the request I made, it worked before. 这是我之前提出的要求。 Could someone test it, like visiting the URL in browser? 有人可以测试它,例如在浏览器中访问URL吗?

reqwest({ url: 'https://api.spotify.com/v1/artists/7AGSJihqYPhYy5QzMcwcQT/albums', type: 'json', method: 'get', contentType: 'application/json', crossOrigin: true, error: function (err) { }, success: getTracks });

Thanks 谢谢

SOLVED: 解决了:

I'm just unlucky. 我真倒霉 Since exactly this day, May 29th 2017, EVERY request needs to be authorized. 从2017年5月29日这一天开始,每个请求都需要得到授权。 :( :(

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM