0.01
No commit activity in last 3 years
No release in over 3 years
A ruby wrapper for the Pandora Tuner JSON API
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 1.2.1
~> 0.8
~> 1.5.2
 Project Readme

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.login_user(john_email, john_password)   # Returns a Pandora::User
john.stations

jane = partner.login_user(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.