pandora-api

1.0.3

Client

Represents the Pandora "client" and gives a reference to the user for all classes.

new Client()

Extends EventEmitter

Instance Members
rest
user
login(username, password)

Client#ready

Emitted when the client successfully logs in to the Pandora API.

Client#ready

Client#debug

Emitted for debug information, especially on API requests.

Client#debug

Art

Art

Type: Object

Properties
url (String) : The URL for this art.
size (number) : The size in pixels of this art.

RESTManager

Handles all REST requests related to the API.

new RESTManager(client: Client)
Parameters
client (Client) The client that runs the REST manager.
Instance Members
cookies
url
user
request(endpoint, options)
request(endpoint, options)
getCookieString()
getCookieString()
setCookies(header)
getCSRFToken()
authLogin(username, password)
getStations(options)
playlistGetFragment(stationId, isStationStart, options)
forceActiveSession(options)

Song

Represents a Pandora Song.

new Song(client: Client, station: Station, raw: Object)
Parameters
client (Client) The client that initiated this song.
station (Station) The station that initiated this song.
raw (Object) The raw data from the API.
Instance Members
client
station
userSeed
genres
monthlyListening
listeningTimestamp
shareURL
seed
canStartFromTrack
sharingAllowed
buyingAllowed
tiredAllowed
skipWithoutLimit
skippingAllowed
feedbackAllowed
composerName
artistSeoToken
albumSeoToken
compilation
amazonURL
itunesURL
featured
bookmarked
adUrls
title
id
trackType
pandoraId
token
identity
length
rating
gain
detailURL
trackSeoToken
audioURL
rights
audioEncoding
audioToken
audioReciptURL
audioSkipURL
artist
album
trackKey

Station

Represents a Pandora Station.

new Station(client: Client, raw: Object)
Parameters
client (Client) The client that initiated this station.
raw (Object) The raw data from the API.
Instance Members
client
id
name
factoryId
pandoraId
art
created
lastPlayed
isNew
deletingAllowed
renamingAllowed
editingAllowed
seedingAllowed
shared
transformingAllowed
isOnDemandEditorial
advertiser
suffleAllowed
autoSharingAllowed
advertisingKey
artistMessages
thumbprint
shuffle
genres
genreSponsorship
adGenre
antiTarget
initialSeed
adkv
creatorUsername
artId
getSongList(isStationStart, options)

User

Represents the user that is logged in.

new User(client: Client, raw: Object)
Parameters
client (Client) The client that initiated this user.
raw (Object) The raw data from the API.
Instance Members
client
token
id
email
username
explicit
birthYear
zip
gender
minor
private
emailOptOut
allowComments
notifyOnComment
notifyOnFollower
recieveArtistEmails
recieveAudioPromos
isNew
config
adkv
activeVxRewards
listenerToken
highQuality
seenTutorial
smartConversionAdUrl
smartConversionTimeoutMillis
smartConversionDisabled
stationCount
webClientVersion
placeholderImageURL
autoplay
kruxToken
stations
getStations()
makeActive()