Optional
acccessOptional
accessOptional
clientOptional
debugEnable debug mode.
Optional
httpHTTP options.
Optional
baseURL?: stringBase URL for the API. Default: "https://api.spotify.com".
Optional
headers?: Record<string, string>Set headers to be sent with every request.
Optional
localChange the default outbind IP (can be IPV6 or IPV4).
Optional
proxy?: AxiosProxyConfigHTTP proxy config.
Optional
userSet a custom user agent. Default: "spotify.js/
Optional
logLog retries.
Optional
refreshOptional
retryRetry request when ratelimit is hit.
Optional
retry5xxRetry request if the response code is in the 500 range. Default: true
Optional
retry5xxAmount of retries. Default: 3
Deprecated
Renamed to
accessToken
because of a typo. Will be removed in the next major version.