1.0.3
Represents the Pandora "client" and gives a reference to the user for all classes.
Extends EventEmitter
The REST manager for this client.
Type: RESTManager
Emitted when the client successfully logs in to the Pandora API.
Emitted for debug information, especially on API requests.
Type: Object
Handles all REST requests related to the API.
(Client)
The client that runs the REST manager.
Requests the API.
(string)
The endpoint you want to request for.
(Object
= {}
)
The Request options.
Name | Description |
---|---|
options.method string
(default 'post' )
|
The method you want the request to use. |
options.query Object
|
An object indicating the different queries. |
options.headers Object
|
An objects containing the headers you want to include. |
options.content Snekfetch.Data
|
The body of the request |
options.cookies boolean
(default true )
|
Whether or not to include cookies with the request. |
options.auth boolean
(default true )
|
Whether ot not to include the authToken if RESTManager#user is defined. |
options.raw boolean
(default false )
|
Set to true if you want to get the raw result from snekfetch, instead of attempting to parse it. |
Promise<Object>
:
The request response in JSON unless raw was defined.
Util
(any)
(any
= {}
)
Cookies
Methods
Forces this client-session to be the active listener.
(any
= {}
)
Represents a Pandora Song.
(Client)
The client that initiated this song.
(Station)
The station that initiated this song.
(Object)
The raw data from the API.
Whether or not this song allows starting the station from the track.
Type: boolean
Whether or not this song allows the user to say they're "tired of it".
Type: boolean
Whether or not this song allows skipping without limits.
Type: boolean
The URLs for the ads attributed to this song.
(string)
: The ad used if the user wants to gain more skips.
(string)
: The ad used if the user wants to gain more replays.
(string)
: The ad used if the user wants to skip using a thumbs down.
(string)
: The ad used for now playing songs.
(string)
: The nowplaying ad unit. (?)
(string)
: The nowplaying ad 'targeting'. (?)
(string)
: The "backstage" ad. (?)
(string)
: The "backstage" ad unit. (?)
(string)
: The "backstage" ad targeting. (?)
Represents a Pandora Station.
Whether or not the user is allowed to delete this station.
Type: boolean
Whether or not the user is allowed to rename this station.
Type: boolean
Whether or not the user is allowed to set the description of this station.
Type: boolean
Whether or not the user is allowed to add a seed to this station.
Type: boolean
Whether or nor the user is allowed to transform this station.
Type: boolean
Whether or not this station is on demand for editorials. (?)
Type: boolean
Whether or not the user is allowed to shuffle this station.
Type: boolean
Whether or not the user is allowed to automatically share this station. (?)
Type: boolean
Whether or not artist audio messages are enabled for this station.
Type: boolean
Represents the user that is logged in.
Whether or not the user recieves notifications on new comments.
Type: boolean
Whether or not the user recieves notifications on a new follower.
Type: boolean
Whether or not the user has promo emails enabled for artists.
Type: boolean
Whether or not the user will recieve audio promos for artists.
Type: boolean
This user's custom configuration.
(string)
: What type of branding to use for Pandora.
(number)
: How many skips the user gets per day.
(number)
: How many skips the user gets per station.
(number)
: How long it takes for the user to timeout when no activity is detected.
(Array<string>)
: Other options that may or may not be attributed to if the user is a Pandora Premium subscriber.
(number)
: Not exactly sure. I guess the amount of hours until you can't listen anymore per month?
Okay, now the variable names are just getting weird. I have no idea what this one does or means.
Type: Object
Whether or not this user uses high quality audio files or not.
Type: boolean
Assumingly, this indicates whether the user has seen the intro tutorial that Pandora provides.
Type: boolean
I have no idea what smart conversion is, but here's a timeout for it.
Type: number
Whether or not smart conversion is disabled.
Type: boolean
The placeholder image for this account, if the user does not have an avatar.
Type: string