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

UserHandler

You can directly use instance of this class. userHandler

Methods for retrieving information about one or more user/s from the Spotify catalog.

See:

Method Summary

Public Methods
public

Convert a valid object to a User entity

public

Get public profile information about a Spotify user.

public

me(): Promise

Get detailed profile information about the current user.

public

playlists(id: String, playlistId: String, query: Object): Promise

Get a list of the playlists owned or followed by a Spotify user.

Public Methods

public convert(item: object): Object source

Convert a valid object to a User entity

Params:

NameTypeAttributeDescription
item object

Object to convert in entity

Return:

Object

public get(id: String): Promise source

Get public profile information about a Spotify user.

Params:

NameTypeAttributeDescription
id String

User id to retrive

Return:

Promise

User

See:

public me(): Promise source

Get detailed profile information about the current user.

Return:

Promise

User

See:

public playlists(id: String, playlistId: String, query: Object): Promise source

Get a list of the playlists owned or followed by a Spotify user.

Params:

NameTypeAttributeDescription
id String

User User id

playlistId String
  • optional

id to retrive playlists

query Object
  • optional

Query parameters.

Return:

Promise

playlistCollection

See: