Skip to content
This repository was archived by the owner on Jul 17, 2018. It is now read-only.

spotify/apps-tutorial

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spotify Apps API Tutorial

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.

Spotify Apps Tutorial home screen

Installation

  1. Sign up for a developer account on Spotify by logging in and agreeing to the terms of use.
  2. Create the Spotify folder if it doesn't exist already: ~/Spotify (Mac OS X and Linux) or My Documents\Spotify (Windows).
  3. Open the Spotify folder.
  4. Run git clone git://github.com/spotify/apps-tutorial.git api-tutorial.
  5. Download the latest version of Spotify.
  6. 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).

More information

Your feedback is welcome! Feel free to create issues and send pull requests.

Topics covered

Getting started

  • Creating your manifest file
  • Handling arguments and creating navigational tabs
  • Dragging and dropping content into an app
  • Show "Share" popup

UI

  • Using standard components for buttons
  • Showing a list of tracks

Playing music

  • 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

Searching

  • Returning all tracks with a given search query
  • Search albums for an artist

Playlists

  • Add a song to a playlist
  • Get songs from a playlist URL
  • Subscribe to a playlist
  • Showing a playlist mosaic image

Interacting with Facebook

  • Authenticate a user with Facebook
  • Get a user's listening history from Facebook

Experimental & Unsupported

  • Talking to Twitter
  • Create an EchoNest radio station
  • Display a Polymaps object

About

A Spotify App that contains working examples of the use of Spotify Apps API

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 5