Home Reference Source Repository
import AlbumHandler from 'spotify-sdk/src/handlers/AlbumHandler.js'
public class | source

AlbumHandler

You can directly use instance of this class. albumHandler

Methods for retrieving information about one or more albums from the Spotify catalog.

See:

Method Summary

Public Methods
public

Convert a valid object to a Album entity

public

get(ids: String | Array, query: Object): Promise

Get a single/collection of album/s identified by its unique/list of Spotify ID.

public

Get a list of new album releases featured in Spotify.

public

search(name: String, query: Object): Promise

Get a collection of albums that match a keyword string.

Public Methods

public convert(item: Object): Object source

Convert a valid object to a Album entity

Params:

NameTypeAttributeDescription
item Object

Object to convert in entity

Return:

Object

Album

public get(ids: String | Array, query: Object): Promise source

Get a single/collection of album/s identified by its unique/list of Spotify ID.

Params:

NameTypeAttributeDescription
ids String | Array

Album id/ids to retrive

query Object
  • optional

Query parameters.

Return:

Promise

Album|albumsCollection

See:

public newReleases(query: Object): Promise source

Get a list of new album releases featured in Spotify.

Params:

NameTypeAttributeDescription
query Object
  • optional

Query parameters.

Return:

Promise

albumsCollection

See:

Get a collection of albums that match a keyword string.

Params:

NameTypeAttributeDescription
name String

Name of the album.

query Object
  • optional

Query parameters.

Return:

Promise

albumsCollection

See: