Anesidora
A really simple wrapper around the Pandora JSON API.
Installation
npm install --save anesidora
Usage
var Anesidora = ; var pandora = "email" "password"; pandora;
Documentation
See here for API documentation. Authentication, encryption, and TLS are all handled automatically. All you need is an email and a password, and you're good to go.
Handy links:
var pandora = new Anesidora(email, password, [config])
Create a new Anesidora instance for making requests.
No authentication is done until pandora.login
is called.
config
(Optional) A custom partner config.
pandora.login(callback)
Authenticate with Pandora.
callback - function(err)
Do all requests inside this callback.
pandora.request(method, [data], callback)
Make a Pandora API call.
method
A Pandora API call method, such as station.getPlaylist
.
data
(Optional) Data for the API call, if necessary.
callback - function(err, result)
result
is the value returned from Pandora. Refer to the individual method docs for more information.