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

TrackHandler

You can directly use instance of this class. trackHandler

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

See:

Method Summary

Public Methods
public

Convert a valid object to a Track entity

public

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

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

public

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

Get a collection of tracks that match a keyword string.

Public Methods

public convert(item: Object): Object source

Convert a valid object to a Track entity

Params:

NameTypeAttributeDescription
item Object

Object to convert in entity

Return:

Object

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

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

Params:

NameTypeAttributeDescription
ids String | Array

Track id/ids to retrive

query Object
  • optional

Query parameters.

Return:

Promise

Track|trackCollection

See:

Get a collection of tracks that match a keyword string.

Params:

NameTypeAttributeDescription
name String

Name of the track.

query Object
  • optional

Query parameters.

Return:

Promise

trackCollection

See: