Skip to content

Latest commit

 

History

History
17 lines (8 loc) · 1.34 KB

README.md

File metadata and controls

17 lines (8 loc) · 1.34 KB

Spotify iOS SDK Sample Projects

There are 3 sample projects included to show you different ways to interact with the Spotify iOS SDK. There is also an included ruby script to run a local server for OAuth token swaps and refreshes.

NowPlayingView

This Swift project focuses on how to interact with the Spotify client to control playback, subscribe to player state changes, fetch content, and more. This project does not require you to have a server for token swaps so you can ignore the provided ruby script. You will have to run this project on a real device as it requires the Spotify iOS app to be installed.

SPTLoginSampleAppObjc

This Objective-C project focuses solely on the authentication part of the SDK. If you are looking to use the Web API this will show you how to request different scopes and get access tokens. You will need to have a server running for this sample to work so you will likely want to use the provided ruby script.

SPTLoginSampleAppSwift

This Swift project shows you how to use both the authentication and remote control parts of the SDK together. This is valuable if you want to be able to control playback but also need additional scopes for the Web API. You will have to run this project on a real device as it requires the Spotify iOS app be installed. You will also need a server to perform the token swap operation.