Sets
i> YouTube :- cookies.
ii> SoundCloud :- client ID.
iii> Spotify :- client ID, client secret, refresh token, market.
iv> Useragents :- array of string.
locally in memory.
Example :
play.setToken({ youtube : { cookie : "Your Cookies" }}) // YouTube Cookiesawait play.setToken({ spotify : { client_id: 'ID', client_secret: 'secret', refresh_token: 'token', market: 'US' }}) // Await this only when setting data for spotifyplay.setToken({ useragent: ['Your User-agent']}) // Use this to avoid 429 errors. Copy
play.setToken({ youtube : { cookie : "Your Cookies" }}) // YouTube Cookiesawait play.setToken({ spotify : { client_id: 'ID', client_secret: 'secret', refresh_token: 'token', market: 'US' }}) // Await this only when setting data for spotifyplay.setToken({ useragent: ['Your User-agent']}) // Use this to avoid 429 errors.
tokenOptions
Sets
i> YouTube :- cookies.
ii> SoundCloud :- client ID.
iii> Spotify :- client ID, client secret, refresh token, market.
iv> Useragents :- array of string.
locally in memory.
Example :