Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • SpotifyConfig

Index

Properties

Optional acccessToken

acccessToken?: string
deprecated

Renamed to accessToken because of a typo. Will be removed in the next major version.

Optional accessToken

accessToken?: string

Optional clientCredentials

clientCredentials?: { clientId?: string; clientSecret?: string }

Type declaration

  • Optional clientId?: string
  • Optional clientSecret?: string

Optional http

http?: { localAddress?: string; proxy?: AxiosProxyConfig; userAgent?: string }

HTTP options.

Type declaration

  • Optional localAddress?: string

    Change the default outbind IP (can be IPV6 or IPV4).

  • Optional proxy?: AxiosProxyConfig

    HTTP proxy config.

  • Optional userAgent?: string

    Set a custom user agent. Default: "spotify.js/ https://github.com/statsfm/spotify.js".

Optional logRetry

logRetry?: boolean

Log retries.

Optional refreshToken

refreshToken?: string

Optional retry

retry?: boolean

Retry request when ratelimit is hit.

Optional retry5xx

retry5xx?: boolean

Retry request if the response code is in the 500 range. Default: true

Optional retry5xxAmount

retry5xxAmount?: number

Amount of retries. Default: 3

Generated using TypeDoc