【发布时间】:2017-11-21 16:31:31
【问题描述】:
我正在尝试集成 Web API 以获取当前播放/最近播放的歌曲。但是,我无法生成具有范围(用户读取当前播放、用户读取播放状态)的令牌。
我按照这个链接作为 Spotify 的参考。 https://developer.spotify.com/web-api/authorization-guide/
1 https://accounts.spotify.com/authorize/?client_id=[CLIENT_ID]&response_type=code&redirect_uri=https%3A%2F%2Fexample.com%2Fcallback&scope=user-read-currently-playing%20user-read-playback-state&state=34fFs29kd09
我收到以下 HTML 响应。
<html ng-app="accounts" ng-csp="">
<head>
<meta charset="utf-8">
<title ng-bind="(title && (title | localize) + ' - ') + 'Spotify'">Spotify</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<base href="/">
<link href="https://d2d1dxiu3v1f2i.clou..." media="screen" rel="stylesheet">
<script async="" defer="" src="https://d2d1dxiu3v1f2i.clou..." sp-bootstrap=""></script>
<meta ng-non-bindable="" sp-bootstrap-data="">
</head>
<body ng-view=""></body>
</html>
请帮忙。 谢谢
【问题讨论】:
-
它是否返回 HTTP 状态码?