Pandora API Ruby Client

A Ruby wrapper for the Pandora Tuner JSON API.

Usage

require 'pandora'

partner = Pandora::Partner.new(username, password, device, encryption_key, decryption_key)

john = partner.(john_email, john_password)   # Returns a Pandora::User
john.stations

jane = partner.(jane_email, jane_pasword)
jane.stations

Pandora::Partner and Pandora::User objects can be marshalled via Ruby's Marshal. In a web application this can be useful to avoid re-authenticating on every request---just marshal the appropriate object to the user session or temporary storage. Note that the marshalled data may contain sensitive passwords or tokens.

Contributing

Patches and bug reports are welcome. Just send a pull request or file an issue. Project changelog.