Code Monkey home page Code Monkey logo

spotify-swift-demo's Introduction

spotify-swift-demo

Interact with the Spotify Web API in Swift

This app uses the Spotify Connect Web API to show the currently playing track for a logged in user and give playback controls.

Requirements

Authorization

This demo uses SpotifyLogin for authentication and authorization. This library is intended for prototyping purposes only and should not be used in production apps.

Getting Started

First, fork and clone this project to your machine.

In the Spotify Dashboard:

  1. Register an app on the Spotify for Developers Dashboard.
  2. In the settings of your app, enter your iOS app's bundle ID and redirect URI (ie. com.yourdomain.awesome-spotify-app://)

In the iOS App:

  1. Run pod repo update and pod install in the Terminal.
  2. In the AppDelegate, look for the call to SpotifyLogin.shared.configure(). Replace the placeholders with your client ID, secret, and redirect URI.

Challenges

  1. Your top tracks are shown on the page. Show your top artists instead. (See showTop())
  2. Add a pause button and a play button. The functions are already implemented in the SpotifyDataController. (See previous() and next())
  3. Show the title and artist of the current track. (See updateCurrentlyPlaying())
  4. The top tracks endpoint allows you to choose out of 3 different time ranges, short_term, medium_term (default), and long_term. Show your long term top tracks. (See getMyTop() in SpotifyDataController)
  5. Use one of the other functions from SpotifyDataController to show data in your app.
  6. Implement another endpoint from the Spotify API.

spotify-swift-demo's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.