This tutorial app uses an old version of the Spotify Apps API. You can find an updated tutorial app checking out the 1.0 branch, and an upgrade guide to move to the most recent API. Master branch will contain version 1.0 in the nearly future.
This is a Spotify App that explains shows useful code snippets that can help you make a Spotify Apps. It uses version 0.x of the Spotify Apps API.
If you want to have a look at the tutorial that uses version 1.x of the Spotify Apps API, check the 1.0 branch.
- Sign up for a developer account on Spotify by logging in and agreeing to the terms of use.
- Create the Spotify folder if it doesn't exist already:
~/Spotify
(Mac OS X and Linux) orMy Documents\Spotify
(Windows). - Open the Spotify folder.
- Run
git clone git://github.com/spotify/apps-tutorial.git api-tutorial
. - Download the latest version of Spotify.
- Open Spotify and type "spotify:app:api-tutorial" in the search bar (restart Spotify completely in case it doesn't find the App at first).
- API Reference
- Integration Guidelines
- Spotify-tagged questions on StackOverflow
- @SpotifyPlatform on Twitter
Your feedback is welcome! Feel free to create issues and send pull requests.
- Creating your manifest file
- Handling arguments and creating navigational tabs
- Dragging and dropping content into an app
- Show "Share" popup
- Using standard components for buttons
- Showing a list of tracks
- Play a single song
- Play a list of songs
- Get the currently playing track
- Create a play/pause button with an HTML element
- Skip to the next or previous track
- Star and unstar a track
- Get a user's top tracks
- Returning all tracks with a given search query
- Search albums for an artist
- Add a song to a playlist
- Get songs from a playlist URL
- Subscribe to a playlist
- Showing a playlist mosaic image
- Authenticate a user with Facebook
- Get a user's listening history from Facebook
- Talking to Twitter
- Create an EchoNest radio station
- Display a Polymaps object