new CategoryManager( Spotify )

Description

Manages spotify categories.

Parameters
Name Type Description
Spotify Spotify

The spotify client.

Members


spotify :Spotify

Description

The spotify client.

Details

Methods


get( id, country [, locale ] ) → {Promise.<(Category|HTTPError|ApiError)>}

Description

Get a single category used to tag items in Spotify.

Parameters
Name Type Attributes Description
id string

The Spotify category ID for the category.

country string

An ISO 3166-1 alpha-2 country code.

locale string <optional>

The desired language, consisting of an ISO 639-1 language code and an ISO 3166-1 alpha-2 country code, joined by an underscore. For example: es_MX.

Returns

all( options ) → {Promise.<(Array.<Category>|HTTPError|ApiError)>}

Description

Get a list of categories used to tag items in Spotify.

Parameters
Name Type Description
options CategoryOptions
Returns