问题描述
首先,Spotify iOS SDK团队的工作做得很好-这是一个漫长的过程,要为具有同步意识的人们打造一个异步世界并不容易!:)
Firstly, nice job to the Spotify iOS SDK team -- it's come a long way and it's not easy to make an async world for the sync-minded masses! :)
我们有一个基本的查询使用问题,该问题可能在其他地方得到了回答,但是让开发人员明确该问题会有所帮助(此外,在新的iOS SDK中可能会使用一些新的查询范例).基本上,我们的应用程序嵌入了Spotify iOS SDK,使用户能够选择高级音频源:电台"和您的音乐"下的条目(播放列表",歌曲",专辑"和艺术家").
We have a basic query usage question that's probably answered elsewhere, but it'd be helpful to have a dev be clear on the issue (plus, there may be some new query paradigms in the new iOS SDK that could be used). Basically, our app embeds the Spotify iOS SDK, offering the ability for the user to choose high-level audio sources: "Stations" and the entries under "Your Music" ("Playlists", "Songs", "Albums", and "Artists").
因此,如果开发人员可以概述将从iOS SDK级别进行哪些查询(以及对上述各项进行哪些后续查询),将无穷无尽.如果事实证明最好通过Web API进行初始/根级别的查询,那么开发人员能否概述一下形成URL查询的官方/批准方法?
So, it'd be infinitely helpful if a dev could outline which queries would be made from the iOS SDK level (and which subsequent queries would be made for the items above). If it turns out that doing initial/root-level queries is best done via the web API, could a dev please outline the official/approved method for forming a URL query?
此外,是否有白皮书或正式的Spotify文档来对Spotify URI进行形式化?
Also, is there's a whitepaper or formal Spotify doc that formalizes Spotify URIs?
谢谢!德鲁声音频谱
推荐答案
在iOS SDK中,您需要的所有内容都在 SPTRequest
对象中.
In the iOS SDK, everything you need is in the SPTRequest
object.
-
playlistsForUserInSession:callback:
提供播放列表.
savedTracksForUserInSession:callback:
为您提供用户保存的歌曲.
savedTracksForUserInSession:callback:
gives you the user's saved songs.
要获取用户的专辑"和艺术家"列表,您可以从已保存的歌曲列表中自己获取该列表-没有API可以单独获取它们.
To get the user's "Albums" and "Artists" lists, you derive this yourself from the list of saved songs - there's no API to fetch them separately.
我们的SDK中没有广播电台.
Radio stations aren't available in our SDKs.
这篇关于在Spotify iOS SDK下进行引导-基本问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!