Skip to content
This repository has been archived by the owner on Aug 6, 2018. It is now read-only.
Burgestrand edited this page Dec 1, 2012 · 31 revisions

How to run the examples

Hallon’s examples are pieces of code that connect to Spotify and do something interesting. My goal with them is to provide interactive examples of how the API might be used. To run them, you’ll need:

  • libspotify installed
  • a spotify premium user
  • a spotify application key (you want the binary application key for Hallon), place it in the directory you’ll be running the Hallon examples from

Before you run the examples, you’ll need to make sure you install the required gem dependencies. Hallon includes a Gemfile in the repository, which Bundler can use to install the dependencies for you:

gem install bundler
bundle install

To run the examples all you do is run them with ruby (through bundler, to ensure the correct dependencies):

bundle exec ruby examples/show_published_playlists_of_user.rb

If the examples require additional information from you they’ll tell you. Please make sure you read the messages from Hallon if you are having troubles.