New Category Endpoints & Track Relinking
Posted February 27th, 2015
In the past month we’ve been making further improvements to our Web API and our mobile SDKs. We have a new guide covering authorization options for the Android SDK, three new Web API endpoints, a modification that allows tracks to be linked to alternatives according to the users market, and several other updates. Let’s take a look…
New Android SDK Authentication Guide
Our new guide for the Android SDK takes a look at two different ways of authenticating a user and getting permission to access user data. The guide includes code samples for logging in and logging out from the Spotify Accounts Service from both a native WebView and from a separate browser window.
- Read more in our new Android SDK Authentication Guide
New Web API Category Endpoints
Many of Spotify’s own curated playlists, such as those showing on a Spotify player’s “Browse” tab, are grouped by categories like “toplists”, “workout” and “party”. Now we have added a set of Web API endpoints that make it easy to work with these categories:
You can narrow the list of categories to just those that are relevant to a particular country and locale. Up to 50 playlists can be retrieved for each category at a time.
Track Relinking in the Web API
Often Spotify has several instances of a track in its catalogue. This commonly happens when an album has been released under different licenses in different markets. Now we’ve added a new “market” parameter to our Web API’s track endpoints so that you can get information about tracks playable in the specified location. When you supply the new, optional market parameter, the Web API will return data about a playable track (if any) linked from the original.
- Read more in our new Track Relinking Guide
To round out our set of Web API Follow endpoints, we have added a new endpoint that allows you to Check if Users Follow a Playlist.
And to help you further personalize your user’s experience, we have added a new field to the Get Current User’s Profile endpoint that makes it possible to retrieve the user’s birthdate – after, of course, getting their permission through the new “user-read-birthdate” scope.
Our Developer Showcase features several new apps this month, including the Shazam app for iOS and Android, which uses our SDKs and our Web API to let you save Shazamed songs to your personal Spotify playlist and play full tracks in app.
Finally, we’ve found this excellent iOS Swift Tutorial by Brian Advent who takes you through the creation of a streaming app using the Spotify iOS SDK. It is well worth watching as Brian discusses several important topics, and it works well together with our own iOS tutorial.