var Spotify = require('spotify-web');
{ [Function: Spotify]
gid2id: [Function],
id2uri: [Function],
uri2id: [Function],
gid2uri: [Function],
uriType: [Function],
login: [Function],
super_: [Function: EventEmitter] }
var spot = new Spotify(USERNAME, PASSWORD)
{ domain: null,
_events:
{ connect: { [Function: g] listener: [Function] },
message: [Function] },
_maxListeners: 10,
seq: 0,
heartbeatInterval: 180000,
agent:
{ jar:
{ setCookie: [Function: setCookie],
getCookie: [Function: getCookie],
getCookies: [Function: getCookies] } },
connected: false,
_callbacks: {},
authServer: 'play.spotify.com',
authUrl: '/xhr/json/auth.php',
secretUrl: '/redirect/facebook/notification.php',
userAgent: 'node-spotify-web (Chrome/13.37 compatible-ish)',
secretPayload:
{ album: 'http://open.spotify.com/album/2mCuMNdJkoyiXFhsQCLLqw',
song: 'http://open.spotify.com/track/6JEK0CvvjDjjMUBFoXShNZ' },
sourceUrl: 'https://d3rt1990lpmkn.cloudfront.net',
sourceUrls:
{ tiny: 'https://d3rt1990lpmkn.cloudfront.net/60/',
small: 'https://d3rt1990lpmkn.cloudfront.net/120/',
normal: 'https://d3rt1990lpmkn.cloudfront.net/300/',
large: 'https://d3rt1990lpmkn.cloudfront.net/640/',
avatar: 'https://d3rt1990lpmkn.cloudfront.net/artist_image/',
DEFAULT: 'https://d3rt1990lpmkn.cloudfront.net/300/',
SMALL: 'https://d3rt1990lpmkn.cloudfront.net/60/',
LARGE: 'https://d3rt1990lpmkn.cloudfront.net/640/',
XLARGE: 'https://d3rt1990lpmkn.cloudfront.net/artist_image/' },
_onopen: [Function],
_onclose: [Function],
_onmessage: [Function],
_context: { reply: [Function] },
_defaultCallback: [Function] }
{ login: [Function],
_onsecret: [Function],
_onauth: [Function],
_openWebsocket: [Function],
_onopen: [Function],
_onclose: [Function],
_onmessage: [Function],
_onmessagecommand: [Function],
_onworkdone: [Function],
sendCommand: [Function],
connect: [Function],
disconnect: [Function],
metadata: [Function],
get: [Function],
playlist: [Function],
rootlist: [Function],
trackUri: [Function],
isTrackAvailable: [Function],
recurseAlternatives: [Function],
search: [Function],
sendTrackEnd: [Function],
sendTrackEvent: [Function],
sendTrackProgress: [Function],
_onconnect: [Function],
_onuserinfo: [Function],
_startHeartbeat: [Function],
_onheartbeat: [Function],
_reply: [Function],
_defaultCallback: [Function],
_parse: [Function] }