问题标签 [spotify-app]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
ios - 适用于 iOS 的 Spotify SDK,如何清除 playerQueue
我是 Spotify SDK 的新手。
我刚刚实现auth
,login
并获得了一些轨道 URI。这样可行。但是我找不到重置或清除当前正在播放的音乐队列。
我认为[SPTAudioStreamingController queueURIs: clearQueue: callback:];
是我需要的。
然而,在我使用 SDK beta6 和 iOS8 的环境中,它只是将曲目添加到队列的末尾,而不会清除当前队列。
我错过了什么吗?
php - 如何在不要求用户登录的情况下获取 Spotify api 访问令牌?
用 PHP 编码,我尝试初始化 Spotify API,不使用重定向 uri,只使用 client_id 和 client_secret。我尝试下面的代码:从响应 url 中提取令牌 - Spotify API ,但我得到一个 NULL 结果
我想知道是否可以在不要求用户登录的情况下访问令牌(参见https://developer.spotify.com/web-api/authorization-guide/#authorization-code-flow)
ios - Spotify API getting starred list not authorized
I'm using the Spotify iOS SDK and trying to get use this function starredListForUserInSession:callback:
to find a user's starred list once they have logged in.
The actual logging in of the user is working correctly, as I am able to stream Spotify tracks and a valid SPTSession is returned. I am including both the streaming and the playlist reading scopes as seen below:
#xA;However, when I use the function:
#xA;I consistently receive the following error:
"The operation couldn’t be completed. (NSURLErrorDomain error -1012.)" UserInfo=0x7a8cbf50 {NSErrorFailingURLKey=https://api.spotify.com/v1/users/(null)/starred, NSErrorFailingURLStringKey=https://api.spotify.com/v1/users/(null)/starred, NSUnderlyingError=0x7a6d5b60 "The operation couldn’t be completed. (kCFErrorDomainCFNetwork error -1012.)"
When I looked this up, it said that it means this request requires authentication, though the user has already been authenticated with the presumably correct scope. What am I missing?
ios - 从 NSURL 获取 SPTImage?
我正在使用 Spotify 的新 iOS SDK 测试版,想知道是否有办法SPTImage
从 NSURL 中检索一个(最初是从SPTPartialAlbum.covers
属性中提取的,或者检索它的唯一方法是获取第SPTPartialAlbum
一个?
spotify - 是否可以使用 Spotify API 播放整首歌曲?
我知道可以使用 Spotify API 访问用户的歌曲,但是是否可以使用 API 自动播放给定的歌曲(即是否有某种方法(如“播放”)自动在用户的设备上播放歌曲给定您已经检索到的歌曲名称?)。谢谢!
google-chrome - 带有 Spotify 的 launchWebAuthFlow 返回“无法加载授权页面”
我在 Spotify 上注册了我的应用程序。我确保已将 URI 添加到我注册的应用程序中。但是每次我运行这段代码时,我都会遇到同样的错误。我也在后台运行它,所以我知道不是这样。我究竟做错了什么?
我也尝试/spotify
用/provider_cb
.
这是我的权限:
在重新启动 Chrome 后第一次运行我的应用程序时,会弹出登录页面,好像一切都很好,但在我登录后我仍然收到相同的错误:
spotify - 我是否违反了 Spotify 使用条款?
我已经在 Spotify 论坛上问过这个问题,但版主建议我在这里问,所以这就是我正在做的。我知道你们自己不是来自 Spotify,但你们都在使用 API,所以我想你们可以帮助我。
我目前正在构建自己的网站(非商业),我想在其上使用部分 Spotify API,具体来说,我想显示一些我想从 API 中提取的专辑封面。我很确定只要我没有商业网站,这是允许的,但我必须在任何地方归功于 Spotify 或 Spotify API 吗?我不想冒险打官司。提前致谢!
javascript - 如何在客户端添加对 ECMA Script 6 承诺的支持?
我需要在客户端的 Web 应用程序中支持 ECMA 脚本 6 承诺。我正在使用 Spotify Web API,它看起来像这样
我知道我可以将这些转换为回调以实现向后兼容性,但这会做很多工作,而且代码看起来也不那么干净。
spotify - Spotify 应用程序仍然可用?
Spotify 窗台是否支持应用内应用程序?我看到了其中的几个,但今天找不到任何示例/文档?
Spotify 真的停止了在 Spotify 应用程序中运行的应用程序吗?
spotify - 我在哪里保留 Spotify 访问令牌?
所以我的所有身份验证都在我的 MVC 网站上工作,但我想问:在我的应用程序中传递访问令牌的推荐方法是什么?
因此,我单击登录,弹出一个对话框并登录。我的父窗口接收访问令牌,我得到一些播放列表。但是如果我转到另一个页面,那将是一个全新的请求呢?我是在查询字符串中传递它,还是在会话中传递它,或者可能是一个 cookie?我已经为此搜索了 API 文档,但找不到任何关于它的信息。