Class: Generator

Generator

new Generator(stropt, tokenopt, clientIdopt, clientSecretopt)

Create a playlist generator.

Parameters:
Name Type Attributes Description
str string <optional>

A newline-separated string of entries on the form TITLE - ARTIST. May also contain #ALBUM, #ARTIST, #ORDER and #GROUP commands.

token string <optional>

Access token (if already authenticated).

clientId string <optional>

Client ID.

clientSecret string <optional>

Client secret key.

Source:

Members

collection

Playlist collection.

Source:

handler

Spotify request handler.

Source:

parser

String parser.

Source:

Methods

generate() → {Promise|string}

Generate a playlist.

Source:
Returns:

A newline-separated list of Spotify URIs.

Type
Promise | string